Skip to content

armgit / xtool

Public Imported from GitHub
0

Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, macOS.

Add overlay

Kabir Oberaid335091cdce9
diff --git a/.gitignore b/.gitignore
index 1031bca..81d9103 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 b746444..1b4c0bd 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 babbb48..00cb9a1 100644
--- a/Sources/DeveloperAPI/Generated/Client.swift
+++ b/Sources/DeveloperAPI/Generated/Client.swift
@@ -70,9 +70,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 201:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdCapabilitiesCreateInstance.Output.BadRequest.Body
+ let body: Operations.BundleIdCapabilitiesCreateInstance.Output.Created.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -82,7 +82,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.BundleIdCapabilityResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -91,10 +91,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .created(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdCapabilitiesCreateInstance.Output.Unauthorized.Body
+ let body: Operations.BundleIdCapabilitiesCreateInstance.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -113,10 +113,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdCapabilitiesCreateInstance.Output.Forbidden.Body
+ let body: Operations.BundleIdCapabilitiesCreateInstance.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -135,10 +135,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 422:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdCapabilitiesCreateInstance.Output.UnprocessableContent.Body
+ let body: Operations.BundleIdCapabilitiesCreateInstance.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -157,10 +157,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unprocessableContent(.init(body: body))
- case 201:
+ return .forbidden(.init(body: body))
+ case 409:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdCapabilitiesCreateInstance.Output.Created.Body
+ let body: Operations.BundleIdCapabilitiesCreateInstance.Output.Conflict.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -170,7 +170,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.BundleIdCapabilityResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -179,10 +179,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .created(.init(body: body))
- case 409:
+ return .conflict(.init(body: body))
+ case 422:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdCapabilitiesCreateInstance.Output.Conflict.Body
+ let body: Operations.BundleIdCapabilitiesCreateInstance.Output.UnprocessableContent.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -201,7 +201,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .conflict(.init(body: body))
+ return .unprocessableContent(.init(body: body))
default:
return .undocumented(
statusCode: response.status.code,
@@ -249,9 +249,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 200:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.BadRequest.Body
+ let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -261,7 +261,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.BundleIdCapabilityResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -270,10 +270,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .ok(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Unauthorized.Body
+ let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -292,10 +292,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Forbidden.Body
+ let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -314,10 +314,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 404:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.NotFound.Body
+ let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -336,10 +336,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .notFound(.init(body: body))
- case 422:
+ return .forbidden(.init(body: body))
+ case 404:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent.Body
+ let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.NotFound.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -358,10 +358,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unprocessableContent(.init(body: body))
- case 200:
+ return .notFound(.init(body: body))
+ case 409:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok.Body
+ let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Conflict.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -371,7 +371,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.BundleIdCapabilityResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -380,10 +380,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .ok(.init(body: body))
- case 409:
+ return .conflict(.init(body: body))
+ case 422:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Conflict.Body
+ let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -402,7 +402,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .conflict(.init(body: body))
+ 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,9 +687,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 200:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsGetCollection.Output.BadRequest.Body
+ let body: Operations.BundleIdsGetCollection.Output.Ok.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -699,7 +699,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.BundleIdsResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -708,10 +708,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .ok(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsGetCollection.Output.Unauthorized.Body
+ let body: Operations.BundleIdsGetCollection.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -730,10 +730,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsGetCollection.Output.Forbidden.Body
+ let body: Operations.BundleIdsGetCollection.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -752,10 +752,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 200:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsGetCollection.Output.Ok.Body
+ let body: Operations.BundleIdsGetCollection.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -765,7 +765,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.BundleIdsResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -774,7 +774,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .ok(.init(body: body))
+ return .forbidden(.init(body: body))
default:
return .undocumented(
statusCode: response.status.code,
@@ -820,9 +820,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 201:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsCreateInstance.Output.BadRequest.Body
+ let body: Operations.BundleIdsCreateInstance.Output.Created.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -832,7 +832,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.BundleIdResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -841,10 +841,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .created(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsCreateInstance.Output.Unauthorized.Body
+ let body: Operations.BundleIdsCreateInstance.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -863,10 +863,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsCreateInstance.Output.Forbidden.Body
+ let body: Operations.BundleIdsCreateInstance.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -885,10 +885,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 422:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsCreateInstance.Output.UnprocessableContent.Body
+ let body: Operations.BundleIdsCreateInstance.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -907,10 +907,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unprocessableContent(.init(body: body))
- case 201:
+ return .forbidden(.init(body: body))
+ case 409:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsCreateInstance.Output.Created.Body
+ let body: Operations.BundleIdsCreateInstance.Output.Conflict.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -920,7 +920,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.BundleIdResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -929,10 +929,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .created(.init(body: body))
- case 409:
+ return .conflict(.init(body: body))
+ case 422:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsCreateInstance.Output.Conflict.Body
+ let body: Operations.BundleIdsCreateInstance.Output.UnprocessableContent.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -951,7 +951,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .conflict(.init(body: body))
+ return .unprocessableContent(.init(body: body))
default:
return .undocumented(
statusCode: response.status.code,
@@ -1039,9 +1039,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 200:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsGetInstance.Output.BadRequest.Body
+ let body: Operations.BundleIdsGetInstance.Output.Ok.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1051,7 +1051,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.BundleIdResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -1060,10 +1060,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .ok(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsGetInstance.Output.Unauthorized.Body
+ let body: Operations.BundleIdsGetInstance.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1082,10 +1082,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsGetInstance.Output.Forbidden.Body
+ let body: Operations.BundleIdsGetInstance.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1104,10 +1104,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 404:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsGetInstance.Output.NotFound.Body
+ let body: Operations.BundleIdsGetInstance.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1126,10 +1126,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .notFound(.init(body: body))
- case 200:
+ return .forbidden(.init(body: body))
+ case 404:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsGetInstance.Output.Ok.Body
+ let body: Operations.BundleIdsGetInstance.Output.NotFound.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1139,7 +1139,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.BundleIdResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -1148,7 +1148,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .ok(.init(body: body))
+ return .notFound(.init(body: body))
default:
return .undocumented(
statusCode: response.status.code,
@@ -1196,9 +1196,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 200:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsUpdateInstance.Output.BadRequest.Body
+ let body: Operations.BundleIdsUpdateInstance.Output.Ok.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1208,7 +1208,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.BundleIdResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -1217,10 +1217,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .ok(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsUpdateInstance.Output.Unauthorized.Body
+ let body: Operations.BundleIdsUpdateInstance.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1239,10 +1239,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsUpdateInstance.Output.Forbidden.Body
+ let body: Operations.BundleIdsUpdateInstance.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1261,10 +1261,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 404:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsUpdateInstance.Output.NotFound.Body
+ let body: Operations.BundleIdsUpdateInstance.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1283,10 +1283,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .notFound(.init(body: body))
- case 422:
+ return .forbidden(.init(body: body))
+ case 404:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsUpdateInstance.Output.UnprocessableContent.Body
+ let body: Operations.BundleIdsUpdateInstance.Output.NotFound.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1305,10 +1305,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unprocessableContent(.init(body: body))
- case 200:
+ return .notFound(.init(body: body))
+ case 409:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsUpdateInstance.Output.Ok.Body
+ let body: Operations.BundleIdsUpdateInstance.Output.Conflict.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1318,7 +1318,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.BundleIdResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -1327,10 +1327,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .ok(.init(body: body))
- case 409:
+ return .conflict(.init(body: body))
+ case 422:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsUpdateInstance.Output.Conflict.Body
+ let body: Operations.BundleIdsUpdateInstance.Output.UnprocessableContent.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1349,7 +1349,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .conflict(.init(body: body))
+ 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,9 +1585,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 200:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.CertificatesGetCollection.Output.BadRequest.Body
+ let body: Operations.CertificatesGetCollection.Output.Ok.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1597,7 +1597,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.CertificatesResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -1606,10 +1606,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .ok(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.CertificatesGetCollection.Output.Unauthorized.Body
+ let body: Operations.CertificatesGetCollection.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1628,10 +1628,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.CertificatesGetCollection.Output.Forbidden.Body
+ let body: Operations.CertificatesGetCollection.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1650,10 +1650,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 200:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.CertificatesGetCollection.Output.Ok.Body
+ let body: Operations.CertificatesGetCollection.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1663,7 +1663,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.CertificatesResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -1672,7 +1672,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .ok(.init(body: body))
+ return .forbidden(.init(body: body))
default:
return .undocumented(
statusCode: response.status.code,
@@ -1718,9 +1718,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 201:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.CertificatesCreateInstance.Output.BadRequest.Body
+ let body: Operations.CertificatesCreateInstance.Output.Created.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1730,7 +1730,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.CertificateResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -1739,10 +1739,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .created(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.CertificatesCreateInstance.Output.Unauthorized.Body
+ let body: Operations.CertificatesCreateInstance.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1761,10 +1761,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.CertificatesCreateInstance.Output.Forbidden.Body
+ let body: Operations.CertificatesCreateInstance.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1783,10 +1783,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 422:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.CertificatesCreateInstance.Output.UnprocessableContent.Body
+ let body: Operations.CertificatesCreateInstance.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1805,10 +1805,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unprocessableContent(.init(body: body))
- case 201:
+ return .forbidden(.init(body: body))
+ case 409:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.CertificatesCreateInstance.Output.Created.Body
+ let body: Operations.CertificatesCreateInstance.Output.Conflict.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1818,7 +1818,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.CertificateResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -1827,10 +1827,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .created(.init(body: body))
- case 409:
+ return .conflict(.init(body: body))
+ case 422:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.CertificatesCreateInstance.Output.Conflict.Body
+ let body: Operations.CertificatesCreateInstance.Output.UnprocessableContent.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1849,7 +1849,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .conflict(.init(body: body))
+ return .unprocessableContent(.init(body: body))
default:
return .undocumented(
statusCode: response.status.code,
@@ -1895,9 +1895,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 200:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.CertificatesGetInstance.Output.BadRequest.Body
+ let body: Operations.CertificatesGetInstance.Output.Ok.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1907,7 +1907,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.CertificateResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -1916,10 +1916,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .ok(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.CertificatesGetInstance.Output.Unauthorized.Body
+ let body: Operations.CertificatesGetInstance.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1938,10 +1938,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.CertificatesGetInstance.Output.Forbidden.Body
+ let body: Operations.CertificatesGetInstance.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1960,10 +1960,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 404:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.CertificatesGetInstance.Output.NotFound.Body
+ let body: Operations.CertificatesGetInstance.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1982,10 +1982,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .notFound(.init(body: body))
- case 200:
+ return .forbidden(.init(body: body))
+ case 404:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.CertificatesGetInstance.Output.Ok.Body
+ let body: Operations.CertificatesGetInstance.Output.NotFound.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -1995,7 +1995,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.CertificateResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -2004,7 +2004,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .ok(.init(body: body))
+ return .notFound(.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,9 +2247,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 200:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesGetCollection.Output.BadRequest.Body
+ let body: Operations.DevicesGetCollection.Output.Ok.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2259,7 +2259,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.DevicesResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -2268,10 +2268,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .ok(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesGetCollection.Output.Unauthorized.Body
+ let body: Operations.DevicesGetCollection.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2290,10 +2290,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesGetCollection.Output.Forbidden.Body
+ let body: Operations.DevicesGetCollection.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2312,10 +2312,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 200:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesGetCollection.Output.Ok.Body
+ let body: Operations.DevicesGetCollection.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2325,7 +2325,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.DevicesResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -2334,7 +2334,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .ok(.init(body: body))
+ return .forbidden(.init(body: body))
default:
return .undocumented(
statusCode: response.status.code,
@@ -2380,9 +2380,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 201:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesCreateInstance.Output.BadRequest.Body
+ let body: Operations.DevicesCreateInstance.Output.Created.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2392,7 +2392,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.DeviceResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -2401,10 +2401,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .created(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesCreateInstance.Output.Unauthorized.Body
+ let body: Operations.DevicesCreateInstance.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2423,10 +2423,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesCreateInstance.Output.Forbidden.Body
+ let body: Operations.DevicesCreateInstance.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2445,10 +2445,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 422:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesCreateInstance.Output.UnprocessableContent.Body
+ let body: Operations.DevicesCreateInstance.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2467,10 +2467,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unprocessableContent(.init(body: body))
- case 201:
+ return .forbidden(.init(body: body))
+ case 409:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesCreateInstance.Output.Created.Body
+ let body: Operations.DevicesCreateInstance.Output.Conflict.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2480,7 +2480,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.DeviceResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -2489,10 +2489,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .created(.init(body: body))
- case 409:
+ return .conflict(.init(body: body))
+ case 422:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesCreateInstance.Output.Conflict.Body
+ let body: Operations.DevicesCreateInstance.Output.UnprocessableContent.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2511,7 +2511,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .conflict(.init(body: body))
+ return .unprocessableContent(.init(body: body))
default:
return .undocumented(
statusCode: response.status.code,
@@ -2557,9 +2557,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 200:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesGetInstance.Output.BadRequest.Body
+ let body: Operations.DevicesGetInstance.Output.Ok.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2569,7 +2569,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.DeviceResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -2578,10 +2578,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .ok(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesGetInstance.Output.Unauthorized.Body
+ let body: Operations.DevicesGetInstance.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2600,10 +2600,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesGetInstance.Output.Forbidden.Body
+ let body: Operations.DevicesGetInstance.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2622,10 +2622,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 404:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesGetInstance.Output.NotFound.Body
+ let body: Operations.DevicesGetInstance.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2644,10 +2644,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .notFound(.init(body: body))
- case 200:
+ return .forbidden(.init(body: body))
+ case 404:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesGetInstance.Output.Ok.Body
+ let body: Operations.DevicesGetInstance.Output.NotFound.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2657,7 +2657,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.DeviceResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -2666,7 +2666,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .ok(.init(body: body))
+ return .notFound(.init(body: body))
default:
return .undocumented(
statusCode: response.status.code,
@@ -2714,9 +2714,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 200:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesUpdateInstance.Output.BadRequest.Body
+ let body: Operations.DevicesUpdateInstance.Output.Ok.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2726,7 +2726,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.DeviceResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -2735,10 +2735,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .ok(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesUpdateInstance.Output.Unauthorized.Body
+ let body: Operations.DevicesUpdateInstance.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2757,10 +2757,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesUpdateInstance.Output.Forbidden.Body
+ let body: Operations.DevicesUpdateInstance.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2779,10 +2779,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 404:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesUpdateInstance.Output.NotFound.Body
+ let body: Operations.DevicesUpdateInstance.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2801,10 +2801,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .notFound(.init(body: body))
- case 422:
+ return .forbidden(.init(body: body))
+ case 404:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesUpdateInstance.Output.UnprocessableContent.Body
+ let body: Operations.DevicesUpdateInstance.Output.NotFound.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2823,10 +2823,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unprocessableContent(.init(body: body))
- case 200:
+ return .notFound(.init(body: body))
+ case 409:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesUpdateInstance.Output.Ok.Body
+ let body: Operations.DevicesUpdateInstance.Output.Conflict.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2836,7 +2836,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.DeviceResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -2845,10 +2845,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .ok(.init(body: body))
- case 409:
+ return .conflict(.init(body: body))
+ case 422:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.DevicesUpdateInstance.Output.Conflict.Body
+ let body: Operations.DevicesUpdateInstance.Output.UnprocessableContent.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -2867,7 +2867,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .conflict(.init(body: body))
+ return .unprocessableContent(.init(body: body))
default:
return .undocumented(
statusCode: response.status.code,
@@ -2995,9 +2995,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 200:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesGetCollection.Output.BadRequest.Body
+ let body: Operations.ProfilesGetCollection.Output.Ok.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3007,7 +3007,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.ProfilesResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -3016,10 +3016,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .ok(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesGetCollection.Output.Unauthorized.Body
+ let body: Operations.ProfilesGetCollection.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3038,10 +3038,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesGetCollection.Output.Forbidden.Body
+ let body: Operations.ProfilesGetCollection.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3060,10 +3060,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 200:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesGetCollection.Output.Ok.Body
+ let body: Operations.ProfilesGetCollection.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3073,7 +3073,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ProfilesResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -3082,7 +3082,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .ok(.init(body: body))
+ return .forbidden(.init(body: body))
default:
return .undocumented(
statusCode: response.status.code,
@@ -3128,9 +3128,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 201:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesCreateInstance.Output.BadRequest.Body
+ let body: Operations.ProfilesCreateInstance.Output.Created.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3140,7 +3140,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.ProfileResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -3149,10 +3149,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .created(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesCreateInstance.Output.Unauthorized.Body
+ let body: Operations.ProfilesCreateInstance.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3171,10 +3171,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesCreateInstance.Output.Forbidden.Body
+ let body: Operations.ProfilesCreateInstance.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3193,10 +3193,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 422:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesCreateInstance.Output.UnprocessableContent.Body
+ let body: Operations.ProfilesCreateInstance.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3215,10 +3215,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unprocessableContent(.init(body: body))
- case 201:
+ return .forbidden(.init(body: body))
+ case 409:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesCreateInstance.Output.Created.Body
+ let body: Operations.ProfilesCreateInstance.Output.Conflict.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3228,7 +3228,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ProfileResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -3237,10 +3237,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .created(.init(body: body))
- case 409:
+ return .conflict(.init(body: body))
+ case 422:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesCreateInstance.Output.Conflict.Body
+ let body: Operations.ProfilesCreateInstance.Output.UnprocessableContent.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3259,7 +3259,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .conflict(.init(body: body))
+ return .unprocessableContent(.init(body: body))
default:
return .undocumented(
statusCode: response.status.code,
@@ -3347,9 +3347,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 200:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesGetInstance.Output.BadRequest.Body
+ let body: Operations.ProfilesGetInstance.Output.Ok.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3359,7 +3359,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.ProfileResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -3368,10 +3368,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .ok(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesGetInstance.Output.Unauthorized.Body
+ let body: Operations.ProfilesGetInstance.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3390,10 +3390,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesGetInstance.Output.Forbidden.Body
+ let body: Operations.ProfilesGetInstance.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3412,10 +3412,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 404:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesGetInstance.Output.NotFound.Body
+ let body: Operations.ProfilesGetInstance.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3434,10 +3434,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .notFound(.init(body: body))
- case 200:
+ return .forbidden(.init(body: body))
+ case 404:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesGetInstance.Output.Ok.Body
+ let body: Operations.ProfilesGetInstance.Output.NotFound.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3447,7 +3447,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ProfileResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -3456,7 +3456,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .ok(.init(body: body))
+ return .notFound(.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,9 +3652,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 200:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsAppGetToOneRelated.Output.BadRequest.Body
+ let body: Operations.BundleIdsAppGetToOneRelated.Output.Ok.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3664,7 +3664,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.AppWithoutIncludesResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -3673,10 +3673,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .ok(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsAppGetToOneRelated.Output.Unauthorized.Body
+ let body: Operations.BundleIdsAppGetToOneRelated.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3695,10 +3695,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsAppGetToOneRelated.Output.Forbidden.Body
+ let body: Operations.BundleIdsAppGetToOneRelated.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3717,10 +3717,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 404:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsAppGetToOneRelated.Output.NotFound.Body
+ let body: Operations.BundleIdsAppGetToOneRelated.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3739,10 +3739,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .notFound(.init(body: body))
- case 200:
+ return .forbidden(.init(body: body))
+ case 404:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsAppGetToOneRelated.Output.Ok.Body
+ let body: Operations.BundleIdsAppGetToOneRelated.Output.NotFound.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3752,7 +3752,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.AppWithoutIncludesResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -3761,7 +3761,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .ok(.init(body: body))
+ return .notFound(.init(body: body))
default:
return .undocumented(
statusCode: response.status.code,
@@ -3814,9 +3814,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 200:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.BadRequest.Body
+ let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Ok.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3826,7 +3826,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.BundleIdCapabilitiesWithoutIncludesResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -3835,10 +3835,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .ok(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Unauthorized.Body
+ let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3857,10 +3857,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Forbidden.Body
+ let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3879,10 +3879,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 404:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.NotFound.Body
+ let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3901,10 +3901,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .notFound(.init(body: body))
- case 200:
+ return .forbidden(.init(body: body))
+ case 404:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Ok.Body
+ let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.NotFound.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3914,7 +3914,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.BundleIdCapabilitiesWithoutIncludesResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -3923,7 +3923,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .ok(.init(body: body))
+ return .notFound(.init(body: body))
default:
return .undocumented(
statusCode: response.status.code,
@@ -3976,9 +3976,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 200:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsProfilesGetToManyRelated.Output.BadRequest.Body
+ let body: Operations.BundleIdsProfilesGetToManyRelated.Output.Ok.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -3988,7 +3988,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.ProfilesWithoutIncludesResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -3997,10 +3997,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .ok(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsProfilesGetToManyRelated.Output.Unauthorized.Body
+ let body: Operations.BundleIdsProfilesGetToManyRelated.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -4019,10 +4019,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsProfilesGetToManyRelated.Output.Forbidden.Body
+ let body: Operations.BundleIdsProfilesGetToManyRelated.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -4041,10 +4041,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 404:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsProfilesGetToManyRelated.Output.NotFound.Body
+ let body: Operations.BundleIdsProfilesGetToManyRelated.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -4063,10 +4063,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .notFound(.init(body: body))
- case 200:
+ return .forbidden(.init(body: body))
+ case 404:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.BundleIdsProfilesGetToManyRelated.Output.Ok.Body
+ let body: Operations.BundleIdsProfilesGetToManyRelated.Output.NotFound.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -4076,7 +4076,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ProfilesWithoutIncludesResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -4085,7 +4085,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .ok(.init(body: body))
+ return .notFound(.init(body: body))
default:
return .undocumented(
statusCode: response.status.code,
@@ -4131,9 +4131,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 200:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesBundleIdGetToOneRelated.Output.BadRequest.Body
+ let body: Operations.ProfilesBundleIdGetToOneRelated.Output.Ok.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -4143,7 +4143,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.BundleIdWithoutIncludesResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -4152,10 +4152,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .ok(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesBundleIdGetToOneRelated.Output.Unauthorized.Body
+ let body: Operations.ProfilesBundleIdGetToOneRelated.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -4174,10 +4174,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesBundleIdGetToOneRelated.Output.Forbidden.Body
+ let body: Operations.ProfilesBundleIdGetToOneRelated.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -4196,10 +4196,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 404:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesBundleIdGetToOneRelated.Output.NotFound.Body
+ let body: Operations.ProfilesBundleIdGetToOneRelated.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -4218,10 +4218,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .notFound(.init(body: body))
- case 200:
+ return .forbidden(.init(body: body))
+ case 404:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesBundleIdGetToOneRelated.Output.Ok.Body
+ let body: Operations.ProfilesBundleIdGetToOneRelated.Output.NotFound.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -4231,7 +4231,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.BundleIdWithoutIncludesResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -4240,7 +4240,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .ok(.init(body: body))
+ return .notFound(.init(body: body))
default:
return .undocumented(
statusCode: response.status.code,
@@ -4293,9 +4293,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 200:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesCertificatesGetToManyRelated.Output.BadRequest.Body
+ let body: Operations.ProfilesCertificatesGetToManyRelated.Output.Ok.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -4305,7 +4305,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.CertificatesWithoutIncludesResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -4314,10 +4314,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .ok(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesCertificatesGetToManyRelated.Output.Unauthorized.Body
+ let body: Operations.ProfilesCertificatesGetToManyRelated.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -4336,10 +4336,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesCertificatesGetToManyRelated.Output.Forbidden.Body
+ let body: Operations.ProfilesCertificatesGetToManyRelated.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -4358,10 +4358,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 404:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesCertificatesGetToManyRelated.Output.NotFound.Body
+ let body: Operations.ProfilesCertificatesGetToManyRelated.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -4380,10 +4380,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .notFound(.init(body: body))
- case 200:
+ return .forbidden(.init(body: body))
+ case 404:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesCertificatesGetToManyRelated.Output.Ok.Body
+ let body: Operations.ProfilesCertificatesGetToManyRelated.Output.NotFound.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -4393,7 +4393,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.CertificatesWithoutIncludesResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -4402,7 +4402,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .ok(.init(body: body))
+ return .notFound(.init(body: body))
default:
return .undocumented(
statusCode: response.status.code,
@@ -4455,9 +4455,9 @@ public struct DeveloperAPIClient: APIProtocol {
},
deserializer: { response, responseBody in
switch response.status.code {
- case 400:
+ case 200:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesDevicesGetToManyRelated.Output.BadRequest.Body
+ let body: Operations.ProfilesDevicesGetToManyRelated.Output.Ok.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -4467,7 +4467,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.ErrorResponse.self,
+ Components.Schemas.DevicesWithoutIncludesResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -4476,10 +4476,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .badRequest(.init(body: body))
- case 401:
+ return .ok(.init(body: body))
+ case 400:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesDevicesGetToManyRelated.Output.Unauthorized.Body
+ let body: Operations.ProfilesDevicesGetToManyRelated.Output.BadRequest.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -4498,10 +4498,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .unauthorized(.init(body: body))
- case 403:
+ return .badRequest(.init(body: body))
+ case 401:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesDevicesGetToManyRelated.Output.Forbidden.Body
+ let body: Operations.ProfilesDevicesGetToManyRelated.Output.Unauthorized.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -4520,10 +4520,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .forbidden(.init(body: body))
- case 404:
+ return .unauthorized(.init(body: body))
+ case 403:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesDevicesGetToManyRelated.Output.NotFound.Body
+ let body: Operations.ProfilesDevicesGetToManyRelated.Output.Forbidden.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -4542,10 +4542,10 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .notFound(.init(body: body))
- case 200:
+ return .forbidden(.init(body: body))
+ case 404:
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
- let body: Operations.ProfilesDevicesGetToManyRelated.Output.Ok.Body
+ let body: Operations.ProfilesDevicesGetToManyRelated.Output.NotFound.Body
let chosenContentType = try converter.bestContentType(
received: contentType,
options: [
@@ -4555,7 +4555,7 @@ public struct DeveloperAPIClient: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
- Components.Schemas.DevicesWithoutIncludesResponse.self,
+ Components.Schemas.ErrorResponse.self,
from: responseBody,
transforming: { value in
.json(value)
@@ -4564,7 +4564,7 @@ public struct DeveloperAPIClient: APIProtocol {
default:
preconditionFailure("bestContentType chose an invalid content type.")
}
- return .ok(.init(body: body))
+ return .notFound(.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 3d32427..d1333d1 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,10 +5306,10 @@ public enum Operations {
}
}
}
- public struct UnprocessableContent: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/422/content`.
+ public struct Conflict: Sendable, Hashable {
+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/409/content`.
@frozen public enum Body: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/422/content/application\/json`.
+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/409/content/application\/json`.
case json(Components.Schemas.ErrorResponse)
/// The associated value of the enum case if `self` is `.json`.
///
@@ -5224,93 +5325,42 @@ public enum Operations {
}
}
/// 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`.
+ public var body: Operations.BundleIdCapabilitiesCreateInstance.Output.Conflict.Body
+ /// Creates a new `Conflict`.
///
/// - Parameters:
/// - body: Received HTTP response body
- public init(body: Operations.BundleIdCapabilitiesCreateInstance.Output.Created.Body) {
+ public init(body: Operations.BundleIdCapabilitiesCreateInstance.Output.Conflict.Body) {
self.body = body
}
}
- /// Single BundleIdCapability
+ /// Request entity error(s)
///
- /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/201`.
+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/409`.
///
- /// HTTP response code: `201 created`.
- case created(Operations.BundleIdCapabilitiesCreateInstance.Output.Created)
- /// The associated value of the enum case if `self` is `.created`.
+ /// HTTP response code: `409 conflict`.
+ case conflict(Operations.BundleIdCapabilitiesCreateInstance.Output.Conflict)
+ /// The associated value of the enum case if `self` is `.conflict`.
///
- /// - Throws: An error if `self` is not `.created`.
- /// - SeeAlso: `.created`.
- public var created: Operations.BundleIdCapabilitiesCreateInstance.Output.Created {
+ /// - Throws: An error if `self` is not `.conflict`.
+ /// - SeeAlso: `.conflict`.
+ public var conflict: Operations.BundleIdCapabilitiesCreateInstance.Output.Conflict {
get throws {
switch self {
- case let .created(response):
+ case let .conflict(response):
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "created",
+ expectedStatus: "conflict",
response: self
)
}
}
}
- public struct Conflict: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/409/content`.
+ 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/409/content/application\/json`.
+ /// - 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`.
///
@@ -5326,33 +5376,33 @@ public enum Operations {
}
}
/// Received HTTP response body
- public var body: Operations.BundleIdCapabilitiesCreateInstance.Output.Conflict.Body
- /// Creates a new `Conflict`.
+ public var body: Operations.BundleIdCapabilitiesCreateInstance.Output.UnprocessableContent.Body
+ /// Creates a new `UnprocessableContent`.
///
/// - Parameters:
/// - body: Received HTTP response body
- public init(body: Operations.BundleIdCapabilitiesCreateInstance.Output.Conflict.Body) {
+ public init(body: Operations.BundleIdCapabilitiesCreateInstance.Output.UnprocessableContent.Body) {
self.body = body
}
}
- /// Request entity error(s)
+ /// Unprocessable request entity error(s)
///
- /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/409`.
+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/422`.
///
- /// HTTP response code: `409 conflict`.
- case conflict(Operations.BundleIdCapabilitiesCreateInstance.Output.Conflict)
- /// The associated value of the enum case if `self` is `.conflict`.
+ /// 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 `.conflict`.
- /// - SeeAlso: `.conflict`.
- public var conflict: Operations.BundleIdCapabilitiesCreateInstance.Output.Conflict {
+ /// - Throws: An error if `self` is not `.unprocessableContent`.
+ /// - SeeAlso: `.unprocessableContent`.
+ public var unprocessableContent: Operations.BundleIdCapabilitiesCreateInstance.Output.UnprocessableContent {
get throws {
switch self {
- case let .conflict(response):
+ case let .unprocessableContent(response):
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "conflict",
+ expectedStatus: "unprocessableContent",
response: self
)
}
@@ -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,10 +5749,10 @@ public enum Operations {
}
}
}
- public struct UnprocessableContent: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/422/content`.
+ public struct Conflict: Sendable, Hashable {
+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/409/content`.
@frozen public enum Body: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/422/content/application\/json`.
+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/409/content/application\/json`.
case json(Components.Schemas.ErrorResponse)
/// The associated value of the enum case if `self` is `.json`.
///
@@ -5667,93 +5768,42 @@ public enum Operations {
}
}
/// Received HTTP response body
- public var body: Operations.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent.Body
- /// Creates a new `UnprocessableContent`.
+ public var body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Conflict.Body
+ /// Creates a new `Conflict`.
///
/// - 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) {
+ public init(body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Conflict.Body) {
self.body = body
}
}
- /// Single BundleIdCapability
+ /// Request entity error(s)
///
- /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/200`.
+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/409`.
///
- /// HTTP response code: `200 ok`.
- case ok(Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok)
- /// The associated value of the enum case if `self` is `.ok`.
+ /// HTTP response code: `409 conflict`.
+ case conflict(Operations.BundleIdCapabilitiesUpdateInstance.Output.Conflict)
+ /// The associated value of the enum case if `self` is `.conflict`.
///
- /// - Throws: An error if `self` is not `.ok`.
- /// - SeeAlso: `.ok`.
- public var ok: Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok {
+ /// - Throws: An error if `self` is not `.conflict`.
+ /// - SeeAlso: `.conflict`.
+ public var conflict: Operations.BundleIdCapabilitiesUpdateInstance.Output.Conflict {
get throws {
switch self {
- case let .ok(response):
+ case let .conflict(response):
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "ok",
+ expectedStatus: "conflict",
response: self
)
}
}
}
- public struct Conflict: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/409/content`.
+ 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/409/content/application\/json`.
+ /// - 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`.
///
@@ -5769,33 +5819,33 @@ public enum Operations {
}
}
/// Received HTTP response body
- public var body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Conflict.Body
- /// Creates a new `Conflict`.
+ public var body: Operations.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent.Body
+ /// Creates a new `UnprocessableContent`.
///
/// - Parameters:
/// - body: Received HTTP response body
- public init(body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Conflict.Body) {
+ public init(body: Operations.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent.Body) {
self.body = body
}
}
- /// Request entity error(s)
+ /// Unprocessable request entity error(s)
///
- /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/409`.
+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/422`.
///
- /// HTTP response code: `409 conflict`.
- case conflict(Operations.BundleIdCapabilitiesUpdateInstance.Output.Conflict)
- /// The associated value of the enum case if `self` is `.conflict`.
+ /// 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 `.conflict`.
- /// - SeeAlso: `.conflict`.
- public var conflict: Operations.BundleIdCapabilitiesUpdateInstance.Output.Conflict {
+ /// - Throws: An error if `self` is not `.unprocessableContent`.
+ /// - SeeAlso: `.unprocessableContent`.
+ public var unprocessableContent: Operations.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent {
get throws {
switch self {
- case let .conflict(response):
+ case let .unprocessableContent(response):
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "conflict",
+ expectedStatus: "unprocessableContent",
response: self
)
}
@@ -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,58 +6706,7 @@ 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.
+ /// Undocumented response.
///
/// A response with a code that is not documented in the OpenAPI document.
case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)
@@ -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,10 +6978,10 @@ public enum Operations {
}
}
}
- public struct UnprocessableContent: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/422/content`.
+ public struct Conflict: Sendable, Hashable {
+ /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/409/content`.
@frozen public enum Body: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/422/content/application\/json`.
+ /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/409/content/application\/json`.
case json(Components.Schemas.ErrorResponse)
/// The associated value of the enum case if `self` is `.json`.
///
@@ -6896,93 +6997,42 @@ public enum Operations {
}
}
/// 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`.
+ public var body: Operations.BundleIdsCreateInstance.Output.Conflict.Body
+ /// Creates a new `Conflict`.
///
/// - Parameters:
/// - body: Received HTTP response body
- public init(body: Operations.BundleIdsCreateInstance.Output.Created.Body) {
+ public init(body: Operations.BundleIdsCreateInstance.Output.Conflict.Body) {
self.body = body
}
}
- /// Single BundleId
+ /// Request entity error(s)
///
- /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/201`.
+ /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/409`.
///
- /// HTTP response code: `201 created`.
- case created(Operations.BundleIdsCreateInstance.Output.Created)
- /// The associated value of the enum case if `self` is `.created`.
+ /// HTTP response code: `409 conflict`.
+ case conflict(Operations.BundleIdsCreateInstance.Output.Conflict)
+ /// The associated value of the enum case if `self` is `.conflict`.
///
- /// - Throws: An error if `self` is not `.created`.
- /// - SeeAlso: `.created`.
- public var created: Operations.BundleIdsCreateInstance.Output.Created {
+ /// - Throws: An error if `self` is not `.conflict`.
+ /// - SeeAlso: `.conflict`.
+ public var conflict: Operations.BundleIdsCreateInstance.Output.Conflict {
get throws {
switch self {
- case let .created(response):
+ case let .conflict(response):
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "created",
+ expectedStatus: "conflict",
response: self
)
}
}
}
- public struct Conflict: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/409/content`.
+ 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/409/content/application\/json`.
+ /// - 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`.
///
@@ -6998,33 +7048,33 @@ public enum Operations {
}
}
/// Received HTTP response body
- public var body: Operations.BundleIdsCreateInstance.Output.Conflict.Body
- /// Creates a new `Conflict`.
+ public var body: Operations.BundleIdsCreateInstance.Output.UnprocessableContent.Body
+ /// Creates a new `UnprocessableContent`.
///
/// - Parameters:
/// - body: Received HTTP response body
- public init(body: Operations.BundleIdsCreateInstance.Output.Conflict.Body) {
+ public init(body: Operations.BundleIdsCreateInstance.Output.UnprocessableContent.Body) {
self.body = body
}
}
- /// Request entity error(s)
+ /// Unprocessable request entity error(s)
///
- /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/409`.
+ /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/422`.
///
- /// HTTP response code: `409 conflict`.
- case conflict(Operations.BundleIdsCreateInstance.Output.Conflict)
- /// The associated value of the enum case if `self` is `.conflict`.
+ /// 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 `.conflict`.
- /// - SeeAlso: `.conflict`.
- public var conflict: Operations.BundleIdsCreateInstance.Output.Conflict {
+ /// - Throws: An error if `self` is not `.unprocessableContent`.
+ /// - SeeAlso: `.unprocessableContent`.
+ public var unprocessableContent: Operations.BundleIdsCreateInstance.Output.UnprocessableContent {
get throws {
switch self {
- case let .conflict(response):
+ case let .unprocessableContent(response):
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "conflict",
+ expectedStatus: "unprocessableContent",
response: self
)
}
@@ -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,10 +7906,10 @@ public enum Operations {
}
}
}
- public struct UnprocessableContent: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/422/content`.
+ public struct Conflict: Sendable, Hashable {
+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/409/content`.
@frozen public enum Body: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/422/content/application\/json`.
+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/409/content/application\/json`.
case json(Components.Schemas.ErrorResponse)
/// The associated value of the enum case if `self` is `.json`.
///
@@ -7824,93 +7925,42 @@ public enum Operations {
}
}
/// 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`.
+ public var body: Operations.BundleIdsUpdateInstance.Output.Conflict.Body
+ /// Creates a new `Conflict`.
///
/// - Parameters:
/// - body: Received HTTP response body
- public init(body: Operations.BundleIdsUpdateInstance.Output.Ok.Body) {
+ public init(body: Operations.BundleIdsUpdateInstance.Output.Conflict.Body) {
self.body = body
}
}
- /// Single BundleId
+ /// Request entity error(s)
///
- /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)/responses/200`.
+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)/responses/409`.
///
- /// HTTP response code: `200 ok`.
- case ok(Operations.BundleIdsUpdateInstance.Output.Ok)
- /// The associated value of the enum case if `self` is `.ok`.
+ /// HTTP response code: `409 conflict`.
+ case conflict(Operations.BundleIdsUpdateInstance.Output.Conflict)
+ /// The associated value of the enum case if `self` is `.conflict`.
///
- /// - Throws: An error if `self` is not `.ok`.
- /// - SeeAlso: `.ok`.
- public var ok: Operations.BundleIdsUpdateInstance.Output.Ok {
+ /// - Throws: An error if `self` is not `.conflict`.
+ /// - SeeAlso: `.conflict`.
+ public var conflict: Operations.BundleIdsUpdateInstance.Output.Conflict {
get throws {
switch self {
- case let .ok(response):
+ case let .conflict(response):
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "ok",
+ expectedStatus: "conflict",
response: self
)
}
}
}
- public struct Conflict: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/409/content`.
+ 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/409/content/application\/json`.
+ /// - 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`.
///
@@ -7926,33 +7976,33 @@ public enum Operations {
}
}
/// Received HTTP response body
- public var body: Operations.BundleIdsUpdateInstance.Output.Conflict.Body
- /// Creates a new `Conflict`.
+ public var body: Operations.BundleIdsUpdateInstance.Output.UnprocessableContent.Body
+ /// Creates a new `UnprocessableContent`.
///
/// - Parameters:
/// - body: Received HTTP response body
- public init(body: Operations.BundleIdsUpdateInstance.Output.Conflict.Body) {
+ public init(body: Operations.BundleIdsUpdateInstance.Output.UnprocessableContent.Body) {
self.body = body
}
}
- /// Request entity error(s)
+ /// Unprocessable request entity error(s)
///
- /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)/responses/409`.
+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)/responses/422`.
///
- /// HTTP response code: `409 conflict`.
- case conflict(Operations.BundleIdsUpdateInstance.Output.Conflict)
- /// The associated value of the enum case if `self` is `.conflict`.
+ /// 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 `.conflict`.
- /// - SeeAlso: `.conflict`.
- public var conflict: Operations.BundleIdsUpdateInstance.Output.Conflict {
+ /// - Throws: An error if `self` is not `.unprocessableContent`.
+ /// - SeeAlso: `.unprocessableContent`.
+ public var unprocessableContent: Operations.BundleIdsUpdateInstance.Output.UnprocessableContent {
get throws {
switch self {
- case let .conflict(response):
+ case let .unprocessableContent(response):
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "conflict",
+ expectedStatus: "unprocessableContent",
response: self
)
}
@@ -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,42 +8375,7 @@ 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.
+ /// Undocumented response.
///
/// A response with a code that is not documented in the OpenAPI document.
case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)
@@ -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,10 +9015,10 @@ public enum Operations {
}
}
}
- public struct UnprocessableContent: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/422/content`.
+ public struct Conflict: Sendable, Hashable {
+ /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/409/content`.
@frozen public enum Body: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/422/content/application\/json`.
+ /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/409/content/application\/json`.
case json(Components.Schemas.ErrorResponse)
/// The associated value of the enum case if `self` is `.json`.
///
@@ -8933,48 +9034,48 @@ public enum Operations {
}
}
/// Received HTTP response body
- public var body: Operations.CertificatesCreateInstance.Output.UnprocessableContent.Body
- /// Creates a new `UnprocessableContent`.
+ public var body: Operations.CertificatesCreateInstance.Output.Conflict.Body
+ /// Creates a new `Conflict`.
///
/// - Parameters:
/// - body: Received HTTP response body
- public init(body: Operations.CertificatesCreateInstance.Output.UnprocessableContent.Body) {
+ public init(body: Operations.CertificatesCreateInstance.Output.Conflict.Body) {
self.body = body
}
}
- /// Unprocessable request entity error(s)
+ /// Request entity error(s)
///
- /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)/responses/422`.
+ /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)/responses/409`.
///
- /// HTTP response code: `422 unprocessableContent`.
- case unprocessableContent(Operations.CertificatesCreateInstance.Output.UnprocessableContent)
- /// The associated value of the enum case if `self` is `.unprocessableContent`.
+ /// HTTP response code: `409 conflict`.
+ case conflict(Operations.CertificatesCreateInstance.Output.Conflict)
+ /// The associated value of the enum case if `self` is `.conflict`.
///
- /// - Throws: An error if `self` is not `.unprocessableContent`.
- /// - SeeAlso: `.unprocessableContent`.
- public var unprocessableContent: Operations.CertificatesCreateInstance.Output.UnprocessableContent {
+ /// - Throws: An error if `self` is not `.conflict`.
+ /// - SeeAlso: `.conflict`.
+ public var conflict: Operations.CertificatesCreateInstance.Output.Conflict {
get throws {
switch self {
- case let .unprocessableContent(response):
+ case let .conflict(response):
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "unprocessableContent",
+ expectedStatus: "conflict",
response: self
)
}
}
}
- public struct Created: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/201/content`.
+ 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/201/content/application\/json`.
- case json(Components.Schemas.CertificateResponse)
+ /// - 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.CertificateResponse {
+ public var json: Components.Schemas.ErrorResponse {
get throws {
switch self {
case let .json(body):
@@ -8984,84 +9085,33 @@ public enum Operations {
}
}
/// Received HTTP response body
- public var body: Operations.CertificatesCreateInstance.Output.Created.Body
- /// Creates a new `Created`.
+ public var body: Operations.CertificatesCreateInstance.Output.UnprocessableContent.Body
+ /// Creates a new `UnprocessableContent`.
///
/// - Parameters:
/// - body: Received HTTP response body
- public init(body: Operations.CertificatesCreateInstance.Output.Created.Body) {
+ public init(body: Operations.CertificatesCreateInstance.Output.UnprocessableContent.Body) {
self.body = body
}
}
- /// Single Certificate
+ /// Unprocessable request entity error(s)
///
- /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)/responses/201`.
+ /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)/responses/422`.
///
- /// HTTP response code: `201 created`.
- case created(Operations.CertificatesCreateInstance.Output.Created)
- /// The associated value of the enum case if `self` is `.created`.
+ /// 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 `.created`.
- /// - SeeAlso: `.created`.
- public var created: Operations.CertificatesCreateInstance.Output.Created {
+ /// - Throws: An error if `self` is not `.unprocessableContent`.
+ /// - SeeAlso: `.unprocessableContent`.
+ public var unprocessableContent: Operations.CertificatesCreateInstance.Output.UnprocessableContent {
get throws {
switch self {
- case let .created(response):
+ case let .unprocessableContent(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 {
- /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/409/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.Conflict.Body
- /// Creates a new `Conflict`.
- ///
- /// - Parameters:
- /// - body: Received HTTP response body
- public init(body: Operations.CertificatesCreateInstance.Output.Conflict.Body) {
- self.body = body
- }
- }
- /// Request entity error(s)
- ///
- /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)/responses/409`.
- ///
- /// HTTP response code: `409 conflict`.
- case conflict(Operations.CertificatesCreateInstance.Output.Conflict)
- /// The associated value of the enum case if `self` is `.conflict`.
- ///
- /// - Throws: An error if `self` is not `.conflict`.
- /// - SeeAlso: `.conflict`.
- public var conflict: Operations.CertificatesCreateInstance.Output.Conflict {
- get throws {
- switch self {
- case let .conflict(response):
- return response
- default:
- try throwUnexpectedResponseStatus(
- expectedStatus: "conflict",
+ expectedStatus: "unprocessableContent",
response: self
)
}
@@ -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,10 +10492,10 @@ public enum Operations {
}
}
}
- public struct UnprocessableContent: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/devices/POST/responses/422/content`.
+ public struct Conflict: Sendable, Hashable {
+ /// - Remark: Generated from `#/paths/v1/devices/POST/responses/409/content`.
@frozen public enum Body: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/devices/POST/responses/422/content/application\/json`.
+ /// - Remark: Generated from `#/paths/v1/devices/POST/responses/409/content/application\/json`.
case json(Components.Schemas.ErrorResponse)
/// The associated value of the enum case if `self` is `.json`.
///
@@ -10410,93 +10511,42 @@ public enum Operations {
}
}
/// 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`.
+ public var body: Operations.DevicesCreateInstance.Output.Conflict.Body
+ /// Creates a new `Conflict`.
///
/// - Parameters:
/// - body: Received HTTP response body
- public init(body: Operations.DevicesCreateInstance.Output.Created.Body) {
+ public init(body: Operations.DevicesCreateInstance.Output.Conflict.Body) {
self.body = body
}
}
- /// Single Device
+ /// Request entity error(s)
///
- /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)/responses/201`.
+ /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)/responses/409`.
///
- /// HTTP response code: `201 created`.
- case created(Operations.DevicesCreateInstance.Output.Created)
- /// The associated value of the enum case if `self` is `.created`.
+ /// HTTP response code: `409 conflict`.
+ case conflict(Operations.DevicesCreateInstance.Output.Conflict)
+ /// The associated value of the enum case if `self` is `.conflict`.
///
- /// - Throws: An error if `self` is not `.created`.
- /// - SeeAlso: `.created`.
- public var created: Operations.DevicesCreateInstance.Output.Created {
+ /// - Throws: An error if `self` is not `.conflict`.
+ /// - SeeAlso: `.conflict`.
+ public var conflict: Operations.DevicesCreateInstance.Output.Conflict {
get throws {
switch self {
- case let .created(response):
+ case let .conflict(response):
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "created",
+ expectedStatus: "conflict",
response: self
)
}
}
}
- public struct Conflict: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/devices/POST/responses/409/content`.
+ 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/409/content/application\/json`.
+ /// - 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`.
///
@@ -10512,33 +10562,33 @@ public enum Operations {
}
}
/// Received HTTP response body
- public var body: Operations.DevicesCreateInstance.Output.Conflict.Body
- /// Creates a new `Conflict`.
+ public var body: Operations.DevicesCreateInstance.Output.UnprocessableContent.Body
+ /// Creates a new `UnprocessableContent`.
///
/// - Parameters:
/// - body: Received HTTP response body
- public init(body: Operations.DevicesCreateInstance.Output.Conflict.Body) {
+ public init(body: Operations.DevicesCreateInstance.Output.UnprocessableContent.Body) {
self.body = body
}
}
- /// Request entity error(s)
+ /// Unprocessable request entity error(s)
///
- /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)/responses/409`.
+ /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)/responses/422`.
///
- /// HTTP response code: `409 conflict`.
- case conflict(Operations.DevicesCreateInstance.Output.Conflict)
- /// The associated value of the enum case if `self` is `.conflict`.
+ /// 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 `.conflict`.
- /// - SeeAlso: `.conflict`.
- public var conflict: Operations.DevicesCreateInstance.Output.Conflict {
+ /// - Throws: An error if `self` is not `.unprocessableContent`.
+ /// - SeeAlso: `.unprocessableContent`.
+ public var unprocessableContent: Operations.DevicesCreateInstance.Output.UnprocessableContent {
get throws {
switch self {
- case let .conflict(response):
+ case let .unprocessableContent(response):
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "conflict",
+ expectedStatus: "unprocessableContent",
response: self
)
}
@@ -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.
@@ -10968,30 +11018,81 @@ public enum Operations {
self.accept = accept
}
}
- public var headers: Operations.DevicesUpdateInstance.Input.Headers
- /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/requestBody`.
- @frozen public enum Body: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/requestBody/content/application\/json`.
- case json(Components.Schemas.DeviceUpdateRequest)
- }
- public var body: Operations.DevicesUpdateInstance.Input.Body
- /// Creates a new `Input`.
+ public var headers: Operations.DevicesUpdateInstance.Input.Headers
+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/requestBody`.
+ @frozen public enum Body: Sendable, Hashable {
+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/requestBody/content/application\/json`.
+ case json(Components.Schemas.DeviceUpdateRequest)
+ }
+ public var body: Operations.DevicesUpdateInstance.Input.Body
+ /// Creates a new `Input`.
+ ///
+ /// - Parameters:
+ /// - path:
+ /// - headers:
+ /// - body:
+ public init(
+ path: Operations.DevicesUpdateInstance.Input.Path,
+ headers: Operations.DevicesUpdateInstance.Input.Headers = .init(),
+ body: Operations.DevicesUpdateInstance.Input.Body
+ ) {
+ self.path = path
+ self.headers = headers
+ self.body = body
+ }
+ }
+ @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
///
- /// - Parameters:
- /// - path:
- /// - headers:
- /// - body:
- public init(
- path: Operations.DevicesUpdateInstance.Input.Path,
- headers: Operations.DevicesUpdateInstance.Input.Headers = .init(),
- body: Operations.DevicesUpdateInstance.Input.Body
- ) {
- self.path = path
- self.headers = headers
- self.body = body
+ /// - 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
+ )
+ }
+ }
}
- }
- @frozen public enum Output: Sendable, Hashable {
public struct BadRequest: Sendable, Hashable {
/// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/400/content`.
@frozen public enum Body: Sendable, Hashable {
@@ -11196,10 +11297,10 @@ public enum Operations {
}
}
}
- public struct UnprocessableContent: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/422/content`.
+ public struct Conflict: Sendable, Hashable {
+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/409/content`.
@frozen public enum Body: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/422/content/application\/json`.
+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/409/content/application\/json`.
case json(Components.Schemas.ErrorResponse)
/// The associated value of the enum case if `self` is `.json`.
///
@@ -11215,93 +11316,42 @@ public enum Operations {
}
}
/// 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`.
+ public var body: Operations.DevicesUpdateInstance.Output.Conflict.Body
+ /// Creates a new `Conflict`.
///
/// - Parameters:
/// - body: Received HTTP response body
- public init(body: Operations.DevicesUpdateInstance.Output.Ok.Body) {
+ public init(body: Operations.DevicesUpdateInstance.Output.Conflict.Body) {
self.body = body
}
}
- /// Single Device
+ /// Request entity error(s)
///
- /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)/responses/200`.
+ /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)/responses/409`.
///
- /// HTTP response code: `200 ok`.
- case ok(Operations.DevicesUpdateInstance.Output.Ok)
- /// The associated value of the enum case if `self` is `.ok`.
+ /// HTTP response code: `409 conflict`.
+ case conflict(Operations.DevicesUpdateInstance.Output.Conflict)
+ /// The associated value of the enum case if `self` is `.conflict`.
///
- /// - Throws: An error if `self` is not `.ok`.
- /// - SeeAlso: `.ok`.
- public var ok: Operations.DevicesUpdateInstance.Output.Ok {
+ /// - Throws: An error if `self` is not `.conflict`.
+ /// - SeeAlso: `.conflict`.
+ public var conflict: Operations.DevicesUpdateInstance.Output.Conflict {
get throws {
switch self {
- case let .ok(response):
+ case let .conflict(response):
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "ok",
+ expectedStatus: "conflict",
response: self
)
}
}
}
- public struct Conflict: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/409/content`.
+ 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/409/content/application\/json`.
+ /// - 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`.
///
@@ -11317,33 +11367,33 @@ public enum Operations {
}
}
/// Received HTTP response body
- public var body: Operations.DevicesUpdateInstance.Output.Conflict.Body
- /// Creates a new `Conflict`.
+ public var body: Operations.DevicesUpdateInstance.Output.UnprocessableContent.Body
+ /// Creates a new `UnprocessableContent`.
///
/// - Parameters:
/// - body: Received HTTP response body
- public init(body: Operations.DevicesUpdateInstance.Output.Conflict.Body) {
+ public init(body: Operations.DevicesUpdateInstance.Output.UnprocessableContent.Body) {
self.body = body
}
}
- /// Request entity error(s)
+ /// Unprocessable request entity error(s)
///
- /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)/responses/409`.
+ /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)/responses/422`.
///
- /// HTTP response code: `409 conflict`.
- case conflict(Operations.DevicesUpdateInstance.Output.Conflict)
- /// The associated value of the enum case if `self` is `.conflict`.
+ /// 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 `.conflict`.
- /// - SeeAlso: `.conflict`.
- public var conflict: Operations.DevicesUpdateInstance.Output.Conflict {
+ /// - Throws: An error if `self` is not `.unprocessableContent`.
+ /// - SeeAlso: `.unprocessableContent`.
+ public var unprocessableContent: Operations.DevicesUpdateInstance.Output.UnprocessableContent {
get throws {
switch self {
- case let .conflict(response):
+ case let .unprocessableContent(response):
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "conflict",
+ expectedStatus: "unprocessableContent",
response: self
)
}
@@ -11611,16 +11661,16 @@ public enum Operations {
}
}
@frozen public enum Output: Sendable, Hashable {
- public struct BadRequest: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/400/content`.
+ 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/400/content/application\/json`.
- case json(Components.Schemas.ErrorResponse)
+ /// - 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.ErrorResponse {
+ public var json: Components.Schemas.ProfilesResponse {
get throws {
switch self {
case let .json(body):
@@ -11630,42 +11680,42 @@ public enum Operations {
}
}
/// Received HTTP response body
- public var body: Operations.ProfilesGetCollection.Output.BadRequest.Body
- /// Creates a new `BadRequest`.
+ public var body: Operations.ProfilesGetCollection.Output.Ok.Body
+ /// Creates a new `Ok`.
///
/// - Parameters:
/// - body: Received HTTP response body
- public init(body: Operations.ProfilesGetCollection.Output.BadRequest.Body) {
+ public init(body: Operations.ProfilesGetCollection.Output.Ok.Body) {
self.body = body
}
}
- /// Parameter error(s)
+ /// List of Profiles
///
- /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)/responses/400`.
+ /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)/responses/200`.
///
- /// HTTP response code: `400 badRequest`.
- case badRequest(Operations.ProfilesGetCollection.Output.BadRequest)
- /// The associated value of the enum case if `self` is `.badRequest`.
+ /// 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 `.badRequest`.
- /// - SeeAlso: `.badRequest`.
- public var badRequest: Operations.ProfilesGetCollection.Output.BadRequest {
+ /// - Throws: An error if `self` is not `.ok`.
+ /// - SeeAlso: `.ok`.
+ public var ok: Operations.ProfilesGetCollection.Output.Ok {
get throws {
switch self {
- case let .badRequest(response):
+ case let .ok(response):
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "badRequest",
+ expectedStatus: "ok",
response: self
)
}
}
}
- public struct Unauthorized: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/401/content`.
+ public struct BadRequest: Sendable, Hashable {
+ /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/400/content`.
@frozen public enum Body: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/401/content/application\/json`.
+ /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/400/content/application\/json`.
case json(Components.Schemas.ErrorResponse)
/// The associated value of the enum case if `self` is `.json`.
///
@@ -11681,42 +11731,42 @@ public enum Operations {
}
}
/// Received HTTP response body
- public var body: Operations.ProfilesGetCollection.Output.Unauthorized.Body
- /// Creates a new `Unauthorized`.
+ public var body: Operations.ProfilesGetCollection.Output.BadRequest.Body
+ /// Creates a new `BadRequest`.
///
/// - Parameters:
/// - body: Received HTTP response body
- public init(body: Operations.ProfilesGetCollection.Output.Unauthorized.Body) {
+ public init(body: Operations.ProfilesGetCollection.Output.BadRequest.Body) {
self.body = body
}
}
- /// Unauthorized error(s)
+ /// Parameter error(s)
///
- /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)/responses/401`.
+ /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)/responses/400`.
///
- /// HTTP response code: `401 unauthorized`.
- case unauthorized(Operations.ProfilesGetCollection.Output.Unauthorized)
- /// The associated value of the enum case if `self` is `.unauthorized`.
+ /// HTTP response code: `400 badRequest`.
+ case badRequest(Operations.ProfilesGetCollection.Output.BadRequest)
+ /// The associated value of the enum case if `self` is `.badRequest`.
///
- /// - Throws: An error if `self` is not `.unauthorized`.
- /// - SeeAlso: `.unauthorized`.
- public var unauthorized: Operations.ProfilesGetCollection.Output.Unauthorized {
+ /// - Throws: An error if `self` is not `.badRequest`.
+ /// - SeeAlso: `.badRequest`.
+ public var badRequest: Operations.ProfilesGetCollection.Output.BadRequest {
get throws {
switch self {
- case let .unauthorized(response):
+ case let .badRequest(response):
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "unauthorized",
+ expectedStatus: "badRequest",
response: self
)
}
}
}
- public struct Forbidden: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/403/content`.
+ public struct Unauthorized: Sendable, Hashable {
+ /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/401/content`.
@frozen public enum Body: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/403/content/application\/json`.
+ /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/401/content/application\/json`.
case json(Components.Schemas.ErrorResponse)
/// The associated value of the enum case if `self` is `.json`.
///
@@ -11732,48 +11782,48 @@ public enum Operations {
}
}
/// Received HTTP response body
- public var body: Operations.ProfilesGetCollection.Output.Forbidden.Body
- /// Creates a new `Forbidden`.
+ public var body: Operations.ProfilesGetCollection.Output.Unauthorized.Body
+ /// Creates a new `Unauthorized`.
///
/// - Parameters:
/// - body: Received HTTP response body
- public init(body: Operations.ProfilesGetCollection.Output.Forbidden.Body) {
+ public init(body: Operations.ProfilesGetCollection.Output.Unauthorized.Body) {
self.body = body
}
}
- /// Forbidden error
- ///
- /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)/responses/403`.
+ /// Unauthorized error(s)
///
- /// HTTP response code: `403 forbidden`.
- case forbidden(Operations.ProfilesGetCollection.Output.Forbidden)
- /// The associated value of the enum case if `self` is `.forbidden`.
+ /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)/responses/401`.
///
- /// - Throws: An error if `self` is not `.forbidden`.
- /// - SeeAlso: `.forbidden`.
- public var forbidden: Operations.ProfilesGetCollection.Output.Forbidden {
+ /// HTTP response code: `401 unauthorized`.
+ case unauthorized(Operations.ProfilesGetCollection.Output.Unauthorized)
+ /// The associated value of the enum case if `self` is `.unauthorized`.
+ ///
+ /// - Throws: An error if `self` is not `.unauthorized`.
+ /// - SeeAlso: `.unauthorized`.
+ public var unauthorized: Operations.ProfilesGetCollection.Output.Unauthorized {
get throws {
switch self {
- case let .forbidden(response):
+ case let .unauthorized(response):
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "forbidden",
+ expectedStatus: "unauthorized",
response: self
)
}
}
}
- public struct Ok: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/200/content`.
+ public struct Forbidden: Sendable, Hashable {
+ /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/403/content`.
@frozen public enum Body: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/200/content/application\/json`.
- case json(Components.Schemas.ProfilesResponse)
+ /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/403/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.ProfilesResponse {
+ public var json: Components.Schemas.ErrorResponse {
get throws {
switch self {
case let .json(body):
@@ -11783,33 +11833,33 @@ public enum Operations {
}
}
/// Received HTTP response body
- public var body: Operations.ProfilesGetCollection.Output.Ok.Body
- /// Creates a new `Ok`.
+ public var body: Operations.ProfilesGetCollection.Output.Forbidden.Body
+ /// Creates a new `Forbidden`.
///
/// - Parameters:
/// - body: Received HTTP response body
- public init(body: Operations.ProfilesGetCollection.Output.Ok.Body) {
+ public init(body: Operations.ProfilesGetCollection.Output.Forbidden.Body) {
self.body = body
}
}
- /// List of Profiles
+ /// Forbidden error
///
- /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)/responses/200`.
+ /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)/responses/403`.
///
- /// HTTP response code: `200 ok`.
- case ok(Operations.ProfilesGetCollection.Output.Ok)
- /// The associated value of the enum case if `self` is `.ok`.
+ /// HTTP response code: `403 forbidden`.
+ case forbidden(Operations.ProfilesGetCollection.Output.Forbidden)
+ /// The associated value of the enum case if `self` is `.forbidden`.
///
- /// - Throws: An error if `self` is not `.ok`.
- /// - SeeAlso: `.ok`.
- public var ok: Operations.ProfilesGetCollection.Output.Ok {
+ /// - Throws: An error if `self` is not `.forbidden`.
+ /// - SeeAlso: `.forbidden`.
+ public var forbidden: Operations.ProfilesGetCollection.Output.Forbidden {
get throws {
switch self {
- case let .ok(response):
+ case let .forbidden(response):
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "ok",
+ expectedStatus: "forbidden",
response: self
)
}
@@ -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,10 +12137,10 @@ public enum Operations {
}
}
}
- public struct UnprocessableContent: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/422/content`.
+ public struct Conflict: Sendable, Hashable {
+ /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/409/content`.
@frozen public enum Body: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/422/content/application\/json`.
+ /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/409/content/application\/json`.
case json(Components.Schemas.ErrorResponse)
/// The associated value of the enum case if `self` is `.json`.
///
@@ -12055,93 +12156,42 @@ public enum Operations {
}
}
/// 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`.
+ public var body: Operations.ProfilesCreateInstance.Output.Conflict.Body
+ /// Creates a new `Conflict`.
///
/// - Parameters:
/// - body: Received HTTP response body
- public init(body: Operations.ProfilesCreateInstance.Output.Created.Body) {
+ public init(body: Operations.ProfilesCreateInstance.Output.Conflict.Body) {
self.body = body
}
}
- /// Single Profile
+ /// Request entity error(s)
///
- /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)/responses/201`.
+ /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)/responses/409`.
///
- /// HTTP response code: `201 created`.
- case created(Operations.ProfilesCreateInstance.Output.Created)
- /// The associated value of the enum case if `self` is `.created`.
+ /// HTTP response code: `409 conflict`.
+ case conflict(Operations.ProfilesCreateInstance.Output.Conflict)
+ /// The associated value of the enum case if `self` is `.conflict`.
///
- /// - Throws: An error if `self` is not `.created`.
- /// - SeeAlso: `.created`.
- public var created: Operations.ProfilesCreateInstance.Output.Created {
+ /// - Throws: An error if `self` is not `.conflict`.
+ /// - SeeAlso: `.conflict`.
+ public var conflict: Operations.ProfilesCreateInstance.Output.Conflict {
get throws {
switch self {
- case let .created(response):
+ case let .conflict(response):
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "created",
+ expectedStatus: "conflict",
response: self
)
}
}
}
- public struct Conflict: Sendable, Hashable {
- /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/409/content`.
+ 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/409/content/application\/json`.
+ /// - 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`.
///
@@ -12157,33 +12207,33 @@ public enum Operations {
}
}
/// Received HTTP response body
- public var body: Operations.ProfilesCreateInstance.Output.Conflict.Body
- /// Creates a new `Conflict`.
+ public var body: Operations.ProfilesCreateInstance.Output.UnprocessableContent.Body
+ /// Creates a new `UnprocessableContent`.
///
/// - Parameters:
/// - body: Received HTTP response body
- public init(body: Operations.ProfilesCreateInstance.Output.Conflict.Body) {
+ public init(body: Operations.ProfilesCreateInstance.Output.UnprocessableContent.Body) {
self.body = body
}
}
- /// Request entity error(s)
+ /// Unprocessable request entity error(s)
///
- /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)/responses/409`.
+ /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)/responses/422`.
///
- /// HTTP response code: `409 conflict`.
- case conflict(Operations.ProfilesCreateInstance.Output.Conflict)
- /// The associated value of the enum case if `self` is `.conflict`.
+ /// 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 `.conflict`.
- /// - SeeAlso: `.conflict`.
- public var conflict: Operations.ProfilesCreateInstance.Output.Conflict {
+ /// - Throws: An error if `self` is not `.unprocessableContent`.
+ /// - SeeAlso: `.unprocessableContent`.
+ public var unprocessableContent: Operations.ProfilesCreateInstance.Output.UnprocessableContent {
get throws {
switch self {
- case let .conflict(response):
+ case let .unprocessableContent(response):
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "conflict",
+ expectedStatus: "unprocessableContent",
response: self
)
}
@@ -12373,21 +12423,72 @@ public enum Operations {
public var headers: Operations.ProfilesGetInstance.Input.Headers
/// Creates a new `Input`.
///
- /// - Parameters:
- /// - path:
- /// - query:
- /// - headers:
- public init(
- path: Operations.ProfilesGetInstance.Input.Path,
- query: Operations.ProfilesGetInstance.Input.Query = .init(),
- headers: Operations.ProfilesGetInstance.Input.Headers = .init()
- ) {
- self.path = path
- self.query = query
- self.headers = headers
+ /// - Parameters:
+ /// - path:
+ /// - query:
+ /// - headers:
+ public init(
+ path: Operations.ProfilesGetInstance.Input.Path,
+ query: Operations.ProfilesGetInstance.Input.Query = .init(),
+ headers: Operations.ProfilesGetInstance.Input.Headers = .init()
+ ) {
+ self.path = path
+ self.query = query
+ self.headers = headers
+ }
+ }
+ @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
+ )
+ }
+ }
}
- }
- @frozen public enum Output: Sendable, Hashable {
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 {
@@ -13351,58 +13452,7 @@ public enum Operations {
return response
default:
try throwUnexpectedResponseStatus(
- expectedStatus: "notFound",
- response: self
- )
- }
- }
- }
- 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",
+ expectedStatus: "notFound",
response: self
)
}
@@ -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 0000000..5200693
--- /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]