mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-07 12:47:45 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.397.2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
import Foundation
|
||||
|
||||
@@ -6,7 +6,8 @@ extension Operations {
|
||||
/// A response model
|
||||
public enum StopTranscodeSessionResponse {
|
||||
case empty
|
||||
case object(Operations.StopTranscodeSessionResponseBody)
|
||||
case badRequest(Operations.StopTranscodeSessionBadRequest)
|
||||
case unauthorized(Operations.StopTranscodeSessionUnauthorized)
|
||||
|
||||
var isEmpty: Bool {
|
||||
if case .empty = self {
|
||||
@@ -16,11 +17,17 @@ extension Operations {
|
||||
}
|
||||
}
|
||||
|
||||
public func object() throws -> Operations.StopTranscodeSessionResponseBody {
|
||||
guard case .object(let value) = self else {
|
||||
public func badRequest() throws -> Operations.StopTranscodeSessionBadRequest {
|
||||
guard case .badRequest(let value) = self else {
|
||||
throw PlexswiftError.missingResponseData
|
||||
}
|
||||
return value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func unauthorized() throws -> Operations.StopTranscodeSessionUnauthorized {
|
||||
guard case .unauthorized(let value) = self else {
|
||||
throw PlexswiftError.missingResponseData
|
||||
}
|
||||
return value
|
||||
}
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user