ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.397.2

This commit is contained in:
speakeasybot
2024-09-16 18:44:33 +00:00
parent c0dafdc561
commit 6b54deac02
919 changed files with 16195 additions and 6963 deletions

View File

@@ -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,8 +6,9 @@ extension Operations {
/// A response model
public enum GetSessionHistoryResponse {
case empty
case twoHundredApplicationJsonObject(Operations.GetSessionHistoryResponseBody)
case fourHundredAndOneApplicationJsonObject(Operations.GetSessionHistorySessionsResponseBody)
case badRequest(Operations.GetSessionHistoryBadRequest)
case object(Operations.GetSessionHistoryResponseBody)
case unauthorized(Operations.GetSessionHistoryUnauthorized)
var isEmpty: Bool {
if case .empty = self {
@@ -17,18 +18,24 @@ extension Operations {
}
}
public func twoHundredApplicationJsonObject() throws -> Operations.GetSessionHistoryResponseBody {
guard case .twoHundredApplicationJsonObject(let value) = self else {
public func badRequest() throws -> Operations.GetSessionHistoryBadRequest {
guard case .badRequest(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
public func fourHundredAndOneApplicationJsonObject() throws -> Operations.GetSessionHistorySessionsResponseBody {
guard case .fourHundredAndOneApplicationJsonObject(let value) = self else {
public func object() throws -> Operations.GetSessionHistoryResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}
public func unauthorized() throws -> Operations.GetSessionHistoryUnauthorized {
guard case .unauthorized(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}}