Files
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

92 lines
3.4 KiB
Swift

//
// Pipeline.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Pipeline: Sendable, Codable, ParameterConvertible, Hashable {
/** Behind counts commits after the one that last produced an image whose own build has FINISHED without producing one, and Since is when the oldest of them landed. A commit still building is not counted, so a push in flight is not drift and a service appears here only once something has actually stopped without shipping. How long that has stood is the number worth acting on; that it is true says nothing about whether anyone should move. */
public var behind: Int64?
public var built: Artifact?
public var declared: Artifact?
public var drift: [String]?
public var head: Tip?
/** ghcr.io/hanzoai/cloud */
public var image: String?
/** cloud */
public var name: String?
/** hanzo */
public var namespace: String?
/** Hanzo Git owner; empty when the repo is unresolved */
public var org: String?
public var pinnedAt: Date?
public var ready: Int64?
/** hanzo-inc/cloud */
public var repo: String?
public var running: Artifact?
public var since: Date?
public var want: Int64?
public init(behind: Int64? = nil, built: Artifact? = nil, declared: Artifact? = nil, drift: [String]? = nil, head: Tip? = nil, image: String? = nil, name: String? = nil, namespace: String? = nil, org: String? = nil, pinnedAt: Date? = nil, ready: Int64? = nil, repo: String? = nil, running: Artifact? = nil, since: Date? = nil, want: Int64? = nil) {
self.behind = behind
self.built = built
self.declared = declared
self.drift = drift
self.head = head
self.image = image
self.name = name
self.namespace = namespace
self.org = org
self.pinnedAt = pinnedAt
self.ready = ready
self.repo = repo
self.running = running
self.since = since
self.want = want
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case behind
case built
case declared
case drift
case head
case image
case name
case namespace
case org
case pinnedAt
case ready
case repo
case running
case since
case want
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(behind, forKey: .behind)
try container.encodeIfPresent(built, forKey: .built)
try container.encodeIfPresent(declared, forKey: .declared)
try container.encodeIfPresent(drift, forKey: .drift)
try container.encodeIfPresent(head, forKey: .head)
try container.encodeIfPresent(image, forKey: .image)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(namespace, forKey: .namespace)
try container.encodeIfPresent(org, forKey: .org)
try container.encodeIfPresent(pinnedAt, forKey: .pinnedAt)
try container.encodeIfPresent(ready, forKey: .ready)
try container.encodeIfPresent(repo, forKey: .repo)
try container.encodeIfPresent(running, forKey: .running)
try container.encodeIfPresent(since, forKey: .since)
try container.encodeIfPresent(want, forKey: .want)
}
}