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

//
// O11yStatefulSetListRecord.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yStatefulSetListRecord: Sendable, Codable, ParameterConvertible, Hashable {
public var availablePods: Int64?
public var cpuLimit: Double?
public var cpuRequest: Double?
public var cpuUsage: Double?
public var desiredPods: Int64?
public var memoryLimit: Double?
public var memoryRequest: Double?
public var memoryUsage: Double?
public var meta: [String: String]?
public var restarts: Int64?
public var statefulSetName: String?
public init(availablePods: Int64? = nil, cpuLimit: Double? = nil, cpuRequest: Double? = nil, cpuUsage: Double? = nil, desiredPods: Int64? = nil, memoryLimit: Double? = nil, memoryRequest: Double? = nil, memoryUsage: Double? = nil, meta: [String: String]? = nil, restarts: Int64? = nil, statefulSetName: String? = nil) {
self.availablePods = availablePods
self.cpuLimit = cpuLimit
self.cpuRequest = cpuRequest
self.cpuUsage = cpuUsage
self.desiredPods = desiredPods
self.memoryLimit = memoryLimit
self.memoryRequest = memoryRequest
self.memoryUsage = memoryUsage
self.meta = meta
self.restarts = restarts
self.statefulSetName = statefulSetName
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case availablePods
case cpuLimit
case cpuRequest
case cpuUsage
case desiredPods
case memoryLimit
case memoryRequest
case memoryUsage
case meta
case restarts
case statefulSetName
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(availablePods, forKey: .availablePods)
try container.encodeIfPresent(cpuLimit, forKey: .cpuLimit)
try container.encodeIfPresent(cpuRequest, forKey: .cpuRequest)
try container.encodeIfPresent(cpuUsage, forKey: .cpuUsage)
try container.encodeIfPresent(desiredPods, forKey: .desiredPods)
try container.encodeIfPresent(memoryLimit, forKey: .memoryLimit)
try container.encodeIfPresent(memoryRequest, forKey: .memoryRequest)
try container.encodeIfPresent(memoryUsage, forKey: .memoryUsage)
try container.encodeIfPresent(meta, forKey: .meta)
try container.encodeIfPresent(restarts, forKey: .restarts)
try container.encodeIfPresent(statefulSetName, forKey: .statefulSetName)
}
}