Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

51 lines
2.1 KiB
Swift

//
// ArgoStatus.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ArgoStatus: Sendable, Codable, ParameterConvertible, Hashable {
/** Health is the application's reconciled health. */
public var health: ArgoHealth?
/** ReconciledAt is when the desired state was last compared against the cluster, RFC 3339. Empty for an App CR — the projection derives its verdict at read time and nothing records a comparison — and CD's own status.reconciledAt for a CD row. */
public var reconciledAt: String?
/** Resources are the objects the application owns. EMPTY on the list — filling it would walk the cluster once per row — and populated only by the read of ONE application, which is what makes that the detail view. */
public var resources: [ArgoResourceStatus]?
/** Summary is the small aggregate the list column renders: the images. */
public var summary: ArgoSummary?
/** Sync is the declared-versus-running verdict and what it was reached against. */
public var sync: ArgoSyncStatus?
public init(health: ArgoHealth? = nil, reconciledAt: String? = nil, resources: [ArgoResourceStatus]? = nil, summary: ArgoSummary? = nil, sync: ArgoSyncStatus? = nil) {
self.health = health
self.reconciledAt = reconciledAt
self.resources = resources
self.summary = summary
self.sync = sync
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case health
case reconciledAt
case resources
case summary
case sync
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(health, forKey: .health)
try container.encodeIfPresent(reconciledAt, forKey: .reconciledAt)
try container.encodeIfPresent(resources, forKey: .resources)
try container.encodeIfPresent(summary, forKey: .summary)
try container.encodeIfPresent(sync, forKey: .sync)
}
}