mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
41 lines
1.6 KiB
Swift
41 lines
1.6 KiB
Swift
//
|
|
// GitOpsPlane.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct GitOpsPlane: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Applications is every CD Application in the cluster, ordered by namespace then name. Empty (never null) when the plane is not installed, and equally empty when it is installed and tracks nothing — Installed is what separates those two. */
|
|
public var applications: [GitOpsApp]?
|
|
/** Installed is whether this cluster serves the CD Application CRD at all. False is a fact about the cluster, not a failure of the request: the caller says \"no CD plane here\" rather than rendering an error it cannot act on. */
|
|
public var installed: Bool?
|
|
/** Reason says why the plane is absent, in words a caller can show. Empty when Installed. */
|
|
public var reason: String?
|
|
|
|
public init(applications: [GitOpsApp]? = nil, installed: Bool? = nil, reason: String? = nil) {
|
|
self.applications = applications
|
|
self.installed = installed
|
|
self.reason = reason
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case applications
|
|
case installed
|
|
case reason
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(applications, forKey: .applications)
|
|
try container.encodeIfPresent(installed, forKey: .installed)
|
|
try container.encodeIfPresent(reason, forKey: .reason)
|
|
}
|
|
}
|
|
|