Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
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.
2026-09-05 18:55:38 -07:00

70 lines
2.6 KiB
Swift

//
// O11yPodRecord.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yPodRecord: Sendable, Codable, ParameterConvertible, Hashable {
public var meta: [String: String]?
public var podAge: Int64?
public var podCPU: Double?
public var podCPULimit: Double?
public var podCPURequest: Double?
public var podCountsByPhase: O11yPodCountsByPhase?
public var podMemory: Double?
public var podMemoryLimit: Double?
public var podMemoryRequest: Double?
public var podPhase: JSONValue?
public var podUID: String?
public init(meta: [String: String]? = nil, podAge: Int64? = nil, podCPU: Double? = nil, podCPULimit: Double? = nil, podCPURequest: Double? = nil, podCountsByPhase: O11yPodCountsByPhase? = nil, podMemory: Double? = nil, podMemoryLimit: Double? = nil, podMemoryRequest: Double? = nil, podPhase: JSONValue? = nil, podUID: String? = nil) {
self.meta = meta
self.podAge = podAge
self.podCPU = podCPU
self.podCPULimit = podCPULimit
self.podCPURequest = podCPURequest
self.podCountsByPhase = podCountsByPhase
self.podMemory = podMemory
self.podMemoryLimit = podMemoryLimit
self.podMemoryRequest = podMemoryRequest
self.podPhase = podPhase
self.podUID = podUID
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case meta
case podAge
case podCPU
case podCPULimit
case podCPURequest
case podCountsByPhase
case podMemory
case podMemoryLimit
case podMemoryRequest
case podPhase
case podUID
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(meta, forKey: .meta)
try container.encodeIfPresent(podAge, forKey: .podAge)
try container.encodeIfPresent(podCPU, forKey: .podCPU)
try container.encodeIfPresent(podCPULimit, forKey: .podCPULimit)
try container.encodeIfPresent(podCPURequest, forKey: .podCPURequest)
try container.encodeIfPresent(podCountsByPhase, forKey: .podCountsByPhase)
try container.encodeIfPresent(podMemory, forKey: .podMemory)
try container.encodeIfPresent(podMemoryLimit, forKey: .podMemoryLimit)
try container.encodeIfPresent(podMemoryRequest, forKey: .podMemoryRequest)
try container.encodeIfPresent(podPhase, forKey: .podPhase)
try container.encodeIfPresent(podUID, forKey: .podUID)
}
}