ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.209.3

This commit is contained in:
speakeasybot
2024-03-16 00:52:32 +00:00
parent be42385d2e
commit dee739b6b7
506 changed files with 25834 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum GetServerPreferencesResponse {
case empty
case twoHundredApplicationJsonObject(Operations.GetServerPreferencesResponseBody)
case fourHundredAndOneApplicationJsonObject(Operations.GetServerPreferencesServerResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func twoHundredApplicationJsonObject() throws -> Operations.GetServerPreferencesResponseBody {
guard case .twoHundredApplicationJsonObject(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
public func fourHundredAndOneApplicationJsonObject() throws -> Operations.GetServerPreferencesServerResponseBody {
guard case .fourHundredAndOneApplicationJsonObject(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}