Skip to content

Commit 04f9a91

Browse files
committed
Commit via running ake Sources/dependency-graph
1 parent 7a0e573 commit 04f9a91

File tree

2 files changed

+392
-383
lines changed

2 files changed

+392
-383
lines changed

Sources/dependency-graph/Client.swift

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ public struct Client: APIProtocol {
4444
///
4545
/// - Remark: HTTP `GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}`.
4646
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/compare/{basehead}/get(dependency-graph/diff-range)`.
47-
public func dependency_hyphen_graph_sol_diff_hyphen_range(_ input: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Input) async throws -> Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Output {
47+
public func dependencyGraphDiffRange(_ input: Operations.DependencyGraphDiffRange.Input) async throws -> Operations.DependencyGraphDiffRange.Output {
4848
try await client.send(
4949
input: input,
50-
forOperation: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.id,
50+
forOperation: Operations.DependencyGraphDiffRange.id,
5151
serializer: { input in
5252
let path = try converter.renderedPath(
5353
template: "/repos/{}/{}/dependency-graph/compare/{}",
@@ -78,13 +78,13 @@ public struct Client: APIProtocol {
7878
deserializer: { response, responseBody in
7979
switch response.status.code {
8080
case 200:
81-
let headers: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI(
81+
let headers: Operations.DependencyGraphDiffRange.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI(
8282
in: response.headerFields,
8383
name: "Link",
84-
as: Components.Headers.link.self
84+
as: Components.Headers.Link.self
8585
))
8686
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
87-
let body: Operations.dependency_hyphen_graph_sol_diff_hyphen_range.Output.Ok.Body
87+
let body: Operations.DependencyGraphDiffRange.Output.Ok.Body
8888
let chosenContentType = try converter.bestContentType(
8989
received: contentType,
9090
options: [
@@ -94,7 +94,7 @@ public struct Client: APIProtocol {
9494
switch chosenContentType {
9595
case "application/json":
9696
body = try await converter.getResponseBodyAsJSON(
97-
Components.Schemas.dependency_hyphen_graph_hyphen_diff.self,
97+
Components.Schemas.DependencyGraphDiff.self,
9898
from: responseBody,
9999
transforming: { value in
100100
.json(value)
@@ -109,7 +109,7 @@ public struct Client: APIProtocol {
109109
))
110110
case 404:
111111
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
112-
let body: Components.Responses.not_found.Body
112+
let body: Components.Responses.NotFound.Body
113113
let chosenContentType = try converter.bestContentType(
114114
received: contentType,
115115
options: [
@@ -119,7 +119,7 @@ public struct Client: APIProtocol {
119119
switch chosenContentType {
120120
case "application/json":
121121
body = try await converter.getResponseBodyAsJSON(
122-
Components.Schemas.basic_hyphen_error.self,
122+
Components.Schemas.BasicError.self,
123123
from: responseBody,
124124
transforming: { value in
125125
.json(value)
@@ -131,7 +131,7 @@ public struct Client: APIProtocol {
131131
return .notFound(.init(body: body))
132132
case 403:
133133
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
134-
let body: Components.Responses.dependency_review_forbidden.Body
134+
let body: Components.Responses.DependencyReviewForbidden.Body
135135
let chosenContentType = try converter.bestContentType(
136136
received: contentType,
137137
options: [
@@ -141,7 +141,7 @@ public struct Client: APIProtocol {
141141
switch chosenContentType {
142142
case "application/json":
143143
body = try await converter.getResponseBodyAsJSON(
144-
Components.Schemas.basic_hyphen_error.self,
144+
Components.Schemas.BasicError.self,
145145
from: responseBody,
146146
transforming: { value in
147147
.json(value)
@@ -169,10 +169,10 @@ public struct Client: APIProtocol {
169169
///
170170
/// - Remark: HTTP `GET /repos/{owner}/{repo}/dependency-graph/sbom`.
171171
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/sbom/get(dependency-graph/export-sbom)`.
172-
public func dependency_hyphen_graph_sol_export_hyphen_sbom(_ input: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Input) async throws -> Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Output {
172+
public func dependencyGraphExportSbom(_ input: Operations.DependencyGraphExportSbom.Input) async throws -> Operations.DependencyGraphExportSbom.Output {
173173
try await client.send(
174174
input: input,
175-
forOperation: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.id,
175+
forOperation: Operations.DependencyGraphExportSbom.id,
176176
serializer: { input in
177177
let path = try converter.renderedPath(
178178
template: "/repos/{}/{}/dependency-graph/sbom",
@@ -195,13 +195,13 @@ public struct Client: APIProtocol {
195195
deserializer: { response, responseBody in
196196
switch response.status.code {
197197
case 200:
198-
let headers: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI(
198+
let headers: Operations.DependencyGraphExportSbom.Output.Ok.Headers = .init(link: try converter.getOptionalHeaderFieldAsURI(
199199
in: response.headerFields,
200200
name: "Link",
201-
as: Components.Headers.link.self
201+
as: Components.Headers.Link.self
202202
))
203203
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
204-
let body: Operations.dependency_hyphen_graph_sol_export_hyphen_sbom.Output.Ok.Body
204+
let body: Operations.DependencyGraphExportSbom.Output.Ok.Body
205205
let chosenContentType = try converter.bestContentType(
206206
received: contentType,
207207
options: [
@@ -211,7 +211,7 @@ public struct Client: APIProtocol {
211211
switch chosenContentType {
212212
case "application/json":
213213
body = try await converter.getResponseBodyAsJSON(
214-
Components.Schemas.dependency_hyphen_graph_hyphen_spdx_hyphen_sbom.self,
214+
Components.Schemas.DependencyGraphSpdxSbom.self,
215215
from: responseBody,
216216
transforming: { value in
217217
.json(value)
@@ -226,7 +226,7 @@ public struct Client: APIProtocol {
226226
))
227227
case 404:
228228
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
229-
let body: Components.Responses.not_found.Body
229+
let body: Components.Responses.NotFound.Body
230230
let chosenContentType = try converter.bestContentType(
231231
received: contentType,
232232
options: [
@@ -236,7 +236,7 @@ public struct Client: APIProtocol {
236236
switch chosenContentType {
237237
case "application/json":
238238
body = try await converter.getResponseBodyAsJSON(
239-
Components.Schemas.basic_hyphen_error.self,
239+
Components.Schemas.BasicError.self,
240240
from: responseBody,
241241
transforming: { value in
242242
.json(value)
@@ -248,7 +248,7 @@ public struct Client: APIProtocol {
248248
return .notFound(.init(body: body))
249249
case 403:
250250
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
251-
let body: Components.Responses.forbidden.Body
251+
let body: Components.Responses.Forbidden.Body
252252
let chosenContentType = try converter.bestContentType(
253253
received: contentType,
254254
options: [
@@ -258,7 +258,7 @@ public struct Client: APIProtocol {
258258
switch chosenContentType {
259259
case "application/json":
260260
body = try await converter.getResponseBodyAsJSON(
261-
Components.Schemas.basic_hyphen_error.self,
261+
Components.Schemas.BasicError.self,
262262
from: responseBody,
263263
transforming: { value in
264264
.json(value)
@@ -290,10 +290,10 @@ public struct Client: APIProtocol {
290290
///
291291
/// - Remark: HTTP `POST /repos/{owner}/{repo}/dependency-graph/snapshots`.
292292
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/dependency-graph/snapshots/post(dependency-graph/create-repository-snapshot)`.
293-
public func dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot(_ input: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Input) async throws -> Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Output {
293+
public func dependencyGraphCreateRepositorySnapshot(_ input: Operations.DependencyGraphCreateRepositorySnapshot.Input) async throws -> Operations.DependencyGraphCreateRepositorySnapshot.Output {
294294
try await client.send(
295295
input: input,
296-
forOperation: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.id,
296+
forOperation: Operations.DependencyGraphCreateRepositorySnapshot.id,
297297
serializer: { input in
298298
let path = try converter.renderedPath(
299299
template: "/repos/{}/{}/dependency-graph/snapshots",
@@ -326,7 +326,7 @@ public struct Client: APIProtocol {
326326
switch response.status.code {
327327
case 201:
328328
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
329-
let body: Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Output.Created.Body
329+
let body: Operations.DependencyGraphCreateRepositorySnapshot.Output.Created.Body
330330
let chosenContentType = try converter.bestContentType(
331331
received: contentType,
332332
options: [
@@ -336,7 +336,7 @@ public struct Client: APIProtocol {
336336
switch chosenContentType {
337337
case "application/json":
338338
body = try await converter.getResponseBodyAsJSON(
339-
Operations.dependency_hyphen_graph_sol_create_hyphen_repository_hyphen_snapshot.Output.Created.Body.jsonPayload.self,
339+
Operations.DependencyGraphCreateRepositorySnapshot.Output.Created.Body.JsonPayload.self,
340340
from: responseBody,
341341
transforming: { value in
342342
.json(value)

0 commit comments

Comments
 (0)