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.
70 lines
2.9 KiB
Swift
70 lines
2.9 KiB
Swift
//
|
|
// O11yDaemonSetRecord.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yDaemonSetRecord: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var currentNodes: Int64?
|
|
public var daemonSetCPU: Double?
|
|
public var daemonSetCPULimit: Double?
|
|
public var daemonSetCPURequest: Double?
|
|
public var daemonSetMemory: Double?
|
|
public var daemonSetMemoryLimit: Double?
|
|
public var daemonSetMemoryRequest: Double?
|
|
public var daemonSetName: String?
|
|
public var desiredNodes: Int64?
|
|
public var meta: [String: String]?
|
|
public var podCountsByPhase: O11yPodCountsByPhase?
|
|
|
|
public init(currentNodes: Int64? = nil, daemonSetCPU: Double? = nil, daemonSetCPULimit: Double? = nil, daemonSetCPURequest: Double? = nil, daemonSetMemory: Double? = nil, daemonSetMemoryLimit: Double? = nil, daemonSetMemoryRequest: Double? = nil, daemonSetName: String? = nil, desiredNodes: Int64? = nil, meta: [String: String]? = nil, podCountsByPhase: O11yPodCountsByPhase? = nil) {
|
|
self.currentNodes = currentNodes
|
|
self.daemonSetCPU = daemonSetCPU
|
|
self.daemonSetCPULimit = daemonSetCPULimit
|
|
self.daemonSetCPURequest = daemonSetCPURequest
|
|
self.daemonSetMemory = daemonSetMemory
|
|
self.daemonSetMemoryLimit = daemonSetMemoryLimit
|
|
self.daemonSetMemoryRequest = daemonSetMemoryRequest
|
|
self.daemonSetName = daemonSetName
|
|
self.desiredNodes = desiredNodes
|
|
self.meta = meta
|
|
self.podCountsByPhase = podCountsByPhase
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case currentNodes
|
|
case daemonSetCPU
|
|
case daemonSetCPULimit
|
|
case daemonSetCPURequest
|
|
case daemonSetMemory
|
|
case daemonSetMemoryLimit
|
|
case daemonSetMemoryRequest
|
|
case daemonSetName
|
|
case desiredNodes
|
|
case meta
|
|
case podCountsByPhase
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(currentNodes, forKey: .currentNodes)
|
|
try container.encodeIfPresent(daemonSetCPU, forKey: .daemonSetCPU)
|
|
try container.encodeIfPresent(daemonSetCPULimit, forKey: .daemonSetCPULimit)
|
|
try container.encodeIfPresent(daemonSetCPURequest, forKey: .daemonSetCPURequest)
|
|
try container.encodeIfPresent(daemonSetMemory, forKey: .daemonSetMemory)
|
|
try container.encodeIfPresent(daemonSetMemoryLimit, forKey: .daemonSetMemoryLimit)
|
|
try container.encodeIfPresent(daemonSetMemoryRequest, forKey: .daemonSetMemoryRequest)
|
|
try container.encodeIfPresent(daemonSetName, forKey: .daemonSetName)
|
|
try container.encodeIfPresent(desiredNodes, forKey: .desiredNodes)
|
|
try container.encodeIfPresent(meta, forKey: .meta)
|
|
try container.encodeIfPresent(podCountsByPhase, forKey: .podCountsByPhase)
|
|
}
|
|
}
|
|
|