Skip to content

Commit 15c36d0

Browse files
committed
Commit via running ake Sources/classroom
1 parent 97e9ec6 commit 15c36d0

File tree

2 files changed

+444
-435
lines changed

2 files changed

+444
-435
lines changed

Sources/classroom/Client.swift

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ public struct Client: APIProtocol {
4444
///
4545
/// - Remark: HTTP `GET /assignments/{assignment_id}`.
4646
/// - Remark: Generated from `#/paths//assignments/{assignment_id}/get(classroom/get-an-assignment)`.
47-
public func classroom_sol_get_hyphen_an_hyphen_assignment(_ input: Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Input) async throws -> Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Output {
47+
public func classroomGetAnAssignment(_ input: Operations.ClassroomGetAnAssignment.Input) async throws -> Operations.ClassroomGetAnAssignment.Output {
4848
try await client.send(
4949
input: input,
50-
forOperation: Operations.classroom_sol_get_hyphen_an_hyphen_assignment.id,
50+
forOperation: Operations.ClassroomGetAnAssignment.id,
5151
serializer: { input in
5252
let path = try converter.renderedPath(
5353
template: "/assignments/{}",
5454
parameters: [
55-
input.path.assignment_id
55+
input.path.assignmentId
5656
]
5757
)
5858
var request: HTTPTypes.HTTPRequest = .init(
@@ -70,7 +70,7 @@ public struct Client: APIProtocol {
7070
switch response.status.code {
7171
case 200:
7272
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
73-
let body: Operations.classroom_sol_get_hyphen_an_hyphen_assignment.Output.Ok.Body
73+
let body: Operations.ClassroomGetAnAssignment.Output.Ok.Body
7474
let chosenContentType = try converter.bestContentType(
7575
received: contentType,
7676
options: [
@@ -80,7 +80,7 @@ public struct Client: APIProtocol {
8080
switch chosenContentType {
8181
case "application/json":
8282
body = try await converter.getResponseBodyAsJSON(
83-
Components.Schemas.classroom_hyphen_assignment.self,
83+
Components.Schemas.ClassroomAssignment.self,
8484
from: responseBody,
8585
transforming: { value in
8686
.json(value)
@@ -92,7 +92,7 @@ public struct Client: APIProtocol {
9292
return .ok(.init(body: body))
9393
case 404:
9494
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
95-
let body: Components.Responses.not_found.Body
95+
let body: Components.Responses.NotFound.Body
9696
let chosenContentType = try converter.bestContentType(
9797
received: contentType,
9898
options: [
@@ -102,7 +102,7 @@ public struct Client: APIProtocol {
102102
switch chosenContentType {
103103
case "application/json":
104104
body = try await converter.getResponseBodyAsJSON(
105-
Components.Schemas.basic_hyphen_error.self,
105+
Components.Schemas.BasicError.self,
106106
from: responseBody,
107107
transforming: { value in
108108
.json(value)
@@ -130,15 +130,15 @@ public struct Client: APIProtocol {
130130
///
131131
/// - Remark: HTTP `GET /assignments/{assignment_id}/accepted_assignments`.
132132
/// - Remark: Generated from `#/paths//assignments/{assignment_id}/accepted_assignments/get(classroom/list-accepted-assignments-for-an-assignment)`.
133-
public func classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment(_ input: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input) async throws -> Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Output {
133+
public func classroomListAcceptedAssignmentsForAnAssignment(_ input: Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Input) async throws -> Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Output {
134134
try await client.send(
135135
input: input,
136-
forOperation: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.id,
136+
forOperation: Operations.ClassroomListAcceptedAssignmentsForAnAssignment.id,
137137
serializer: { input in
138138
let path = try converter.renderedPath(
139139
template: "/assignments/{}/accepted_assignments",
140140
parameters: [
141-
input.path.assignment_id
141+
input.path.assignmentId
142142
]
143143
)
144144
var request: HTTPTypes.HTTPRequest = .init(
@@ -158,7 +158,7 @@ public struct Client: APIProtocol {
158158
style: .form,
159159
explode: true,
160160
name: "per_page",
161-
value: input.query.per_page
161+
value: input.query.perPage
162162
)
163163
converter.setAcceptHeader(
164164
in: &request.headerFields,
@@ -170,7 +170,7 @@ public struct Client: APIProtocol {
170170
switch response.status.code {
171171
case 200:
172172
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
173-
let body: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Output.Ok.Body
173+
let body: Operations.ClassroomListAcceptedAssignmentsForAnAssignment.Output.Ok.Body
174174
let chosenContentType = try converter.bestContentType(
175175
received: contentType,
176176
options: [
@@ -180,7 +180,7 @@ public struct Client: APIProtocol {
180180
switch chosenContentType {
181181
case "application/json":
182182
body = try await converter.getResponseBodyAsJSON(
183-
[Components.Schemas.classroom_hyphen_accepted_hyphen_assignment].self,
183+
[Components.Schemas.ClassroomAcceptedAssignment].self,
184184
from: responseBody,
185185
transforming: { value in
186186
.json(value)
@@ -208,15 +208,15 @@ public struct Client: APIProtocol {
208208
///
209209
/// - Remark: HTTP `GET /assignments/{assignment_id}/grades`.
210210
/// - Remark: Generated from `#/paths//assignments/{assignment_id}/grades/get(classroom/get-assignment-grades)`.
211-
public func classroom_sol_get_hyphen_assignment_hyphen_grades(_ input: Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Input) async throws -> Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Output {
211+
public func classroomGetAssignmentGrades(_ input: Operations.ClassroomGetAssignmentGrades.Input) async throws -> Operations.ClassroomGetAssignmentGrades.Output {
212212
try await client.send(
213213
input: input,
214-
forOperation: Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.id,
214+
forOperation: Operations.ClassroomGetAssignmentGrades.id,
215215
serializer: { input in
216216
let path = try converter.renderedPath(
217217
template: "/assignments/{}/grades",
218218
parameters: [
219-
input.path.assignment_id
219+
input.path.assignmentId
220220
]
221221
)
222222
var request: HTTPTypes.HTTPRequest = .init(
@@ -234,7 +234,7 @@ public struct Client: APIProtocol {
234234
switch response.status.code {
235235
case 200:
236236
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
237-
let body: Operations.classroom_sol_get_hyphen_assignment_hyphen_grades.Output.Ok.Body
237+
let body: Operations.ClassroomGetAssignmentGrades.Output.Ok.Body
238238
let chosenContentType = try converter.bestContentType(
239239
received: contentType,
240240
options: [
@@ -244,7 +244,7 @@ public struct Client: APIProtocol {
244244
switch chosenContentType {
245245
case "application/json":
246246
body = try await converter.getResponseBodyAsJSON(
247-
[Components.Schemas.classroom_hyphen_assignment_hyphen_grade].self,
247+
[Components.Schemas.ClassroomAssignmentGrade].self,
248248
from: responseBody,
249249
transforming: { value in
250250
.json(value)
@@ -256,7 +256,7 @@ public struct Client: APIProtocol {
256256
return .ok(.init(body: body))
257257
case 404:
258258
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
259-
let body: Components.Responses.not_found.Body
259+
let body: Components.Responses.NotFound.Body
260260
let chosenContentType = try converter.bestContentType(
261261
received: contentType,
262262
options: [
@@ -266,7 +266,7 @@ public struct Client: APIProtocol {
266266
switch chosenContentType {
267267
case "application/json":
268268
body = try await converter.getResponseBodyAsJSON(
269-
Components.Schemas.basic_hyphen_error.self,
269+
Components.Schemas.BasicError.self,
270270
from: responseBody,
271271
transforming: { value in
272272
.json(value)
@@ -294,10 +294,10 @@ public struct Client: APIProtocol {
294294
///
295295
/// - Remark: HTTP `GET /classrooms`.
296296
/// - Remark: Generated from `#/paths//classrooms/get(classroom/list-classrooms)`.
297-
public func classroom_sol_list_hyphen_classrooms(_ input: Operations.classroom_sol_list_hyphen_classrooms.Input) async throws -> Operations.classroom_sol_list_hyphen_classrooms.Output {
297+
public func classroomListClassrooms(_ input: Operations.ClassroomListClassrooms.Input) async throws -> Operations.ClassroomListClassrooms.Output {
298298
try await client.send(
299299
input: input,
300-
forOperation: Operations.classroom_sol_list_hyphen_classrooms.id,
300+
forOperation: Operations.ClassroomListClassrooms.id,
301301
serializer: { input in
302302
let path = try converter.renderedPath(
303303
template: "/classrooms",
@@ -320,7 +320,7 @@ public struct Client: APIProtocol {
320320
style: .form,
321321
explode: true,
322322
name: "per_page",
323-
value: input.query.per_page
323+
value: input.query.perPage
324324
)
325325
converter.setAcceptHeader(
326326
in: &request.headerFields,
@@ -332,7 +332,7 @@ public struct Client: APIProtocol {
332332
switch response.status.code {
333333
case 200:
334334
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
335-
let body: Operations.classroom_sol_list_hyphen_classrooms.Output.Ok.Body
335+
let body: Operations.ClassroomListClassrooms.Output.Ok.Body
336336
let chosenContentType = try converter.bestContentType(
337337
received: contentType,
338338
options: [
@@ -342,7 +342,7 @@ public struct Client: APIProtocol {
342342
switch chosenContentType {
343343
case "application/json":
344344
body = try await converter.getResponseBodyAsJSON(
345-
[Components.Schemas.simple_hyphen_classroom].self,
345+
[Components.Schemas.SimpleClassroom].self,
346346
from: responseBody,
347347
transforming: { value in
348348
.json(value)
@@ -370,15 +370,15 @@ public struct Client: APIProtocol {
370370
///
371371
/// - Remark: HTTP `GET /classrooms/{classroom_id}`.
372372
/// - Remark: Generated from `#/paths//classrooms/{classroom_id}/get(classroom/get-a-classroom)`.
373-
public func classroom_sol_get_hyphen_a_hyphen_classroom(_ input: Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Input) async throws -> Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Output {
373+
public func classroomGetAClassroom(_ input: Operations.ClassroomGetAClassroom.Input) async throws -> Operations.ClassroomGetAClassroom.Output {
374374
try await client.send(
375375
input: input,
376-
forOperation: Operations.classroom_sol_get_hyphen_a_hyphen_classroom.id,
376+
forOperation: Operations.ClassroomGetAClassroom.id,
377377
serializer: { input in
378378
let path = try converter.renderedPath(
379379
template: "/classrooms/{}",
380380
parameters: [
381-
input.path.classroom_id
381+
input.path.classroomId
382382
]
383383
)
384384
var request: HTTPTypes.HTTPRequest = .init(
@@ -396,7 +396,7 @@ public struct Client: APIProtocol {
396396
switch response.status.code {
397397
case 200:
398398
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
399-
let body: Operations.classroom_sol_get_hyphen_a_hyphen_classroom.Output.Ok.Body
399+
let body: Operations.ClassroomGetAClassroom.Output.Ok.Body
400400
let chosenContentType = try converter.bestContentType(
401401
received: contentType,
402402
options: [
@@ -406,7 +406,7 @@ public struct Client: APIProtocol {
406406
switch chosenContentType {
407407
case "application/json":
408408
body = try await converter.getResponseBodyAsJSON(
409-
Components.Schemas.classroom.self,
409+
Components.Schemas.Classroom.self,
410410
from: responseBody,
411411
transforming: { value in
412412
.json(value)
@@ -418,7 +418,7 @@ public struct Client: APIProtocol {
418418
return .ok(.init(body: body))
419419
case 404:
420420
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
421-
let body: Components.Responses.not_found.Body
421+
let body: Components.Responses.NotFound.Body
422422
let chosenContentType = try converter.bestContentType(
423423
received: contentType,
424424
options: [
@@ -428,7 +428,7 @@ public struct Client: APIProtocol {
428428
switch chosenContentType {
429429
case "application/json":
430430
body = try await converter.getResponseBodyAsJSON(
431-
Components.Schemas.basic_hyphen_error.self,
431+
Components.Schemas.BasicError.self,
432432
from: responseBody,
433433
transforming: { value in
434434
.json(value)
@@ -456,15 +456,15 @@ public struct Client: APIProtocol {
456456
///
457457
/// - Remark: HTTP `GET /classrooms/{classroom_id}/assignments`.
458458
/// - Remark: Generated from `#/paths//classrooms/{classroom_id}/assignments/get(classroom/list-assignments-for-a-classroom)`.
459-
public func classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom(_ input: Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Input) async throws -> Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Output {
459+
public func classroomListAssignmentsForAClassroom(_ input: Operations.ClassroomListAssignmentsForAClassroom.Input) async throws -> Operations.ClassroomListAssignmentsForAClassroom.Output {
460460
try await client.send(
461461
input: input,
462-
forOperation: Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.id,
462+
forOperation: Operations.ClassroomListAssignmentsForAClassroom.id,
463463
serializer: { input in
464464
let path = try converter.renderedPath(
465465
template: "/classrooms/{}/assignments",
466466
parameters: [
467-
input.path.classroom_id
467+
input.path.classroomId
468468
]
469469
)
470470
var request: HTTPTypes.HTTPRequest = .init(
@@ -484,7 +484,7 @@ public struct Client: APIProtocol {
484484
style: .form,
485485
explode: true,
486486
name: "per_page",
487-
value: input.query.per_page
487+
value: input.query.perPage
488488
)
489489
converter.setAcceptHeader(
490490
in: &request.headerFields,
@@ -496,7 +496,7 @@ public struct Client: APIProtocol {
496496
switch response.status.code {
497497
case 200:
498498
let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
499-
let body: Operations.classroom_sol_list_hyphen_assignments_hyphen_for_hyphen_a_hyphen_classroom.Output.Ok.Body
499+
let body: Operations.ClassroomListAssignmentsForAClassroom.Output.Ok.Body
500500
let chosenContentType = try converter.bestContentType(
501501
received: contentType,
502502
options: [
@@ -506,7 +506,7 @@ public struct Client: APIProtocol {
506506
switch chosenContentType {
507507
case "application/json":
508508
body = try await converter.getResponseBodyAsJSON(
509-
[Components.Schemas.simple_hyphen_classroom_hyphen_assignment].self,
509+
[Components.Schemas.SimpleClassroomAssignment].self,
510510
from: responseBody,
511511
transforming: { value in
512512
.json(value)

0 commit comments

Comments
 (0)