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

57 lines
2.6 KiB
Swift

//
// Check.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Check: Sendable, Codable, ParameterConvertible, Hashable {
public var at: Date?
/** Job is the job that decided State. A run reports one conclusion for however many jobs it holds, and the jobs are not interchangeable: the pipeline fails at `gate` before it builds anything and at `receipt` after it has already built, pinned and proved the release live. Both read `failure` on the run, and only the first one means nothing shipped. */
public var job: String?
public var number: Int64?
/** State is success | failure | running | absent. `absent` is not a kind of failure and is kept apart from one: a failing run is a build that ran and said no, while an absent run is Hanzo Git never having constructed a run for the commit at all — a workflow it cannot parse or a reference it cannot resolve. There is no log to open for the second, so a page that draws them the same sends you looking for one that does not exist. */
public var state: String?
/** Tested reports that the run's tests executed; Verdict reports that the run said anything about tests at all. They are separate because the interesting case is a run that passed while its test step was skipped — a green build that proved nothing — and that is invisible if the two are one flag. */
public var tested: Bool?
public var url: String?
public var verdict: Bool?
public init(at: Date? = nil, job: String? = nil, number: Int64? = nil, state: String? = nil, tested: Bool? = nil, url: String? = nil, verdict: Bool? = nil) {
self.at = at
self.job = job
self.number = number
self.state = state
self.tested = tested
self.url = url
self.verdict = verdict
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case at
case job
case number
case state
case tested
case url
case verdict
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(at, forKey: .at)
try container.encodeIfPresent(job, forKey: .job)
try container.encodeIfPresent(number, forKey: .number)
try container.encodeIfPresent(state, forKey: .state)
try container.encodeIfPresent(tested, forKey: .tested)
try container.encodeIfPresent(url, forKey: .url)
try container.encodeIfPresent(verdict, forKey: .verdict)
}
}