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,47 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetTranscodeSessionsMediaContainer {
@DecimalSerialized
public private(set) var size: Double?
public let transcodeSession: [Operations.TranscodeSession]?
/// Creates an object with the specified parameters
///
///
public init(size: Double? = nil, transcodeSession: [Operations.TranscodeSession]? = nil) {
self._size = DecimalSerialized<Double?>(wrappedValue: size)
self.transcodeSession = transcodeSession
}
}
}
extension Operations.GetTranscodeSessionsMediaContainer: Codable {
enum CodingKeys: String, CodingKey {
case size
case transcodeSession = "TranscodeSession"
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self._size = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .size) ?? DecimalSerialized<Double?>(wrappedValue: nil)
self.transcodeSession = try container.decodeIfPresent([Operations.TranscodeSession].self, forKey: .transcodeSession)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
if self.size != nil {
try container.encode(self._size, forKey: .size)
}
try container.encodeIfPresent(self.transcodeSession, forKey: .transcodeSession)
}
}
extension Operations.GetTranscodeSessionsMediaContainer {
var sizeWrapper: DecimalSerialized<Double?> {
return _size
}
}