mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The projection these were generated from predated the compute migration, so they described /v1/visor — which the API serves at zero paths now. No /v1/visor path survives here.
41 lines
1.0 KiB
Swift
41 lines
1.0 KiB
Swift
//
|
|
// DriftTally.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct DriftTally: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** OK is how many rows run what they declare. */
|
|
public var ok: Int64?
|
|
/** Red is how many have drifted badly. */
|
|
public var red: Int64?
|
|
/** Yellow is how many have drifted within tolerance. */
|
|
public var yellow: Int64?
|
|
|
|
public init(ok: Int64? = nil, red: Int64? = nil, yellow: Int64? = nil) {
|
|
self.ok = ok
|
|
self.red = red
|
|
self.yellow = yellow
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case ok
|
|
case red
|
|
case yellow
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(ok, forKey: .ok)
|
|
try container.encodeIfPresent(red, forKey: .red)
|
|
try container.encodeIfPresent(yellow, forKey: .yellow)
|
|
}
|
|
}
|
|
|