Files
swift-sdk/Sources/Hanzo/Models/O11yJobListRecord.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

78 lines
3.0 KiB
Swift

//
// O11yJobListRecord.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yJobListRecord: Sendable, Codable, ParameterConvertible, Hashable {
public var activePods: Int64?
public var cpuLimit: Double?
public var cpuRequest: Double?
public var cpuUsage: Double?
public var desiredSuccessfulPods: Int64?
public var failedPods: Int64?
public var jobName: String?
public var memoryLimit: Double?
public var memoryRequest: Double?
public var memoryUsage: Double?
public var meta: [String: String]?
public var restarts: Int64?
public var successfulPods: Int64?
public init(activePods: Int64? = nil, cpuLimit: Double? = nil, cpuRequest: Double? = nil, cpuUsage: Double? = nil, desiredSuccessfulPods: Int64? = nil, failedPods: Int64? = nil, jobName: String? = nil, memoryLimit: Double? = nil, memoryRequest: Double? = nil, memoryUsage: Double? = nil, meta: [String: String]? = nil, restarts: Int64? = nil, successfulPods: Int64? = nil) {
self.activePods = activePods
self.cpuLimit = cpuLimit
self.cpuRequest = cpuRequest
self.cpuUsage = cpuUsage
self.desiredSuccessfulPods = desiredSuccessfulPods
self.failedPods = failedPods
self.jobName = jobName
self.memoryLimit = memoryLimit
self.memoryRequest = memoryRequest
self.memoryUsage = memoryUsage
self.meta = meta
self.restarts = restarts
self.successfulPods = successfulPods
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case activePods
case cpuLimit
case cpuRequest
case cpuUsage
case desiredSuccessfulPods
case failedPods
case jobName
case memoryLimit
case memoryRequest
case memoryUsage
case meta
case restarts
case successfulPods
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(activePods, forKey: .activePods)
try container.encodeIfPresent(cpuLimit, forKey: .cpuLimit)
try container.encodeIfPresent(cpuRequest, forKey: .cpuRequest)
try container.encodeIfPresent(cpuUsage, forKey: .cpuUsage)
try container.encodeIfPresent(desiredSuccessfulPods, forKey: .desiredSuccessfulPods)
try container.encodeIfPresent(failedPods, forKey: .failedPods)
try container.encodeIfPresent(jobName, forKey: .jobName)
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(successfulPods, forKey: .successfulPods)
}
}