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
1.7 KiB
Swift

//
// Readiness.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Readiness: Sendable, Codable, ParameterConvertible, Hashable {
/** CRD is whether the operator App CRD was found, and is absent when no cluster client resolved and the question could not be asked. */
public var crd: Bool?
/** Error is the real reason the plane is degraded; absent when it is not. */
public var error: String?
/** K8s is whether a cluster client resolved at all. False means no kubeconfig. */
public var k8s: Bool?
/** Service is always \"platform\" — which control plane answered. */
public var service: String?
/** Status is \"ok\" when this plane can deploy, \"degraded\" when it cannot. */
public var status: String?
public init(crd: Bool? = nil, error: String? = nil, k8s: Bool? = nil, service: String? = nil, status: String? = nil) {
self.crd = crd
self.error = error
self.k8s = k8s
self.service = service
self.status = status
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case crd
case error
case k8s
case service
case status
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(crd, forKey: .crd)
try container.encodeIfPresent(error, forKey: .error)
try container.encodeIfPresent(k8s, forKey: .k8s)
try container.encodeIfPresent(service, forKey: .service)
try container.encodeIfPresent(status, forKey: .status)
}
}