ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.134.1

This commit is contained in:
speakeasybot
2024-01-11 00:57:52 +00:00
parent 9d3c934f78
commit eb21fecb52
387 changed files with 19219 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 GetDevicesResponse {
case empty
case twoHundredApplicationJsonObject(Operations.GetDevicesResponseBody)
case fourHundredAndOneApplicationJsonObject(Operations.GetDevicesServerResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func twoHundredApplicationJsonObject() throws -> Operations.GetDevicesResponseBody {
guard case .twoHundredApplicationJsonObject(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
public func fourHundredAndOneApplicationJsonObject() throws -> Operations.GetDevicesServerResponseBody {
guard case .fourHundredAndOneApplicationJsonObject(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}