ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.405.6

This commit is contained in:
speakeasybot
2025-03-10 00:08:27 +00:00
parent 0cbaa51460
commit 37dba6bb19
66 changed files with 1004 additions and 1754 deletions

View File

@@ -0,0 +1,32 @@
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
import Foundation
extension Operations {
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
public enum GetRecentlyAddedOptimizedForStreaming {
case getRecentlyAdded1(Operations.GetRecentlyAdded1)
case bool(Bool)
}}
extension Operations.GetRecentlyAddedOptimizedForStreaming: Codable {
public init(from decoder: Decoder) throws {
if let value = try? Operations.GetRecentlyAdded1(from: decoder) {
self = .getRecentlyAdded1(value)
} else if let value = try? Bool(from: decoder) {
self = .bool(value)
} else {
throw PlexswiftError.failedToHandleResponse(.failedToDecodeResponse)
}
}
public func encode(to encoder: Encoder) throws {
switch self {
case .getRecentlyAdded1(let value):
try value.encode(to: encoder)
case .bool(let value):
try value.encode(to: encoder)
}
}
}