diff --git a/.gitignore b/.gitignore index 1031bcaf..81d9103d 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,4 @@ DerivedData/ .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata .netrc -/openapi.json +/openapi diff --git a/Makefile b/Makefile index b7464440..1b4c0bdd 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,9 @@ SPEC_URL = https://developer.apple.com/sample-code/app-store-connect/app-store-c .PHONY: api update-api -api: openapi.json +api: openapi/openapi.json swift run swift-openapi-generator generate \ - openapi.json \ + openapi/openapi.json \ --config Sources/DeveloperAPI/openapi-generator-config.yaml \ --output-directory Sources/DeveloperAPI/Generated for file in Sources/DeveloperAPI/Generated/*.swift; do \ @@ -14,5 +14,9 @@ api: openapi.json update-api: @+$(MAKE) -B api -openapi.json: - curl -fsSL "$(SPEC_URL)" | bsdtar -xOf- > openapi.json +openapi/openapi.json: openapi/base.json Sources/DeveloperAPI/openapi-overlay.yaml + npx bump-cli overlay openapi/base.json Sources/DeveloperAPI/openapi-overlay.yaml > openapi/openapi.json + +openapi/base.json: + @mkdir -p openapi + curl -fsSL "$(SPEC_URL)" | bsdtar -xOf- > openapi/base.json diff --git a/Sources/DeveloperAPI/Generated/Client.swift b/Sources/DeveloperAPI/Generated/Client.swift index babbb48c..00cb9a13 100644 --- a/Sources/DeveloperAPI/Generated/Client.swift +++ b/Sources/DeveloperAPI/Generated/Client.swift @@ -70,6 +70,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 201: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.BundleIdCapabilitiesCreateInstance.Output.Created.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.BundleIdCapabilityResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .created(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.BundleIdCapabilitiesCreateInstance.Output.BadRequest.Body @@ -136,50 +158,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .forbidden(.init(body: body)) - case 422: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.BundleIdCapabilitiesCreateInstance.Output.UnprocessableContent.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.ErrorResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .unprocessableContent(.init(body: body)) - case 201: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.BundleIdCapabilitiesCreateInstance.Output.Created.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.BundleIdCapabilityResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .created(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.BundleIdCapabilitiesCreateInstance.Output.Conflict.Body @@ -202,6 +180,28 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .conflict(.init(body: body)) + case 422: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.BundleIdCapabilitiesCreateInstance.Output.UnprocessableContent.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.ErrorResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .unprocessableContent(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -249,6 +249,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.BundleIdCapabilityResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.BadRequest.Body @@ -337,50 +359,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .notFound(.init(body: body)) - case 422: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.ErrorResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .unprocessableContent(.init(body: body)) - case 200: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.BundleIdCapabilityResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .ok(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Conflict.Body @@ -403,6 +381,28 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .conflict(.init(body: body)) + case 422: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.ErrorResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .unprocessableContent(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -441,6 +441,8 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 204: + return .noContent(.init()) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.BundleIdCapabilitiesDeleteInstance.Output.BadRequest.Body @@ -551,8 +553,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .conflict(.init(body: body)) - case 204: - return .noContent(.init()) default: return .undocumented( statusCode: response.status.code, @@ -687,6 +687,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.BundleIdsGetCollection.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.BundleIdsResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.BundleIdsGetCollection.Output.BadRequest.Body @@ -753,28 +775,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .forbidden(.init(body: body)) - case 200: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.BundleIdsGetCollection.Output.Ok.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.BundleIdsResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .ok(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -820,6 +820,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 201: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.BundleIdsCreateInstance.Output.Created.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.BundleIdResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .created(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.BundleIdsCreateInstance.Output.BadRequest.Body @@ -886,50 +908,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .forbidden(.init(body: body)) - case 422: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.BundleIdsCreateInstance.Output.UnprocessableContent.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.ErrorResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .unprocessableContent(.init(body: body)) - case 201: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.BundleIdsCreateInstance.Output.Created.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.BundleIdResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .created(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.BundleIdsCreateInstance.Output.Conflict.Body @@ -952,6 +930,28 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .conflict(.init(body: body)) + case 422: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.BundleIdsCreateInstance.Output.UnprocessableContent.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.ErrorResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .unprocessableContent(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -1039,6 +1039,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.BundleIdsGetInstance.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.BundleIdResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.BundleIdsGetInstance.Output.BadRequest.Body @@ -1127,28 +1149,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .notFound(.init(body: body)) - case 200: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.BundleIdsGetInstance.Output.Ok.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.BundleIdResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .ok(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -1196,6 +1196,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.BundleIdsUpdateInstance.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.BundleIdResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.BundleIdsUpdateInstance.Output.BadRequest.Body @@ -1284,50 +1306,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .notFound(.init(body: body)) - case 422: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.BundleIdsUpdateInstance.Output.UnprocessableContent.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.ErrorResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .unprocessableContent(.init(body: body)) - case 200: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.BundleIdsUpdateInstance.Output.Ok.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.BundleIdResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .ok(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.BundleIdsUpdateInstance.Output.Conflict.Body @@ -1350,6 +1328,28 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .conflict(.init(body: body)) + case 422: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.BundleIdsUpdateInstance.Output.UnprocessableContent.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.ErrorResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .unprocessableContent(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -1388,6 +1388,8 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 204: + return .noContent(.init()) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.BundleIdsDeleteInstance.Output.BadRequest.Body @@ -1498,8 +1500,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .conflict(.init(body: body)) - case 204: - return .noContent(.init()) default: return .undocumented( statusCode: response.status.code, @@ -1585,6 +1585,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.CertificatesGetCollection.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.CertificatesResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.CertificatesGetCollection.Output.BadRequest.Body @@ -1651,28 +1673,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .forbidden(.init(body: body)) - case 200: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.CertificatesGetCollection.Output.Ok.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.CertificatesResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .ok(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -1718,6 +1718,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 201: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.CertificatesCreateInstance.Output.Created.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.CertificateResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .created(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.CertificatesCreateInstance.Output.BadRequest.Body @@ -1784,50 +1806,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .forbidden(.init(body: body)) - case 422: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.CertificatesCreateInstance.Output.UnprocessableContent.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.ErrorResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .unprocessableContent(.init(body: body)) - case 201: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.CertificatesCreateInstance.Output.Created.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.CertificateResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .created(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.CertificatesCreateInstance.Output.Conflict.Body @@ -1850,6 +1828,28 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .conflict(.init(body: body)) + case 422: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.CertificatesCreateInstance.Output.UnprocessableContent.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.ErrorResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .unprocessableContent(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -1895,6 +1895,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.CertificatesGetInstance.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.CertificateResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.CertificatesGetInstance.Output.BadRequest.Body @@ -1983,28 +2005,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .notFound(.init(body: body)) - case 200: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.CertificatesGetInstance.Output.Ok.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.CertificateResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .ok(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -2043,6 +2043,8 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 204: + return .noContent(.init()) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.CertificatesDeleteInstance.Output.BadRequest.Body @@ -2153,8 +2155,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .conflict(.init(body: body)) - case 204: - return .noContent(.init()) default: return .undocumented( statusCode: response.status.code, @@ -2247,6 +2247,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.DevicesGetCollection.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.DevicesResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.DevicesGetCollection.Output.BadRequest.Body @@ -2313,28 +2335,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .forbidden(.init(body: body)) - case 200: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.DevicesGetCollection.Output.Ok.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.DevicesResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .ok(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -2380,6 +2380,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 201: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.DevicesCreateInstance.Output.Created.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.DeviceResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .created(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.DevicesCreateInstance.Output.BadRequest.Body @@ -2446,50 +2468,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .forbidden(.init(body: body)) - case 422: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.DevicesCreateInstance.Output.UnprocessableContent.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.ErrorResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .unprocessableContent(.init(body: body)) - case 201: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.DevicesCreateInstance.Output.Created.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.DeviceResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .created(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.DevicesCreateInstance.Output.Conflict.Body @@ -2512,6 +2490,28 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .conflict(.init(body: body)) + case 422: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.DevicesCreateInstance.Output.UnprocessableContent.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.ErrorResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .unprocessableContent(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -2557,6 +2557,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.DevicesGetInstance.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.DeviceResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.DevicesGetInstance.Output.BadRequest.Body @@ -2645,28 +2667,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .notFound(.init(body: body)) - case 200: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.DevicesGetInstance.Output.Ok.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.DeviceResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .ok(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -2714,6 +2714,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.DevicesUpdateInstance.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.DeviceResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.DevicesUpdateInstance.Output.BadRequest.Body @@ -2802,50 +2824,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .notFound(.init(body: body)) - case 422: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.DevicesUpdateInstance.Output.UnprocessableContent.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.ErrorResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .unprocessableContent(.init(body: body)) - case 200: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.DevicesUpdateInstance.Output.Ok.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.DeviceResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .ok(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.DevicesUpdateInstance.Output.Conflict.Body @@ -2868,6 +2846,28 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .conflict(.init(body: body)) + case 422: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.DevicesUpdateInstance.Output.UnprocessableContent.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.ErrorResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .unprocessableContent(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -2995,6 +2995,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.ProfilesGetCollection.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.ProfilesResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.ProfilesGetCollection.Output.BadRequest.Body @@ -3061,28 +3083,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .forbidden(.init(body: body)) - case 200: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.ProfilesGetCollection.Output.Ok.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.ProfilesResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .ok(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -3128,6 +3128,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 201: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.ProfilesCreateInstance.Output.Created.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.ProfileResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .created(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.ProfilesCreateInstance.Output.BadRequest.Body @@ -3194,50 +3216,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .forbidden(.init(body: body)) - case 422: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.ProfilesCreateInstance.Output.UnprocessableContent.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.ErrorResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .unprocessableContent(.init(body: body)) - case 201: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.ProfilesCreateInstance.Output.Created.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.ProfileResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .created(.init(body: body)) case 409: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.ProfilesCreateInstance.Output.Conflict.Body @@ -3260,6 +3238,28 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .conflict(.init(body: body)) + case 422: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.ProfilesCreateInstance.Output.UnprocessableContent.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.ErrorResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .unprocessableContent(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -3347,6 +3347,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.ProfilesGetInstance.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.ProfileResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.ProfilesGetInstance.Output.BadRequest.Body @@ -3435,28 +3457,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .notFound(.init(body: body)) - case 200: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.ProfilesGetInstance.Output.Ok.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.ProfileResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .ok(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -3495,6 +3495,8 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 204: + return .noContent(.init()) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.ProfilesDeleteInstance.Output.BadRequest.Body @@ -3605,8 +3607,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .conflict(.init(body: body)) - case 204: - return .noContent(.init()) default: return .undocumented( statusCode: response.status.code, @@ -3652,6 +3652,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.BundleIdsAppGetToOneRelated.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.AppWithoutIncludesResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.BundleIdsAppGetToOneRelated.Output.BadRequest.Body @@ -3740,28 +3762,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .notFound(.init(body: body)) - case 200: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.BundleIdsAppGetToOneRelated.Output.Ok.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.AppWithoutIncludesResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .ok(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -3814,6 +3814,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.BundleIdCapabilitiesWithoutIncludesResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.BadRequest.Body @@ -3902,28 +3924,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .notFound(.init(body: body)) - case 200: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Ok.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.BundleIdCapabilitiesWithoutIncludesResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .ok(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -3976,6 +3976,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.BundleIdsProfilesGetToManyRelated.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.ProfilesWithoutIncludesResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.BundleIdsProfilesGetToManyRelated.Output.BadRequest.Body @@ -4064,28 +4086,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .notFound(.init(body: body)) - case 200: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.BundleIdsProfilesGetToManyRelated.Output.Ok.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.ProfilesWithoutIncludesResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .ok(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -4131,6 +4131,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.ProfilesBundleIdGetToOneRelated.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.BundleIdWithoutIncludesResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.ProfilesBundleIdGetToOneRelated.Output.BadRequest.Body @@ -4219,28 +4241,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .notFound(.init(body: body)) - case 200: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.ProfilesBundleIdGetToOneRelated.Output.Ok.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.BundleIdWithoutIncludesResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .ok(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -4293,6 +4293,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.ProfilesCertificatesGetToManyRelated.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.CertificatesWithoutIncludesResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.ProfilesCertificatesGetToManyRelated.Output.BadRequest.Body @@ -4381,28 +4403,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .notFound(.init(body: body)) - case 200: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.ProfilesCertificatesGetToManyRelated.Output.Ok.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.CertificatesWithoutIncludesResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .ok(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -4455,6 +4455,28 @@ public struct DeveloperAPIClient: APIProtocol { }, deserializer: { response, responseBody in switch response.status.code { + case 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.ProfilesDevicesGetToManyRelated.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.DevicesWithoutIncludesResponse.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) case 400: let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) let body: Operations.ProfilesDevicesGetToManyRelated.Output.BadRequest.Body @@ -4543,28 +4565,6 @@ public struct DeveloperAPIClient: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .notFound(.init(body: body)) - case 200: - let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) - let body: Operations.ProfilesDevicesGetToManyRelated.Output.Ok.Body - let chosenContentType = try converter.bestContentType( - received: contentType, - options: [ - "application/json" - ] - ) - switch chosenContentType { - case "application/json": - body = try await converter.getResponseBodyAsJSON( - Components.Schemas.DevicesWithoutIncludesResponse.self, - from: responseBody, - transforming: { value in - .json(value) - } - ) - default: - preconditionFailure("bestContentType chose an invalid content type.") - } - return .ok(.init(body: body)) default: return .undocumented( statusCode: response.status.code, diff --git a/Sources/DeveloperAPI/Generated/Types.swift b/Sources/DeveloperAPI/Generated/Types.swift index 3d324274..d1333d14 100644 --- a/Sources/DeveloperAPI/Generated/Types.swift +++ b/Sources/DeveloperAPI/Generated/Types.swift @@ -2349,15 +2349,65 @@ public enum Components { } /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/bundleId`. public var bundleId: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.BundleIdPayload + /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/capability`. + public struct CapabilityPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/capability/data`. + public struct DataPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/capability/data/type`. + @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { + case capabilities = "capabilities" + } + /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/capability/data/type`. + public var _type: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.CapabilityPayload.DataPayload._TypePayload + /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/capability/data/id`. + public var id: Components.Schemas.CapabilityType + /// Creates a new `DataPayload`. + /// + /// - Parameters: + /// - _type: + /// - id: + public init( + _type: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.CapabilityPayload.DataPayload._TypePayload, + id: Components.Schemas.CapabilityType + ) { + self._type = _type + self.id = id + } + public enum CodingKeys: String, CodingKey { + case _type = "type" + case id + } + } + /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/capability/data`. + public var data: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.CapabilityPayload.DataPayload + /// Creates a new `CapabilityPayload`. + /// + /// - Parameters: + /// - data: + public init(data: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.CapabilityPayload.DataPayload) { + self.data = data + } + public enum CodingKeys: String, CodingKey { + case data + } + } + /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/capability`. + public var capability: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.CapabilityPayload /// Creates a new `RelationshipsPayload`. /// /// - Parameters: /// - bundleId: - public init(bundleId: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.BundleIdPayload) { + /// - capability: + public init( + bundleId: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.BundleIdPayload, + capability: Components.Schemas.BundleIdCapabilityCreateRequest.DataPayload.RelationshipsPayload.CapabilityPayload + ) { self.bundleId = bundleId + self.capability = capability } public enum CodingKeys: String, CodingKey { case bundleId + case capability } } /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships`. @@ -5052,6 +5102,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Created: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/201/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/201/content/application\/json`. + case json(Components.Schemas.BundleIdCapabilityResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.BundleIdCapabilityResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.BundleIdCapabilitiesCreateInstance.Output.Created.Body + /// Creates a new `Created`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.BundleIdCapabilitiesCreateInstance.Output.Created.Body) { + self.body = body + } + } + /// Single BundleIdCapability + /// + /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/201`. + /// + /// HTTP response code: `201 created`. + case created(Operations.BundleIdCapabilitiesCreateInstance.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.BundleIdCapabilitiesCreateInstance.Output.Created { + get throws { + switch self { + case let .created(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "created", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -5205,108 +5306,6 @@ public enum Operations { } } } - public struct UnprocessableContent: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/422/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/422/content/application\/json`. - case json(Components.Schemas.ErrorResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.ErrorResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.BundleIdCapabilitiesCreateInstance.Output.UnprocessableContent.Body - /// Creates a new `UnprocessableContent`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.BundleIdCapabilitiesCreateInstance.Output.UnprocessableContent.Body) { - self.body = body - } - } - /// Unprocessable request entity error(s) - /// - /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/422`. - /// - /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.BundleIdCapabilitiesCreateInstance.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.BundleIdCapabilitiesCreateInstance.Output.UnprocessableContent { - get throws { - switch self { - case let .unprocessableContent(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "unprocessableContent", - response: self - ) - } - } - } - public struct Created: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/201/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/201/content/application\/json`. - case json(Components.Schemas.BundleIdCapabilityResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.BundleIdCapabilityResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.BundleIdCapabilitiesCreateInstance.Output.Created.Body - /// Creates a new `Created`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.BundleIdCapabilitiesCreateInstance.Output.Created.Body) { - self.body = body - } - } - /// Single BundleIdCapability - /// - /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/201`. - /// - /// HTTP response code: `201 created`. - case created(Operations.BundleIdCapabilitiesCreateInstance.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.BundleIdCapabilitiesCreateInstance.Output.Created { - get throws { - switch self { - case let .created(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "created", - response: self - ) - } - } - } public struct Conflict: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/409/content`. @frozen public enum Body: Sendable, Hashable { @@ -5358,6 +5357,57 @@ public enum Operations { } } } + public struct UnprocessableContent: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/422/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/422/content/application\/json`. + case json(Components.Schemas.ErrorResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.ErrorResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.BundleIdCapabilitiesCreateInstance.Output.UnprocessableContent.Body + /// Creates a new `UnprocessableContent`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.BundleIdCapabilitiesCreateInstance.Output.UnprocessableContent.Body) { + self.body = body + } + } + /// Unprocessable request entity error(s) + /// + /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + case unprocessableContent(Operations.BundleIdCapabilitiesCreateInstance.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.BundleIdCapabilitiesCreateInstance.Output.UnprocessableContent { + get throws { + switch self { + case let .unprocessableContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "unprocessableContent", + response: self + ) + } + } + } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -5444,6 +5494,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/200/content/application\/json`. + case json(Components.Schemas.BundleIdCapabilityResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.BundleIdCapabilityResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok.Body) { + self.body = body + } + } + /// Single BundleIdCapability + /// + /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok) + /// The associated value of the enum case if `self` is `.ok`. + /// + /// - Throws: An error if `self` is not `.ok`. + /// - SeeAlso: `.ok`. + public var ok: Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -5648,108 +5749,6 @@ public enum Operations { } } } - public struct UnprocessableContent: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/422/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/422/content/application\/json`. - case json(Components.Schemas.ErrorResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.ErrorResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent.Body - /// Creates a new `UnprocessableContent`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent.Body) { - self.body = body - } - } - /// Unprocessable request entity error(s) - /// - /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/422`. - /// - /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.BundleIdCapabilitiesUpdateInstance.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.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent { - get throws { - switch self { - case let .unprocessableContent(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "unprocessableContent", - response: self - ) - } - } - } - public struct Ok: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/200/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.BundleIdCapabilityResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.BundleIdCapabilityResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok.Body - /// Creates a new `Ok`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok.Body) { - self.body = body - } - } - /// Single BundleIdCapability - /// - /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/200`. - /// - /// HTTP response code: `200 ok`. - case ok(Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok) - /// The associated value of the enum case if `self` is `.ok`. - /// - /// - Throws: An error if `self` is not `.ok`. - /// - SeeAlso: `.ok`. - public var ok: Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok { - get throws { - switch self { - case let .ok(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "ok", - response: self - ) - } - } - } public struct Conflict: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/409/content`. @frozen public enum Body: Sendable, Hashable { @@ -5801,6 +5800,57 @@ public enum Operations { } } } + public struct UnprocessableContent: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/422/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/422/content/application\/json`. + case json(Components.Schemas.ErrorResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.ErrorResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent.Body + /// Creates a new `UnprocessableContent`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent.Body) { + self.body = body + } + } + /// Unprocessable request entity error(s) + /// + /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + case unprocessableContent(Operations.BundleIdCapabilitiesUpdateInstance.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.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent { + get throws { + switch self { + case let .unprocessableContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "unprocessableContent", + response: self + ) + } + } + } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -5878,6 +5928,41 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct NoContent: Sendable, Hashable { + /// Creates a new `NoContent`. + public init() {} + } + /// Success (no content) + /// + /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + case noContent(Operations.BundleIdCapabilitiesDeleteInstance.Output.NoContent) + /// Success (no content) + /// + /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)/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.BundleIdCapabilitiesDeleteInstance.Output.NoContent { + get throws { + switch self { + case let .noContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "noContent", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -6133,41 +6218,6 @@ public enum Operations { } } } - public struct NoContent: Sendable, Hashable { - /// Creates a new `NoContent`. - public init() {} - } - /// Success (no content) - /// - /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)/responses/204`. - /// - /// HTTP response code: `204 noContent`. - case noContent(Operations.BundleIdCapabilitiesDeleteInstance.Output.NoContent) - /// Success (no content) - /// - /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)/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.BundleIdCapabilitiesDeleteInstance.Output.NoContent { - get throws { - switch self { - case let .noContent(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "noContent", - response: self - ) - } - } - } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -6452,6 +6502,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/200/content/application\/json`. + case json(Components.Schemas.BundleIdsResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.BundleIdsResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.BundleIdsGetCollection.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.BundleIdsGetCollection.Output.Ok.Body) { + self.body = body + } + } + /// List of BundleIds + /// + /// - Remark: Generated from `#/paths//v1/bundleIds/get(bundleIds_getCollection)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.BundleIdsGetCollection.Output.Ok) + /// The associated value of the enum case if `self` is `.ok`. + /// + /// - Throws: An error if `self` is not `.ok`. + /// - SeeAlso: `.ok`. + public var ok: Operations.BundleIdsGetCollection.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -6605,57 +6706,6 @@ public enum Operations { } } } - public struct Ok: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/200/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/200/content/application\/json`. - case json(Components.Schemas.BundleIdsResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.BundleIdsResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.BundleIdsGetCollection.Output.Ok.Body - /// Creates a new `Ok`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.BundleIdsGetCollection.Output.Ok.Body) { - self.body = body - } - } - /// List of BundleIds - /// - /// - Remark: Generated from `#/paths//v1/bundleIds/get(bundleIds_getCollection)/responses/200`. - /// - /// HTTP response code: `200 ok`. - case ok(Operations.BundleIdsGetCollection.Output.Ok) - /// The associated value of the enum case if `self` is `.ok`. - /// - /// - Throws: An error if `self` is not `.ok`. - /// - SeeAlso: `.ok`. - public var ok: Operations.BundleIdsGetCollection.Output.Ok { - get throws { - switch self { - case let .ok(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "ok", - response: self - ) - } - } - } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -6724,6 +6774,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Created: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/201/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/201/content/application\/json`. + case json(Components.Schemas.BundleIdResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.BundleIdResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.BundleIdsCreateInstance.Output.Created.Body + /// Creates a new `Created`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.BundleIdsCreateInstance.Output.Created.Body) { + self.body = body + } + } + /// Single BundleId + /// + /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/201`. + /// + /// HTTP response code: `201 created`. + case created(Operations.BundleIdsCreateInstance.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.BundleIdsCreateInstance.Output.Created { + get throws { + switch self { + case let .created(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "created", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -6877,108 +6978,6 @@ public enum Operations { } } } - public struct UnprocessableContent: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/422/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/422/content/application\/json`. - case json(Components.Schemas.ErrorResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.ErrorResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.BundleIdsCreateInstance.Output.UnprocessableContent.Body - /// Creates a new `UnprocessableContent`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.BundleIdsCreateInstance.Output.UnprocessableContent.Body) { - self.body = body - } - } - /// Unprocessable request entity error(s) - /// - /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/422`. - /// - /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.BundleIdsCreateInstance.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.BundleIdsCreateInstance.Output.UnprocessableContent { - get throws { - switch self { - case let .unprocessableContent(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "unprocessableContent", - response: self - ) - } - } - } - public struct Created: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/201/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/201/content/application\/json`. - case json(Components.Schemas.BundleIdResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.BundleIdResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.BundleIdsCreateInstance.Output.Created.Body - /// Creates a new `Created`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.BundleIdsCreateInstance.Output.Created.Body) { - self.body = body - } - } - /// Single BundleId - /// - /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/201`. - /// - /// HTTP response code: `201 created`. - case created(Operations.BundleIdsCreateInstance.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.BundleIdsCreateInstance.Output.Created { - get throws { - switch self { - case let .created(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "created", - response: self - ) - } - } - } public struct Conflict: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/409/content`. @frozen public enum Body: Sendable, Hashable { @@ -7030,6 +7029,57 @@ public enum Operations { } } } + public struct UnprocessableContent: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/422/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/422/content/application\/json`. + case json(Components.Schemas.ErrorResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.ErrorResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.BundleIdsCreateInstance.Output.UnprocessableContent.Body + /// Creates a new `UnprocessableContent`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.BundleIdsCreateInstance.Output.UnprocessableContent.Body) { + self.body = body + } + } + /// Unprocessable request entity error(s) + /// + /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + case unprocessableContent(Operations.BundleIdsCreateInstance.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.BundleIdsCreateInstance.Output.UnprocessableContent { + get throws { + switch self { + case let .unprocessableContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "unprocessableContent", + response: self + ) + } + } + } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -7260,6 +7310,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/responses/200/content/application\/json`. + case json(Components.Schemas.BundleIdResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.BundleIdResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.BundleIdsGetInstance.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.BundleIdsGetInstance.Output.Ok.Body) { + self.body = body + } + } + /// Single BundleId + /// + /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/get(bundleIds_getInstance)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.BundleIdsGetInstance.Output.Ok) + /// The associated value of the enum case if `self` is `.ok`. + /// + /// - Throws: An error if `self` is not `.ok`. + /// - SeeAlso: `.ok`. + public var ok: Operations.BundleIdsGetInstance.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -7464,57 +7565,6 @@ public enum Operations { } } } - public struct Ok: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/responses/200/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.BundleIdResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.BundleIdResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.BundleIdsGetInstance.Output.Ok.Body - /// Creates a new `Ok`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.BundleIdsGetInstance.Output.Ok.Body) { - self.body = body - } - } - /// Single BundleId - /// - /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/get(bundleIds_getInstance)/responses/200`. - /// - /// HTTP response code: `200 ok`. - case ok(Operations.BundleIdsGetInstance.Output.Ok) - /// The associated value of the enum case if `self` is `.ok`. - /// - /// - Throws: An error if `self` is not `.ok`. - /// - SeeAlso: `.ok`. - public var ok: Operations.BundleIdsGetInstance.Output.Ok { - get throws { - switch self { - case let .ok(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "ok", - response: self - ) - } - } - } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -7601,6 +7651,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/200/content/application\/json`. + case json(Components.Schemas.BundleIdResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.BundleIdResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.BundleIdsUpdateInstance.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.BundleIdsUpdateInstance.Output.Ok.Body) { + self.body = body + } + } + /// Single BundleId + /// + /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.BundleIdsUpdateInstance.Output.Ok) + /// The associated value of the enum case if `self` is `.ok`. + /// + /// - Throws: An error if `self` is not `.ok`. + /// - SeeAlso: `.ok`. + public var ok: Operations.BundleIdsUpdateInstance.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -7805,108 +7906,6 @@ public enum Operations { } } } - public struct UnprocessableContent: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/422/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/422/content/application\/json`. - case json(Components.Schemas.ErrorResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.ErrorResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.BundleIdsUpdateInstance.Output.UnprocessableContent.Body - /// Creates a new `UnprocessableContent`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.BundleIdsUpdateInstance.Output.UnprocessableContent.Body) { - self.body = body - } - } - /// Unprocessable request entity error(s) - /// - /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)/responses/422`. - /// - /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.BundleIdsUpdateInstance.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.BundleIdsUpdateInstance.Output.UnprocessableContent { - get throws { - switch self { - case let .unprocessableContent(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "unprocessableContent", - response: self - ) - } - } - } - public struct Ok: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/200/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.BundleIdResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.BundleIdResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.BundleIdsUpdateInstance.Output.Ok.Body - /// Creates a new `Ok`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.BundleIdsUpdateInstance.Output.Ok.Body) { - self.body = body - } - } - /// Single BundleId - /// - /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)/responses/200`. - /// - /// HTTP response code: `200 ok`. - case ok(Operations.BundleIdsUpdateInstance.Output.Ok) - /// The associated value of the enum case if `self` is `.ok`. - /// - /// - Throws: An error if `self` is not `.ok`. - /// - SeeAlso: `.ok`. - public var ok: Operations.BundleIdsUpdateInstance.Output.Ok { - get throws { - switch self { - case let .ok(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "ok", - response: self - ) - } - } - } public struct Conflict: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/409/content`. @frozen public enum Body: Sendable, Hashable { @@ -7958,6 +7957,57 @@ public enum Operations { } } } + public struct UnprocessableContent: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/422/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/422/content/application\/json`. + case json(Components.Schemas.ErrorResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.ErrorResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.BundleIdsUpdateInstance.Output.UnprocessableContent.Body + /// Creates a new `UnprocessableContent`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.BundleIdsUpdateInstance.Output.UnprocessableContent.Body) { + self.body = body + } + } + /// Unprocessable request entity error(s) + /// + /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + case unprocessableContent(Operations.BundleIdsUpdateInstance.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.BundleIdsUpdateInstance.Output.UnprocessableContent { + get throws { + switch self { + case let .unprocessableContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "unprocessableContent", + response: self + ) + } + } + } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -8035,6 +8085,41 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct NoContent: Sendable, Hashable { + /// Creates a new `NoContent`. + public init() {} + } + /// Success (no content) + /// + /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/delete(bundleIds_deleteInstance)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + case noContent(Operations.BundleIdsDeleteInstance.Output.NoContent) + /// Success (no content) + /// + /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/delete(bundleIds_deleteInstance)/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.BundleIdsDeleteInstance.Output.NoContent { + get throws { + switch self { + case let .noContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "noContent", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/DELETE/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -8290,41 +8375,6 @@ public enum Operations { } } } - public struct NoContent: Sendable, Hashable { - /// Creates a new `NoContent`. - public init() {} - } - /// Success (no content) - /// - /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/delete(bundleIds_deleteInstance)/responses/204`. - /// - /// HTTP response code: `204 noContent`. - case noContent(Operations.BundleIdsDeleteInstance.Output.NoContent) - /// Success (no content) - /// - /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/delete(bundleIds_deleteInstance)/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.BundleIdsDeleteInstance.Output.NoContent { - get throws { - switch self { - case let .noContent(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "noContent", - response: self - ) - } - } - } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -8489,6 +8539,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/certificates/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/certificates/GET/responses/200/content/application\/json`. + case json(Components.Schemas.CertificatesResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.CertificatesResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.CertificatesGetCollection.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.CertificatesGetCollection.Output.Ok.Body) { + self.body = body + } + } + /// List of Certificates + /// + /// - Remark: Generated from `#/paths//v1/certificates/get(certificates_getCollection)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.CertificatesGetCollection.Output.Ok) + /// The associated value of the enum case if `self` is `.ok`. + /// + /// - Throws: An error if `self` is not `.ok`. + /// - SeeAlso: `.ok`. + public var ok: Operations.CertificatesGetCollection.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/certificates/GET/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -8642,57 +8743,6 @@ public enum Operations { } } } - public struct Ok: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/certificates/GET/responses/200/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/certificates/GET/responses/200/content/application\/json`. - case json(Components.Schemas.CertificatesResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.CertificatesResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.CertificatesGetCollection.Output.Ok.Body - /// Creates a new `Ok`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.CertificatesGetCollection.Output.Ok.Body) { - self.body = body - } - } - /// List of Certificates - /// - /// - Remark: Generated from `#/paths//v1/certificates/get(certificates_getCollection)/responses/200`. - /// - /// HTTP response code: `200 ok`. - case ok(Operations.CertificatesGetCollection.Output.Ok) - /// The associated value of the enum case if `self` is `.ok`. - /// - /// - Throws: An error if `self` is not `.ok`. - /// - SeeAlso: `.ok`. - public var ok: Operations.CertificatesGetCollection.Output.Ok { - get throws { - switch self { - case let .ok(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "ok", - response: self - ) - } - } - } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -8761,6 +8811,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Created: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/201/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/201/content/application\/json`. + case json(Components.Schemas.CertificateResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.CertificateResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.CertificatesCreateInstance.Output.Created.Body + /// Creates a new `Created`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.CertificatesCreateInstance.Output.Created.Body) { + self.body = body + } + } + /// Single Certificate + /// + /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)/responses/201`. + /// + /// HTTP response code: `201 created`. + case created(Operations.CertificatesCreateInstance.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.CertificatesCreateInstance.Output.Created { + get throws { + switch self { + case let .created(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "created", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -8914,108 +9015,6 @@ public enum Operations { } } } - public struct UnprocessableContent: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/422/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/422/content/application\/json`. - case json(Components.Schemas.ErrorResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.ErrorResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.CertificatesCreateInstance.Output.UnprocessableContent.Body - /// Creates a new `UnprocessableContent`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.CertificatesCreateInstance.Output.UnprocessableContent.Body) { - self.body = body - } - } - /// Unprocessable request entity error(s) - /// - /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)/responses/422`. - /// - /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.CertificatesCreateInstance.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.CertificatesCreateInstance.Output.UnprocessableContent { - get throws { - switch self { - case let .unprocessableContent(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "unprocessableContent", - response: self - ) - } - } - } - public struct Created: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/201/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/201/content/application\/json`. - case json(Components.Schemas.CertificateResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.CertificateResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.CertificatesCreateInstance.Output.Created.Body - /// Creates a new `Created`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.CertificatesCreateInstance.Output.Created.Body) { - self.body = body - } - } - /// Single Certificate - /// - /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)/responses/201`. - /// - /// HTTP response code: `201 created`. - case created(Operations.CertificatesCreateInstance.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.CertificatesCreateInstance.Output.Created { - get throws { - switch self { - case let .created(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "created", - response: self - ) - } - } - } public struct Conflict: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/409/content`. @frozen public enum Body: Sendable, Hashable { @@ -9067,6 +9066,57 @@ public enum Operations { } } } + public struct UnprocessableContent: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/422/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/422/content/application\/json`. + case json(Components.Schemas.ErrorResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.ErrorResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.CertificatesCreateInstance.Output.UnprocessableContent.Body + /// Creates a new `UnprocessableContent`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.CertificatesCreateInstance.Output.UnprocessableContent.Body) { + self.body = body + } + } + /// Unprocessable request entity error(s) + /// + /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + case unprocessableContent(Operations.CertificatesCreateInstance.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.CertificatesCreateInstance.Output.UnprocessableContent { + get throws { + switch self { + case let .unprocessableContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "unprocessableContent", + response: self + ) + } + } + } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -9174,6 +9224,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/responses/200/content/application\/json`. + case json(Components.Schemas.CertificateResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.CertificateResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.CertificatesGetInstance.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.CertificatesGetInstance.Output.Ok.Body) { + self.body = body + } + } + /// Single Certificate + /// + /// - Remark: Generated from `#/paths//v1/certificates/{id}/get(certificates_getInstance)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.CertificatesGetInstance.Output.Ok) + /// The associated value of the enum case if `self` is `.ok`. + /// + /// - Throws: An error if `self` is not `.ok`. + /// - SeeAlso: `.ok`. + public var ok: Operations.CertificatesGetInstance.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -9378,57 +9479,6 @@ public enum Operations { } } } - public struct Ok: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/responses/200/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.CertificateResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.CertificateResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.CertificatesGetInstance.Output.Ok.Body - /// Creates a new `Ok`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.CertificatesGetInstance.Output.Ok.Body) { - self.body = body - } - } - /// Single Certificate - /// - /// - Remark: Generated from `#/paths//v1/certificates/{id}/get(certificates_getInstance)/responses/200`. - /// - /// HTTP response code: `200 ok`. - case ok(Operations.CertificatesGetInstance.Output.Ok) - /// The associated value of the enum case if `self` is `.ok`. - /// - /// - Throws: An error if `self` is not `.ok`. - /// - SeeAlso: `.ok`. - public var ok: Operations.CertificatesGetInstance.Output.Ok { - get throws { - switch self { - case let .ok(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "ok", - response: self - ) - } - } - } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -9506,6 +9556,41 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct NoContent: Sendable, Hashable { + /// Creates a new `NoContent`. + public init() {} + } + /// Success (no content) + /// + /// - Remark: Generated from `#/paths//v1/certificates/{id}/delete(certificates_deleteInstance)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + case noContent(Operations.CertificatesDeleteInstance.Output.NoContent) + /// Success (no content) + /// + /// - Remark: Generated from `#/paths//v1/certificates/{id}/delete(certificates_deleteInstance)/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.CertificatesDeleteInstance.Output.NoContent { + get throws { + switch self { + case let .noContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "noContent", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/certificates/{id}/DELETE/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -9761,41 +9846,6 @@ public enum Operations { } } } - public struct NoContent: Sendable, Hashable { - /// Creates a new `NoContent`. - public init() {} - } - /// Success (no content) - /// - /// - Remark: Generated from `#/paths//v1/certificates/{id}/delete(certificates_deleteInstance)/responses/204`. - /// - /// HTTP response code: `204 noContent`. - case noContent(Operations.CertificatesDeleteInstance.Output.NoContent) - /// Success (no content) - /// - /// - Remark: Generated from `#/paths//v1/certificates/{id}/delete(certificates_deleteInstance)/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.CertificatesDeleteInstance.Output.NoContent { - get throws { - switch self { - case let .noContent(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "noContent", - response: self - ) - } - } - } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -9966,6 +10016,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/devices/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/devices/GET/responses/200/content/application\/json`. + case json(Components.Schemas.DevicesResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.DevicesResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.DevicesGetCollection.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.DevicesGetCollection.Output.Ok.Body) { + self.body = body + } + } + /// List of Devices + /// + /// - Remark: Generated from `#/paths//v1/devices/get(devices_getCollection)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.DevicesGetCollection.Output.Ok) + /// The associated value of the enum case if `self` is `.ok`. + /// + /// - Throws: An error if `self` is not `.ok`. + /// - SeeAlso: `.ok`. + public var ok: Operations.DevicesGetCollection.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/devices/GET/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -10119,57 +10220,6 @@ public enum Operations { } } } - public struct Ok: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/devices/GET/responses/200/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/devices/GET/responses/200/content/application\/json`. - case json(Components.Schemas.DevicesResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.DevicesResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.DevicesGetCollection.Output.Ok.Body - /// Creates a new `Ok`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.DevicesGetCollection.Output.Ok.Body) { - self.body = body - } - } - /// List of Devices - /// - /// - Remark: Generated from `#/paths//v1/devices/get(devices_getCollection)/responses/200`. - /// - /// HTTP response code: `200 ok`. - case ok(Operations.DevicesGetCollection.Output.Ok) - /// The associated value of the enum case if `self` is `.ok`. - /// - /// - Throws: An error if `self` is not `.ok`. - /// - SeeAlso: `.ok`. - public var ok: Operations.DevicesGetCollection.Output.Ok { - get throws { - switch self { - case let .ok(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "ok", - response: self - ) - } - } - } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -10238,6 +10288,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Created: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/devices/POST/responses/201/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/devices/POST/responses/201/content/application\/json`. + case json(Components.Schemas.DeviceResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.DeviceResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.DevicesCreateInstance.Output.Created.Body + /// Creates a new `Created`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.DevicesCreateInstance.Output.Created.Body) { + self.body = body + } + } + /// Single Device + /// + /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)/responses/201`. + /// + /// HTTP response code: `201 created`. + case created(Operations.DevicesCreateInstance.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.DevicesCreateInstance.Output.Created { + get throws { + switch self { + case let .created(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "created", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/devices/POST/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -10391,108 +10492,6 @@ public enum Operations { } } } - public struct UnprocessableContent: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/devices/POST/responses/422/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/devices/POST/responses/422/content/application\/json`. - case json(Components.Schemas.ErrorResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.ErrorResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.DevicesCreateInstance.Output.UnprocessableContent.Body - /// Creates a new `UnprocessableContent`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.DevicesCreateInstance.Output.UnprocessableContent.Body) { - self.body = body - } - } - /// Unprocessable request entity error(s) - /// - /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)/responses/422`. - /// - /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.DevicesCreateInstance.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.DevicesCreateInstance.Output.UnprocessableContent { - get throws { - switch self { - case let .unprocessableContent(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "unprocessableContent", - response: self - ) - } - } - } - public struct Created: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/devices/POST/responses/201/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/devices/POST/responses/201/content/application\/json`. - case json(Components.Schemas.DeviceResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.DeviceResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.DevicesCreateInstance.Output.Created.Body - /// Creates a new `Created`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.DevicesCreateInstance.Output.Created.Body) { - self.body = body - } - } - /// Single Device - /// - /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)/responses/201`. - /// - /// HTTP response code: `201 created`. - case created(Operations.DevicesCreateInstance.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.DevicesCreateInstance.Output.Created { - get throws { - switch self { - case let .created(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "created", - response: self - ) - } - } - } public struct Conflict: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/devices/POST/responses/409/content`. @frozen public enum Body: Sendable, Hashable { @@ -10544,6 +10543,57 @@ public enum Operations { } } } + public struct UnprocessableContent: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/devices/POST/responses/422/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/devices/POST/responses/422/content/application\/json`. + case json(Components.Schemas.ErrorResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.ErrorResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.DevicesCreateInstance.Output.UnprocessableContent.Body + /// Creates a new `UnprocessableContent`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.DevicesCreateInstance.Output.UnprocessableContent.Body) { + self.body = body + } + } + /// Unprocessable request entity error(s) + /// + /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + case unprocessableContent(Operations.DevicesCreateInstance.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.DevicesCreateInstance.Output.UnprocessableContent { + get throws { + switch self { + case let .unprocessableContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "unprocessableContent", + response: self + ) + } + } + } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -10651,6 +10701,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/responses/200/content/application\/json`. + case json(Components.Schemas.DeviceResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.DeviceResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.DevicesGetInstance.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.DevicesGetInstance.Output.Ok.Body) { + self.body = body + } + } + /// Single Device + /// + /// - Remark: Generated from `#/paths//v1/devices/{id}/get(devices_getInstance)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.DevicesGetInstance.Output.Ok) + /// The associated value of the enum case if `self` is `.ok`. + /// + /// - Throws: An error if `self` is not `.ok`. + /// - SeeAlso: `.ok`. + public var ok: Operations.DevicesGetInstance.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -10855,57 +10956,6 @@ public enum Operations { } } } - public struct Ok: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/responses/200/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.DeviceResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.DeviceResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.DevicesGetInstance.Output.Ok.Body - /// Creates a new `Ok`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.DevicesGetInstance.Output.Ok.Body) { - self.body = body - } - } - /// Single Device - /// - /// - Remark: Generated from `#/paths//v1/devices/{id}/get(devices_getInstance)/responses/200`. - /// - /// HTTP response code: `200 ok`. - case ok(Operations.DevicesGetInstance.Output.Ok) - /// The associated value of the enum case if `self` is `.ok`. - /// - /// - Throws: An error if `self` is not `.ok`. - /// - SeeAlso: `.ok`. - public var ok: Operations.DevicesGetInstance.Output.Ok { - get throws { - switch self { - case let .ok(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "ok", - response: self - ) - } - } - } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -10992,6 +11042,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/200/content/application\/json`. + case json(Components.Schemas.DeviceResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.DeviceResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.DevicesUpdateInstance.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.DevicesUpdateInstance.Output.Ok.Body) { + self.body = body + } + } + /// Single Device + /// + /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.DevicesUpdateInstance.Output.Ok) + /// The associated value of the enum case if `self` is `.ok`. + /// + /// - Throws: An error if `self` is not `.ok`. + /// - SeeAlso: `.ok`. + public var ok: Operations.DevicesUpdateInstance.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -11196,108 +11297,6 @@ public enum Operations { } } } - public struct UnprocessableContent: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/422/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/422/content/application\/json`. - case json(Components.Schemas.ErrorResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.ErrorResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.DevicesUpdateInstance.Output.UnprocessableContent.Body - /// Creates a new `UnprocessableContent`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.DevicesUpdateInstance.Output.UnprocessableContent.Body) { - self.body = body - } - } - /// Unprocessable request entity error(s) - /// - /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)/responses/422`. - /// - /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.DevicesUpdateInstance.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.DevicesUpdateInstance.Output.UnprocessableContent { - get throws { - switch self { - case let .unprocessableContent(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "unprocessableContent", - response: self - ) - } - } - } - public struct Ok: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/200/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/200/content/application\/json`. - case json(Components.Schemas.DeviceResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.DeviceResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.DevicesUpdateInstance.Output.Ok.Body - /// Creates a new `Ok`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.DevicesUpdateInstance.Output.Ok.Body) { - self.body = body - } - } - /// Single Device - /// - /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)/responses/200`. - /// - /// HTTP response code: `200 ok`. - case ok(Operations.DevicesUpdateInstance.Output.Ok) - /// The associated value of the enum case if `self` is `.ok`. - /// - /// - Throws: An error if `self` is not `.ok`. - /// - SeeAlso: `.ok`. - public var ok: Operations.DevicesUpdateInstance.Output.Ok { - get throws { - switch self { - case let .ok(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "ok", - response: self - ) - } - } - } public struct Conflict: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/409/content`. @frozen public enum Body: Sendable, Hashable { @@ -11349,6 +11348,57 @@ public enum Operations { } } } + public struct UnprocessableContent: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/422/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/422/content/application\/json`. + case json(Components.Schemas.ErrorResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.ErrorResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.DevicesUpdateInstance.Output.UnprocessableContent.Body + /// Creates a new `UnprocessableContent`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.DevicesUpdateInstance.Output.UnprocessableContent.Body) { + self.body = body + } + } + /// Unprocessable request entity error(s) + /// + /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + case unprocessableContent(Operations.DevicesUpdateInstance.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.DevicesUpdateInstance.Output.UnprocessableContent { + get throws { + switch self { + case let .unprocessableContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "unprocessableContent", + response: self + ) + } + } + } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -11611,6 +11661,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/200/content/application\/json`. + case json(Components.Schemas.ProfilesResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.ProfilesResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.ProfilesGetCollection.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.ProfilesGetCollection.Output.Ok.Body) { + self.body = body + } + } + /// List of Profiles + /// + /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.ProfilesGetCollection.Output.Ok) + /// The associated value of the enum case if `self` is `.ok`. + /// + /// - Throws: An error if `self` is not `.ok`. + /// - SeeAlso: `.ok`. + public var ok: Operations.ProfilesGetCollection.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -11764,57 +11865,6 @@ public enum Operations { } } } - public struct Ok: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/200/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/200/content/application\/json`. - case json(Components.Schemas.ProfilesResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.ProfilesResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.ProfilesGetCollection.Output.Ok.Body - /// Creates a new `Ok`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.ProfilesGetCollection.Output.Ok.Body) { - self.body = body - } - } - /// List of Profiles - /// - /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)/responses/200`. - /// - /// HTTP response code: `200 ok`. - case ok(Operations.ProfilesGetCollection.Output.Ok) - /// The associated value of the enum case if `self` is `.ok`. - /// - /// - Throws: An error if `self` is not `.ok`. - /// - SeeAlso: `.ok`. - public var ok: Operations.ProfilesGetCollection.Output.Ok { - get throws { - switch self { - case let .ok(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "ok", - response: self - ) - } - } - } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -11883,6 +11933,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Created: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/201/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/201/content/application\/json`. + case json(Components.Schemas.ProfileResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.ProfileResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.ProfilesCreateInstance.Output.Created.Body + /// Creates a new `Created`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.ProfilesCreateInstance.Output.Created.Body) { + self.body = body + } + } + /// Single Profile + /// + /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)/responses/201`. + /// + /// HTTP response code: `201 created`. + case created(Operations.ProfilesCreateInstance.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.ProfilesCreateInstance.Output.Created { + get throws { + switch self { + case let .created(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "created", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -12036,108 +12137,6 @@ public enum Operations { } } } - public struct UnprocessableContent: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/422/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/422/content/application\/json`. - case json(Components.Schemas.ErrorResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.ErrorResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.ProfilesCreateInstance.Output.UnprocessableContent.Body - /// Creates a new `UnprocessableContent`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.ProfilesCreateInstance.Output.UnprocessableContent.Body) { - self.body = body - } - } - /// Unprocessable request entity error(s) - /// - /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)/responses/422`. - /// - /// HTTP response code: `422 unprocessableContent`. - case unprocessableContent(Operations.ProfilesCreateInstance.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.ProfilesCreateInstance.Output.UnprocessableContent { - get throws { - switch self { - case let .unprocessableContent(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "unprocessableContent", - response: self - ) - } - } - } - public struct Created: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/201/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/201/content/application\/json`. - case json(Components.Schemas.ProfileResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.ProfileResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.ProfilesCreateInstance.Output.Created.Body - /// Creates a new `Created`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.ProfilesCreateInstance.Output.Created.Body) { - self.body = body - } - } - /// Single Profile - /// - /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)/responses/201`. - /// - /// HTTP response code: `201 created`. - case created(Operations.ProfilesCreateInstance.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.ProfilesCreateInstance.Output.Created { - get throws { - switch self { - case let .created(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "created", - response: self - ) - } - } - } public struct Conflict: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/409/content`. @frozen public enum Body: Sendable, Hashable { @@ -12189,6 +12188,57 @@ public enum Operations { } } } + public struct UnprocessableContent: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/422/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/422/content/application\/json`. + case json(Components.Schemas.ErrorResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.ErrorResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.ProfilesCreateInstance.Output.UnprocessableContent.Body + /// Creates a new `UnprocessableContent`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.ProfilesCreateInstance.Output.UnprocessableContent.Body) { + self.body = body + } + } + /// Unprocessable request entity error(s) + /// + /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + case unprocessableContent(Operations.ProfilesCreateInstance.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.ProfilesCreateInstance.Output.UnprocessableContent { + get throws { + switch self { + case let .unprocessableContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "unprocessableContent", + response: self + ) + } + } + } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -12388,6 +12438,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/responses/200/content/application\/json`. + case json(Components.Schemas.ProfileResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.ProfileResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.ProfilesGetInstance.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.ProfilesGetInstance.Output.Ok.Body) { + self.body = body + } + } + /// Single Profile + /// + /// - Remark: Generated from `#/paths//v1/profiles/{id}/get(profiles_getInstance)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.ProfilesGetInstance.Output.Ok) + /// The associated value of the enum case if `self` is `.ok`. + /// + /// - Throws: An error if `self` is not `.ok`. + /// - SeeAlso: `.ok`. + public var ok: Operations.ProfilesGetInstance.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -12592,57 +12693,6 @@ public enum Operations { } } } - public struct Ok: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/responses/200/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/responses/200/content/application\/json`. - case json(Components.Schemas.ProfileResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.ProfileResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.ProfilesGetInstance.Output.Ok.Body - /// Creates a new `Ok`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.ProfilesGetInstance.Output.Ok.Body) { - self.body = body - } - } - /// Single Profile - /// - /// - Remark: Generated from `#/paths//v1/profiles/{id}/get(profiles_getInstance)/responses/200`. - /// - /// HTTP response code: `200 ok`. - case ok(Operations.ProfilesGetInstance.Output.Ok) - /// The associated value of the enum case if `self` is `.ok`. - /// - /// - Throws: An error if `self` is not `.ok`. - /// - SeeAlso: `.ok`. - public var ok: Operations.ProfilesGetInstance.Output.Ok { - get throws { - switch self { - case let .ok(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "ok", - response: self - ) - } - } - } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -12720,6 +12770,41 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct NoContent: Sendable, Hashable { + /// Creates a new `NoContent`. + public init() {} + } + /// Success (no content) + /// + /// - Remark: Generated from `#/paths//v1/profiles/{id}/delete(profiles_deleteInstance)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + case noContent(Operations.ProfilesDeleteInstance.Output.NoContent) + /// Success (no content) + /// + /// - Remark: Generated from `#/paths//v1/profiles/{id}/delete(profiles_deleteInstance)/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.ProfilesDeleteInstance.Output.NoContent { + get throws { + switch self { + case let .noContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "noContent", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/profiles/{id}/DELETE/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -12975,41 +13060,6 @@ public enum Operations { } } } - public struct NoContent: Sendable, Hashable { - /// Creates a new `NoContent`. - public init() {} - } - /// Success (no content) - /// - /// - Remark: Generated from `#/paths//v1/profiles/{id}/delete(profiles_deleteInstance)/responses/204`. - /// - /// HTTP response code: `204 noContent`. - case noContent(Operations.ProfilesDeleteInstance.Output.NoContent) - /// Success (no content) - /// - /// - Remark: Generated from `#/paths//v1/profiles/{id}/delete(profiles_deleteInstance)/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.ProfilesDeleteInstance.Output.NoContent { - get throws { - switch self { - case let .noContent(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "noContent", - response: self - ) - } - } - } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -13153,6 +13203,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/responses/200/content/application\/json`. + case json(Components.Schemas.AppWithoutIncludesResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.AppWithoutIncludesResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.BundleIdsAppGetToOneRelated.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.BundleIdsAppGetToOneRelated.Output.Ok.Body) { + self.body = body + } + } + /// Single App with get + /// + /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/app/get(bundleIds_app_getToOneRelated)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.BundleIdsAppGetToOneRelated.Output.Ok) + /// The associated value of the enum case if `self` is `.ok`. + /// + /// - Throws: An error if `self` is not `.ok`. + /// - SeeAlso: `.ok`. + public var ok: Operations.BundleIdsAppGetToOneRelated.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -13357,57 +13458,6 @@ public enum Operations { } } } - public struct Ok: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/responses/200/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/responses/200/content/application\/json`. - case json(Components.Schemas.AppWithoutIncludesResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.AppWithoutIncludesResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.BundleIdsAppGetToOneRelated.Output.Ok.Body - /// Creates a new `Ok`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.BundleIdsAppGetToOneRelated.Output.Ok.Body) { - self.body = body - } - } - /// Single App with get - /// - /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/app/get(bundleIds_app_getToOneRelated)/responses/200`. - /// - /// HTTP response code: `200 ok`. - case ok(Operations.BundleIdsAppGetToOneRelated.Output.Ok) - /// The associated value of the enum case if `self` is `.ok`. - /// - /// - Throws: An error if `self` is not `.ok`. - /// - SeeAlso: `.ok`. - public var ok: Operations.BundleIdsAppGetToOneRelated.Output.Ok { - get throws { - switch self { - case let .ok(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "ok", - response: self - ) - } - } - } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -13519,6 +13569,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/responses/200/content/application\/json`. + case json(Components.Schemas.BundleIdCapabilitiesWithoutIncludesResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.BundleIdCapabilitiesWithoutIncludesResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Ok.Body) { + self.body = body + } + } + /// List of BundleIdCapabilities with get + /// + /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/bundleIdCapabilities/get(bundleIds_bundleIdCapabilities_getToManyRelated)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Ok) + /// The associated value of the enum case if `self` is `.ok`. + /// + /// - Throws: An error if `self` is not `.ok`. + /// - SeeAlso: `.ok`. + public var ok: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -13723,57 +13824,6 @@ public enum Operations { } } } - public struct Ok: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/responses/200/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/responses/200/content/application\/json`. - case json(Components.Schemas.BundleIdCapabilitiesWithoutIncludesResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.BundleIdCapabilitiesWithoutIncludesResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Ok.Body - /// Creates a new `Ok`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Ok.Body) { - self.body = body - } - } - /// List of BundleIdCapabilities with get - /// - /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/bundleIdCapabilities/get(bundleIds_bundleIdCapabilities_getToManyRelated)/responses/200`. - /// - /// HTTP response code: `200 ok`. - case ok(Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Ok) - /// The associated value of the enum case if `self` is `.ok`. - /// - /// - Throws: An error if `self` is not `.ok`. - /// - SeeAlso: `.ok`. - public var ok: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Ok { - get throws { - switch self { - case let .ok(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "ok", - response: self - ) - } - } - } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -13894,6 +13944,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/responses/200/content/application\/json`. + case json(Components.Schemas.ProfilesWithoutIncludesResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.ProfilesWithoutIncludesResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.BundleIdsProfilesGetToManyRelated.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.BundleIdsProfilesGetToManyRelated.Output.Ok.Body) { + self.body = body + } + } + /// List of Profiles with get + /// + /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/profiles/get(bundleIds_profiles_getToManyRelated)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.BundleIdsProfilesGetToManyRelated.Output.Ok) + /// The associated value of the enum case if `self` is `.ok`. + /// + /// - Throws: An error if `self` is not `.ok`. + /// - SeeAlso: `.ok`. + public var ok: Operations.BundleIdsProfilesGetToManyRelated.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -14098,57 +14199,6 @@ public enum Operations { } } } - public struct Ok: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/responses/200/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/responses/200/content/application\/json`. - case json(Components.Schemas.ProfilesWithoutIncludesResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.ProfilesWithoutIncludesResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.BundleIdsProfilesGetToManyRelated.Output.Ok.Body - /// Creates a new `Ok`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.BundleIdsProfilesGetToManyRelated.Output.Ok.Body) { - self.body = body - } - } - /// List of Profiles with get - /// - /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/profiles/get(bundleIds_profiles_getToManyRelated)/responses/200`. - /// - /// HTTP response code: `200 ok`. - case ok(Operations.BundleIdsProfilesGetToManyRelated.Output.Ok) - /// The associated value of the enum case if `self` is `.ok`. - /// - /// - Throws: An error if `self` is not `.ok`. - /// - SeeAlso: `.ok`. - public var ok: Operations.BundleIdsProfilesGetToManyRelated.Output.Ok { - get throws { - switch self { - case let .ok(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "ok", - response: self - ) - } - } - } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -14256,6 +14306,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/responses/200/content/application\/json`. + case json(Components.Schemas.BundleIdWithoutIncludesResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.BundleIdWithoutIncludesResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.ProfilesBundleIdGetToOneRelated.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.ProfilesBundleIdGetToOneRelated.Output.Ok.Body) { + self.body = body + } + } + /// Single BundleId with get + /// + /// - Remark: Generated from `#/paths//v1/profiles/{id}/bundleId/get(profiles_bundleId_getToOneRelated)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.ProfilesBundleIdGetToOneRelated.Output.Ok) + /// The associated value of the enum case if `self` is `.ok`. + /// + /// - Throws: An error if `self` is not `.ok`. + /// - SeeAlso: `.ok`. + public var ok: Operations.ProfilesBundleIdGetToOneRelated.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -14460,57 +14561,6 @@ public enum Operations { } } } - public struct Ok: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/responses/200/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/responses/200/content/application\/json`. - case json(Components.Schemas.BundleIdWithoutIncludesResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.BundleIdWithoutIncludesResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.ProfilesBundleIdGetToOneRelated.Output.Ok.Body - /// Creates a new `Ok`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.ProfilesBundleIdGetToOneRelated.Output.Ok.Body) { - self.body = body - } - } - /// Single BundleId with get - /// - /// - Remark: Generated from `#/paths//v1/profiles/{id}/bundleId/get(profiles_bundleId_getToOneRelated)/responses/200`. - /// - /// HTTP response code: `200 ok`. - case ok(Operations.ProfilesBundleIdGetToOneRelated.Output.Ok) - /// The associated value of the enum case if `self` is `.ok`. - /// - /// - Throws: An error if `self` is not `.ok`. - /// - SeeAlso: `.ok`. - public var ok: Operations.ProfilesBundleIdGetToOneRelated.Output.Ok { - get throws { - switch self { - case let .ok(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "ok", - response: self - ) - } - } - } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -14627,6 +14677,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/responses/200/content/application\/json`. + case json(Components.Schemas.CertificatesWithoutIncludesResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.CertificatesWithoutIncludesResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.ProfilesCertificatesGetToManyRelated.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.ProfilesCertificatesGetToManyRelated.Output.Ok.Body) { + self.body = body + } + } + /// List of Certificates with get + /// + /// - Remark: Generated from `#/paths//v1/profiles/{id}/certificates/get(profiles_certificates_getToManyRelated)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.ProfilesCertificatesGetToManyRelated.Output.Ok) + /// The associated value of the enum case if `self` is `.ok`. + /// + /// - Throws: An error if `self` is not `.ok`. + /// - SeeAlso: `.ok`. + public var ok: Operations.ProfilesCertificatesGetToManyRelated.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -14831,57 +14932,6 @@ public enum Operations { } } } - public struct Ok: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/responses/200/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/responses/200/content/application\/json`. - case json(Components.Schemas.CertificatesWithoutIncludesResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.CertificatesWithoutIncludesResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.ProfilesCertificatesGetToManyRelated.Output.Ok.Body - /// Creates a new `Ok`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.ProfilesCertificatesGetToManyRelated.Output.Ok.Body) { - self.body = body - } - } - /// List of Certificates with get - /// - /// - Remark: Generated from `#/paths//v1/profiles/{id}/certificates/get(profiles_certificates_getToManyRelated)/responses/200`. - /// - /// HTTP response code: `200 ok`. - case ok(Operations.ProfilesCertificatesGetToManyRelated.Output.Ok) - /// The associated value of the enum case if `self` is `.ok`. - /// - /// - Throws: An error if `self` is not `.ok`. - /// - SeeAlso: `.ok`. - public var ok: Operations.ProfilesCertificatesGetToManyRelated.Output.Ok { - get throws { - switch self { - case let .ok(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "ok", - response: self - ) - } - } - } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. @@ -14998,6 +15048,57 @@ public enum Operations { } } @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/responses/200/content/application\/json`. + case json(Components.Schemas.DevicesWithoutIncludesResponse) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.DevicesWithoutIncludesResponse { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.ProfilesDevicesGetToManyRelated.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.ProfilesDevicesGetToManyRelated.Output.Ok.Body) { + self.body = body + } + } + /// List of Devices with get + /// + /// - Remark: Generated from `#/paths//v1/profiles/{id}/devices/get(profiles_devices_getToManyRelated)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.ProfilesDevicesGetToManyRelated.Output.Ok) + /// The associated value of the enum case if `self` is `.ok`. + /// + /// - Throws: An error if `self` is not `.ok`. + /// - SeeAlso: `.ok`. + public var ok: Operations.ProfilesDevicesGetToManyRelated.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + response: self + ) + } + } + } public struct BadRequest: Sendable, Hashable { /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/responses/400/content`. @frozen public enum Body: Sendable, Hashable { @@ -15202,57 +15303,6 @@ public enum Operations { } } } - public struct Ok: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/responses/200/content`. - @frozen public enum Body: Sendable, Hashable { - /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/responses/200/content/application\/json`. - case json(Components.Schemas.DevicesWithoutIncludesResponse) - /// The associated value of the enum case if `self` is `.json`. - /// - /// - Throws: An error if `self` is not `.json`. - /// - SeeAlso: `.json`. - public var json: Components.Schemas.DevicesWithoutIncludesResponse { - get throws { - switch self { - case let .json(body): - return body - } - } - } - } - /// Received HTTP response body - public var body: Operations.ProfilesDevicesGetToManyRelated.Output.Ok.Body - /// Creates a new `Ok`. - /// - /// - Parameters: - /// - body: Received HTTP response body - public init(body: Operations.ProfilesDevicesGetToManyRelated.Output.Ok.Body) { - self.body = body - } - } - /// List of Devices with get - /// - /// - Remark: Generated from `#/paths//v1/profiles/{id}/devices/get(profiles_devices_getToManyRelated)/responses/200`. - /// - /// HTTP response code: `200 ok`. - case ok(Operations.ProfilesDevicesGetToManyRelated.Output.Ok) - /// The associated value of the enum case if `self` is `.ok`. - /// - /// - Throws: An error if `self` is not `.ok`. - /// - SeeAlso: `.ok`. - public var ok: Operations.ProfilesDevicesGetToManyRelated.Output.Ok { - get throws { - switch self { - case let .ok(response): - return response - default: - try throwUnexpectedResponseStatus( - expectedStatus: "ok", - response: self - ) - } - } - } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. diff --git a/Sources/DeveloperAPI/openapi-overlay.yaml b/Sources/DeveloperAPI/openapi-overlay.yaml new file mode 100644 index 00000000..52006930 --- /dev/null +++ b/Sources/DeveloperAPI/openapi-overlay.yaml @@ -0,0 +1,29 @@ +overlay: 1.0.0 +info: + title: Overlay for App Store Connect API + version: 1.0.0 +actions: + - target: '$' + update: + components: + schemas: + BundleIdCapabilityCreateRequest: + properties: + data: + properties: + relationships: + properties: + capability: + type: object + properties: + data: + type: object + properties: + type: + type: string + enum: [capabilities] + id: + "$ref": "#/components/schemas/CapabilityType" + required: [id, type] + required: [data] + required: [capability]