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

46 lines
1.3 KiB
Swift

//
// O11yPodCountByPhase.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yPodCountByPhase: Sendable, Codable, ParameterConvertible, Hashable {
public var failed: Int64?
public var pending: Int64?
public var running: Int64?
public var succeeded: Int64?
public var unknown: Int64?
public init(failed: Int64? = nil, pending: Int64? = nil, running: Int64? = nil, succeeded: Int64? = nil, unknown: Int64? = nil) {
self.failed = failed
self.pending = pending
self.running = running
self.succeeded = succeeded
self.unknown = unknown
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case failed
case pending
case running
case succeeded
case unknown
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(failed, forKey: .failed)
try container.encodeIfPresent(pending, forKey: .pending)
try container.encodeIfPresent(running, forKey: .running)
try container.encodeIfPresent(succeeded, forKey: .succeeded)
try container.encodeIfPresent(unknown, forKey: .unknown)
}
}