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.
80 lines
3.8 KiB
Swift
80 lines
3.8 KiB
Swift
//
|
|
// ArgoNode.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ArgoNode: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** CreatedAt is the object's creationTimestamp, RFC 3339 UTC to the second. Absent when the object carries none. */
|
|
public var createdAt: String?
|
|
public var group: String?
|
|
/** Health is the node's own derived health. Always present on a node of this tree; a kind with no health signal of its own reports Healthy, since a ConfigMap existing IS its healthy state. */
|
|
public var health: ArgoHealth?
|
|
/** Images are the container images running on this node. Always absent — the tag travels as the \"Image Tag\" chip in Info instead, which is where the SPA reads it on a node. */
|
|
public var images: [String]?
|
|
/** Info are the chips shown on the node. At most one: the image tag — the RUNNING tag on a Deployment, ReplicaSet or Pod, and the DECLARED tag on the App CR at the root. Absent on a node that carries no image at all. */
|
|
public var info: [ArgoInfoItem]?
|
|
public var kind: String?
|
|
public var name: String?
|
|
public var namespace: String?
|
|
/** ParentRefs are the node's edges UPWARD, which is how the SPA draws the DAG from this flat list. Exactly one entry where present: a depth-1 object points at the App CR, a ReplicaSet at its Deployment, a Pod at its ReplicaSet (or at the Deployment whose selector matches it, when the ReplicaSet is gone). Absent on the root. */
|
|
public var parentRefs: [ArgoResourceRef]?
|
|
/** ResourceVersion is the k8s version a watch would resume from. Always empty: the tree is rebuilt from live reads on every request, including on every frame of the SSE stream, so there is no revision to resume from. */
|
|
public var resourceVersion: String?
|
|
public var uid: String?
|
|
public var version: String?
|
|
|
|
public init(createdAt: String? = nil, group: String? = nil, health: ArgoHealth? = nil, images: [String]? = nil, info: [ArgoInfoItem]? = nil, kind: String? = nil, name: String? = nil, namespace: String? = nil, parentRefs: [ArgoResourceRef]? = nil, resourceVersion: String? = nil, uid: String? = nil, version: String? = nil) {
|
|
self.createdAt = createdAt
|
|
self.group = group
|
|
self.health = health
|
|
self.images = images
|
|
self.info = info
|
|
self.kind = kind
|
|
self.name = name
|
|
self.namespace = namespace
|
|
self.parentRefs = parentRefs
|
|
self.resourceVersion = resourceVersion
|
|
self.uid = uid
|
|
self.version = version
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case createdAt
|
|
case group
|
|
case health
|
|
case images
|
|
case info
|
|
case kind
|
|
case name
|
|
case namespace
|
|
case parentRefs
|
|
case resourceVersion
|
|
case uid
|
|
case version
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(group, forKey: .group)
|
|
try container.encodeIfPresent(health, forKey: .health)
|
|
try container.encodeIfPresent(images, forKey: .images)
|
|
try container.encodeIfPresent(info, forKey: .info)
|
|
try container.encodeIfPresent(kind, forKey: .kind)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(namespace, forKey: .namespace)
|
|
try container.encodeIfPresent(parentRefs, forKey: .parentRefs)
|
|
try container.encodeIfPresent(resourceVersion, forKey: .resourceVersion)
|
|
try container.encodeIfPresent(uid, forKey: .uid)
|
|
try container.encodeIfPresent(version, forKey: .version)
|
|
}
|
|
}
|
|
|