mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-09 12:47:44 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.295.1
This commit is contained in:
@@ -6,7 +6,8 @@ extension Operations {
|
||||
/// A response model
|
||||
public enum SearchLibraryResponse {
|
||||
case empty
|
||||
case object(Operations.SearchLibraryResponseBody)
|
||||
case twoHundredApplicationJsonObject(Operations.SearchLibraryResponseBody)
|
||||
case fourHundredAndOneApplicationJsonObject(Operations.SearchLibraryLibraryResponseBody)
|
||||
|
||||
var isEmpty: Bool {
|
||||
if case .empty = self {
|
||||
@@ -16,8 +17,15 @@ extension Operations {
|
||||
}
|
||||
}
|
||||
|
||||
public func object() throws -> Operations.SearchLibraryResponseBody {
|
||||
guard case .object(let value) = self else {
|
||||
public func twoHundredApplicationJsonObject() throws -> Operations.SearchLibraryResponseBody {
|
||||
guard case .twoHundredApplicationJsonObject(let value) = self else {
|
||||
throw PlexswiftError.missingResponseData
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
public func fourHundredAndOneApplicationJsonObject() throws -> Operations.SearchLibraryLibraryResponseBody {
|
||||
guard case .fourHundredAndOneApplicationJsonObject(let value) = self else {
|
||||
throw PlexswiftError.missingResponseData
|
||||
}
|
||||
return value
|
||||
|
||||
Reference in New Issue
Block a user