ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.161.0

This commit is contained in:
speakeasybot
2024-02-01 00:56:10 +00:00
parent 9d3c934f78
commit d8fb37fcc3
496 changed files with 25444 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public enum Setting {
case one(Operations.One)
case two(Operations.Two)
}
}
extension Operations.Setting: Codable {
public init(from decoder: Decoder) throws {
if let value = try? Operations.One(from: decoder) {
self = .one(value)
} else if let value = try? Operations.Two(from: decoder) {
self = .two(value)
} else {
throw PlexswiftError.failedToHandleResponse(.failedToDecodeResponse)
}
}
public func encode(to encoder: Encoder) throws {
switch self {
case .one(let value):
try value.encode(to: encoder)
case .two(let value):
try value.encode(to: encoder)
}
}
}