Skip to content

Commit d32bb09

Browse files
Commit via running ake Sources/classroom
1 parent 18395b1 commit d32bb09

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

Sources/classroom/Client.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ public struct Client: APIProtocol {
129129
/// Lists any assignment repositories that have been created by students accepting a GitHub Classroom assignment. Accepted assignments will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.
130130
///
131131
/// - Remark: HTTP `GET /assignments/{assignment_id}/accepted_assignments`.
132-
/// - Remark: Generated from `#/paths//assignments/{assignment_id}/accepted_assignments/get(classroom/list-accepted-assigments-for-an-assignment)`.
133-
public func classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment(_ input: Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.Input) async throws -> Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.Output {
132+
/// - 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 {
134134
try await client.send(
135135
input: input,
136-
forOperation: Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.id,
136+
forOperation: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.id,
137137
serializer: { input in
138138
let path = try converter.renderedPath(
139139
template: "/assignments/{}/accepted_assignments",
@@ -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_assigments_hyphen_for_hyphen_an_hyphen_assignment.Output.Ok.Body
173+
let body: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Output.Ok.Body
174174
let chosenContentType = try converter.bestContentType(
175175
received: contentType,
176176
options: [

Sources/classroom/Types.swift

+25-25
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public protocol APIProtocol: Sendable {
2323
/// Lists any assignment repositories that have been created by students accepting a GitHub Classroom assignment. Accepted assignments will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.
2424
///
2525
/// - Remark: HTTP `GET /assignments/{assignment_id}/accepted_assignments`.
26-
/// - Remark: Generated from `#/paths//assignments/{assignment_id}/accepted_assignments/get(classroom/list-accepted-assigments-for-an-assignment)`.
27-
func classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment(_ input: Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.Input) async throws -> Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.Output
26+
/// - Remark: Generated from `#/paths//assignments/{assignment_id}/accepted_assignments/get(classroom/list-accepted-assignments-for-an-assignment)`.
27+
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
2828
/// Get assignment grades
2929
///
3030
/// Gets grades for a GitHub Classroom assignment. Grades will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.
@@ -77,13 +77,13 @@ extension APIProtocol {
7777
/// Lists any assignment repositories that have been created by students accepting a GitHub Classroom assignment. Accepted assignments will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.
7878
///
7979
/// - Remark: HTTP `GET /assignments/{assignment_id}/accepted_assignments`.
80-
/// - Remark: Generated from `#/paths//assignments/{assignment_id}/accepted_assignments/get(classroom/list-accepted-assigments-for-an-assignment)`.
81-
public func classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment(
82-
path: Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.Input.Path,
83-
query: Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.Input.Query = .init(),
84-
headers: Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.Input.Headers = .init()
85-
) async throws -> Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.Output {
86-
try await classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment(Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.Input(
80+
/// - Remark: Generated from `#/paths//assignments/{assignment_id}/accepted_assignments/get(classroom/list-accepted-assignments-for-an-assignment)`.
81+
public func classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment(
82+
path: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input.Path,
83+
query: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input.Query = .init(),
84+
headers: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input.Headers = .init()
85+
) async throws -> Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Output {
86+
try await classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment(Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input(
8787
path: path,
8888
query: query,
8989
headers: headers
@@ -1168,9 +1168,9 @@ public enum Operations {
11681168
/// Lists any assignment repositories that have been created by students accepting a GitHub Classroom assignment. Accepted assignments will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.
11691169
///
11701170
/// - Remark: HTTP `GET /assignments/{assignment_id}/accepted_assignments`.
1171-
/// - Remark: Generated from `#/paths//assignments/{assignment_id}/accepted_assignments/get(classroom/list-accepted-assigments-for-an-assignment)`.
1172-
public enum classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment {
1173-
public static let id: Swift.String = "classroom/list-accepted-assigments-for-an-assignment"
1171+
/// - Remark: Generated from `#/paths//assignments/{assignment_id}/accepted_assignments/get(classroom/list-accepted-assignments-for-an-assignment)`.
1172+
public enum classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment {
1173+
public static let id: Swift.String = "classroom/list-accepted-assignments-for-an-assignment"
11741174
public struct Input: Sendable, Hashable {
11751175
/// - Remark: Generated from `#/paths/assignments/{assignment_id}/accepted_assignments/GET/path`.
11761176
public struct Path: Sendable, Hashable {
@@ -1186,7 +1186,7 @@ public enum Operations {
11861186
self.assignment_id = assignment_id
11871187
}
11881188
}
1189-
public var path: Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.Input.Path
1189+
public var path: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input.Path
11901190
/// - Remark: Generated from `#/paths/assignments/{assignment_id}/accepted_assignments/GET/query`.
11911191
public struct Query: Sendable, Hashable {
11921192
/// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
@@ -1210,29 +1210,29 @@ public enum Operations {
12101210
self.per_page = per_page
12111211
}
12121212
}
1213-
public var query: Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.Input.Query
1213+
public var query: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input.Query
12141214
/// - Remark: Generated from `#/paths/assignments/{assignment_id}/accepted_assignments/GET/header`.
12151215
public struct Headers: Sendable, Hashable {
1216-
public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.AcceptableContentType>]
1216+
public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.AcceptableContentType>]
12171217
/// Creates a new `Headers`.
12181218
///
12191219
/// - Parameters:
12201220
/// - accept:
1221-
public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.AcceptableContentType>] = .defaultValues()) {
1221+
public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.AcceptableContentType>] = .defaultValues()) {
12221222
self.accept = accept
12231223
}
12241224
}
1225-
public var headers: Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.Input.Headers
1225+
public var headers: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input.Headers
12261226
/// Creates a new `Input`.
12271227
///
12281228
/// - Parameters:
12291229
/// - path:
12301230
/// - query:
12311231
/// - headers:
12321232
public init(
1233-
path: Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.Input.Path,
1234-
query: Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.Input.Query = .init(),
1235-
headers: Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.Input.Headers = .init()
1233+
path: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input.Path,
1234+
query: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input.Query = .init(),
1235+
headers: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Input.Headers = .init()
12361236
) {
12371237
self.path = path
12381238
self.query = query
@@ -1259,26 +1259,26 @@ public enum Operations {
12591259
}
12601260
}
12611261
/// Received HTTP response body
1262-
public var body: Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.Output.Ok.Body
1262+
public var body: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Output.Ok.Body
12631263
/// Creates a new `Ok`.
12641264
///
12651265
/// - Parameters:
12661266
/// - body: Received HTTP response body
1267-
public init(body: Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.Output.Ok.Body) {
1267+
public init(body: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Output.Ok.Body) {
12681268
self.body = body
12691269
}
12701270
}
12711271
/// Response
12721272
///
1273-
/// - Remark: Generated from `#/paths//assignments/{assignment_id}/accepted_assignments/get(classroom/list-accepted-assigments-for-an-assignment)/responses/200`.
1273+
/// - Remark: Generated from `#/paths//assignments/{assignment_id}/accepted_assignments/get(classroom/list-accepted-assignments-for-an-assignment)/responses/200`.
12741274
///
12751275
/// HTTP response code: `200 ok`.
1276-
case ok(Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.Output.Ok)
1276+
case ok(Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Output.Ok)
12771277
/// The associated value of the enum case if `self` is `.ok`.
12781278
///
12791279
/// - Throws: An error if `self` is not `.ok`.
12801280
/// - SeeAlso: `.ok`.
1281-
public var ok: Operations.classroom_sol_list_hyphen_accepted_hyphen_assigments_hyphen_for_hyphen_an_hyphen_assignment.Output.Ok {
1281+
public var ok: Operations.classroom_sol_list_hyphen_accepted_hyphen_assignments_hyphen_for_hyphen_an_hyphen_assignment.Output.Ok {
12821282
get throws {
12831283
switch self {
12841284
case let .ok(response):

0 commit comments

Comments
 (0)