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