mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The forge tree held the package scaffolding and none of the generated sources — 2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply absent, so anything depending on this copy had a package that compiled to nothing usable. Generated from the current API document rather than reconciled with the other copy: a client is a function of the spec, so regenerating answers "which history wins" without anyone having to choose. .spec-lock records which document, so the next reader can tell.
51 lines
1.7 KiB
Swift
51 lines
1.7 KiB
Swift
//
|
|
// O11yO11yNextPrevErrorIDs.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yO11yNextPrevErrorIDs: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** GroupID is the group both belong to. */
|
|
public var groupID: String?
|
|
/** NextErrorID is the id of the instance immediately after this one. */
|
|
public var nextErrorID: String?
|
|
/** NextTimestamp is that instance's time. */
|
|
public var nextTimestamp: Date?
|
|
/** PrevErrorID is the id of the instance immediately before this one. */
|
|
public var prevErrorID: String?
|
|
/** PrevTimestamp is that instance's time. */
|
|
public var prevTimestamp: Date?
|
|
|
|
public init(groupID: String? = nil, nextErrorID: String? = nil, nextTimestamp: Date? = nil, prevErrorID: String? = nil, prevTimestamp: Date? = nil) {
|
|
self.groupID = groupID
|
|
self.nextErrorID = nextErrorID
|
|
self.nextTimestamp = nextTimestamp
|
|
self.prevErrorID = prevErrorID
|
|
self.prevTimestamp = prevTimestamp
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case groupID
|
|
case nextErrorID
|
|
case nextTimestamp
|
|
case prevErrorID
|
|
case prevTimestamp
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(groupID, forKey: .groupID)
|
|
try container.encodeIfPresent(nextErrorID, forKey: .nextErrorID)
|
|
try container.encodeIfPresent(nextTimestamp, forKey: .nextTimestamp)
|
|
try container.encodeIfPresent(prevErrorID, forKey: .prevErrorID)
|
|
try container.encodeIfPresent(prevTimestamp, forKey: .prevTimestamp)
|
|
}
|
|
}
|
|
|