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.
66 lines
2.4 KiB
Swift
66 lines
2.4 KiB
Swift
//
|
|
// O11yPodListRecord.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yPodListRecord: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var countByPhase: O11yPodCountByPhase?
|
|
public var meta: [String: String]?
|
|
public var podCPU: Double?
|
|
public var podCPULimit: Double?
|
|
public var podCPURequest: Double?
|
|
public var podMemory: Double?
|
|
public var podMemoryLimit: Double?
|
|
public var podMemoryRequest: Double?
|
|
public var podUID: String?
|
|
public var restartCount: Int64?
|
|
|
|
public init(countByPhase: O11yPodCountByPhase? = nil, meta: [String: String]? = nil, podCPU: Double? = nil, podCPULimit: Double? = nil, podCPURequest: Double? = nil, podMemory: Double? = nil, podMemoryLimit: Double? = nil, podMemoryRequest: Double? = nil, podUID: String? = nil, restartCount: Int64? = nil) {
|
|
self.countByPhase = countByPhase
|
|
self.meta = meta
|
|
self.podCPU = podCPU
|
|
self.podCPULimit = podCPULimit
|
|
self.podCPURequest = podCPURequest
|
|
self.podMemory = podMemory
|
|
self.podMemoryLimit = podMemoryLimit
|
|
self.podMemoryRequest = podMemoryRequest
|
|
self.podUID = podUID
|
|
self.restartCount = restartCount
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case countByPhase
|
|
case meta
|
|
case podCPU
|
|
case podCPULimit
|
|
case podCPURequest
|
|
case podMemory
|
|
case podMemoryLimit
|
|
case podMemoryRequest
|
|
case podUID
|
|
case restartCount
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(countByPhase, forKey: .countByPhase)
|
|
try container.encodeIfPresent(meta, forKey: .meta)
|
|
try container.encodeIfPresent(podCPU, forKey: .podCPU)
|
|
try container.encodeIfPresent(podCPULimit, forKey: .podCPULimit)
|
|
try container.encodeIfPresent(podCPURequest, forKey: .podCPURequest)
|
|
try container.encodeIfPresent(podMemory, forKey: .podMemory)
|
|
try container.encodeIfPresent(podMemoryLimit, forKey: .podMemoryLimit)
|
|
try container.encodeIfPresent(podMemoryRequest, forKey: .podMemoryRequest)
|
|
try container.encodeIfPresent(podUID, forKey: .podUID)
|
|
try container.encodeIfPresent(restartCount, forKey: .restartCount)
|
|
}
|
|
}
|
|
|