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.
62 lines
2.4 KiB
Swift
62 lines
2.4 KiB
Swift
//
|
|
// O11yNodeRecord.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yNodeRecord: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var condition: JSONValue?
|
|
public var meta: [String: String]?
|
|
public var nodeCPU: Double?
|
|
public var nodeCPUAllocatable: Double?
|
|
public var nodeCountsByReadiness: O11yNodeCountsByReadiness?
|
|
public var nodeMemory: Double?
|
|
public var nodeMemoryAllocatable: Double?
|
|
public var nodeName: String?
|
|
public var podCountsByPhase: O11yPodCountsByPhase?
|
|
|
|
public init(condition: JSONValue? = nil, meta: [String: String]? = nil, nodeCPU: Double? = nil, nodeCPUAllocatable: Double? = nil, nodeCountsByReadiness: O11yNodeCountsByReadiness? = nil, nodeMemory: Double? = nil, nodeMemoryAllocatable: Double? = nil, nodeName: String? = nil, podCountsByPhase: O11yPodCountsByPhase? = nil) {
|
|
self.condition = condition
|
|
self.meta = meta
|
|
self.nodeCPU = nodeCPU
|
|
self.nodeCPUAllocatable = nodeCPUAllocatable
|
|
self.nodeCountsByReadiness = nodeCountsByReadiness
|
|
self.nodeMemory = nodeMemory
|
|
self.nodeMemoryAllocatable = nodeMemoryAllocatable
|
|
self.nodeName = nodeName
|
|
self.podCountsByPhase = podCountsByPhase
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case condition
|
|
case meta
|
|
case nodeCPU
|
|
case nodeCPUAllocatable
|
|
case nodeCountsByReadiness
|
|
case nodeMemory
|
|
case nodeMemoryAllocatable
|
|
case nodeName
|
|
case podCountsByPhase
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(condition, forKey: .condition)
|
|
try container.encodeIfPresent(meta, forKey: .meta)
|
|
try container.encodeIfPresent(nodeCPU, forKey: .nodeCPU)
|
|
try container.encodeIfPresent(nodeCPUAllocatable, forKey: .nodeCPUAllocatable)
|
|
try container.encodeIfPresent(nodeCountsByReadiness, forKey: .nodeCountsByReadiness)
|
|
try container.encodeIfPresent(nodeMemory, forKey: .nodeMemory)
|
|
try container.encodeIfPresent(nodeMemoryAllocatable, forKey: .nodeMemoryAllocatable)
|
|
try container.encodeIfPresent(nodeName, forKey: .nodeName)
|
|
try container.encodeIfPresent(podCountsByPhase, forKey: .podCountsByPhase)
|
|
}
|
|
}
|
|
|