ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.295.1

This commit is contained in:
speakeasybot
2024-05-23 15:57:47 +00:00
parent 2ada605e1d
commit 6b8d369625
30 changed files with 1756 additions and 634 deletions

View File

@@ -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