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.
61 lines
2.6 KiB
Swift
61 lines
2.6 KiB
Swift
//
|
|
// ArgoResourceStatus.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ArgoResourceStatus: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Group is the object's API group: empty for the core group (Pod, Service, ConfigMap), otherwise apps, networking.k8s.io, autoscaling or policy — and hanzo.ai for the App CR itself. */
|
|
public var group: String?
|
|
/** Health is this object's own health, derived from its live state by the same rule the resource tree uses. */
|
|
public var health: ArgoHealth?
|
|
/** Kind is the object kind — App, Deployment, ReplicaSet, Pod, Service, Ingress, HorizontalPodAutoscaler, PodDisruptionBudget, ConfigMap. Never Secret: the walk that produces these does not visit them. */
|
|
public var kind: String?
|
|
/** Name is the object's metadata.name. */
|
|
public var name: String?
|
|
/** Namespace is the namespace the object was found in — the same one for every entry of an application, since the walk is confined to it. */
|
|
public var namespace: String?
|
|
/** Status is the APPLICATION's sync verdict repeated on every row, not a per-object one. The operator owns these children, so no child has a desired state of its own to compare against. */
|
|
public var status: String?
|
|
/** Version is the object's API version as the live object reports it: v1 for every kind here except the HorizontalPodAutoscaler, which is autoscaling/v2. */
|
|
public var version: String?
|
|
|
|
public init(group: String? = nil, health: ArgoHealth? = nil, kind: String? = nil, name: String? = nil, namespace: String? = nil, status: String? = nil, version: String? = nil) {
|
|
self.group = group
|
|
self.health = health
|
|
self.kind = kind
|
|
self.name = name
|
|
self.namespace = namespace
|
|
self.status = status
|
|
self.version = version
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case group
|
|
case health
|
|
case kind
|
|
case name
|
|
case namespace
|
|
case status
|
|
case version
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(group, forKey: .group)
|
|
try container.encodeIfPresent(health, forKey: .health)
|
|
try container.encodeIfPresent(kind, forKey: .kind)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(namespace, forKey: .namespace)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
try container.encodeIfPresent(version, forKey: .version)
|
|
}
|
|
}
|
|
|