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

90 lines
3.3 KiB
Swift

//
// Execution.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Execution: Sendable, Codable, ParameterConvertible, Hashable {
public var actor: String?
public var branch: String?
public var conclusion: String?
public var endedAt: Date?
public var event: String?
public var id: Int64?
public var number: Int64?
public var org: String?
public var repo: String?
public var sha: String?
public var startedAt: Date?
/** Status and Conclusion are BOTH required to know how a run went, and reading only one is wrong in a way that looks fine. Status answers \"is it over\" (queued | in_progress | completed); Conclusion answers \"how did it end\" and is empty until it is over. A view that buckets on Status alone sees `completed` and cannot tell a pass from a failure, so it draws every finished run — successes and cancellations included — the same way. */
public var status: String?
public var title: String?
public var url: String?
public var workflow: String?
public init(actor: String? = nil, branch: String? = nil, conclusion: String? = nil, endedAt: Date? = nil, event: String? = nil, id: Int64? = nil, number: Int64? = nil, org: String? = nil, repo: String? = nil, sha: String? = nil, startedAt: Date? = nil, status: String? = nil, title: String? = nil, url: String? = nil, workflow: String? = nil) {
self.actor = actor
self.branch = branch
self.conclusion = conclusion
self.endedAt = endedAt
self.event = event
self.id = id
self.number = number
self.org = org
self.repo = repo
self.sha = sha
self.startedAt = startedAt
self.status = status
self.title = title
self.url = url
self.workflow = workflow
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case actor
case branch
case conclusion
case endedAt
case event
case id
case number
case org
case repo
case sha
case startedAt
case status
case title
case url
case workflow
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(actor, forKey: .actor)
try container.encodeIfPresent(branch, forKey: .branch)
try container.encodeIfPresent(conclusion, forKey: .conclusion)
try container.encodeIfPresent(endedAt, forKey: .endedAt)
try container.encodeIfPresent(event, forKey: .event)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(number, forKey: .number)
try container.encodeIfPresent(org, forKey: .org)
try container.encodeIfPresent(repo, forKey: .repo)
try container.encodeIfPresent(sha, forKey: .sha)
try container.encodeIfPresent(startedAt, forKey: .startedAt)
try container.encodeIfPresent(status, forKey: .status)
try container.encodeIfPresent(title, forKey: .title)
try container.encodeIfPresent(url, forKey: .url)
try container.encodeIfPresent(workflow, forKey: .workflow)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension Execution: Identifiable {}