Files
swift-sdk/Sources/Hanzo/Models/O11yStatefulSetRecord.swift
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
3.0 KiB
Swift

//
// O11yStatefulSetRecord.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yStatefulSetRecord: Sendable, Codable, ParameterConvertible, Hashable {
public var currentPods: Int64?
public var desiredPods: Int64?
public var meta: [String: String]?
public var podCountsByPhase: O11yPodCountsByPhase?
public var statefulSetCPU: Double?
public var statefulSetCPULimit: Double?
public var statefulSetCPURequest: Double?
public var statefulSetMemory: Double?
public var statefulSetMemoryLimit: Double?
public var statefulSetMemoryRequest: Double?
public var statefulSetName: String?
public init(currentPods: Int64? = nil, desiredPods: Int64? = nil, meta: [String: String]? = nil, podCountsByPhase: O11yPodCountsByPhase? = nil, statefulSetCPU: Double? = nil, statefulSetCPULimit: Double? = nil, statefulSetCPURequest: Double? = nil, statefulSetMemory: Double? = nil, statefulSetMemoryLimit: Double? = nil, statefulSetMemoryRequest: Double? = nil, statefulSetName: String? = nil) {
self.currentPods = currentPods
self.desiredPods = desiredPods
self.meta = meta
self.podCountsByPhase = podCountsByPhase
self.statefulSetCPU = statefulSetCPU
self.statefulSetCPULimit = statefulSetCPULimit
self.statefulSetCPURequest = statefulSetCPURequest
self.statefulSetMemory = statefulSetMemory
self.statefulSetMemoryLimit = statefulSetMemoryLimit
self.statefulSetMemoryRequest = statefulSetMemoryRequest
self.statefulSetName = statefulSetName
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case currentPods
case desiredPods
case meta
case podCountsByPhase
case statefulSetCPU
case statefulSetCPULimit
case statefulSetCPURequest
case statefulSetMemory
case statefulSetMemoryLimit
case statefulSetMemoryRequest
case statefulSetName
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(currentPods, forKey: .currentPods)
try container.encodeIfPresent(desiredPods, forKey: .desiredPods)
try container.encodeIfPresent(meta, forKey: .meta)
try container.encodeIfPresent(podCountsByPhase, forKey: .podCountsByPhase)
try container.encodeIfPresent(statefulSetCPU, forKey: .statefulSetCPU)
try container.encodeIfPresent(statefulSetCPULimit, forKey: .statefulSetCPULimit)
try container.encodeIfPresent(statefulSetCPURequest, forKey: .statefulSetCPURequest)
try container.encodeIfPresent(statefulSetMemory, forKey: .statefulSetMemory)
try container.encodeIfPresent(statefulSetMemoryLimit, forKey: .statefulSetMemoryLimit)
try container.encodeIfPresent(statefulSetMemoryRequest, forKey: .statefulSetMemoryRequest)
try container.encodeIfPresent(statefulSetName, forKey: .statefulSetName)
}
}