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.
56 lines
2.3 KiB
Swift
56 lines
2.3 KiB
Swift
//
|
|
// ArgoResourceRef.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ArgoResourceRef: 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 at the root. */
|
|
public var group: String?
|
|
/** Kind is the object kind. The root is the App CR; below it come Deployment, ReplicaSet, Pod, Service, Ingress, HorizontalPodAutoscaler, PodDisruptionBudget and ConfigMap. Never Secret — the walk does not visit them, so no materialized environment can reach the tree. */
|
|
public var kind: String?
|
|
/** Name is the object's metadata.name. */
|
|
public var name: String?
|
|
/** Namespace is the namespace the walk ran in, the same for every node of one tree. */
|
|
public var namespace: String?
|
|
/** UID is the object's metadata.uid. Absent on a PARENT reference, which addresses its target by kind and name rather than by identity. */
|
|
public var uid: String?
|
|
/** Version is the object's API version as the live object reports it: v1 for every kind the walk reaches except the HorizontalPodAutoscaler, which is autoscaling/v2. */
|
|
public var version: String?
|
|
|
|
public init(group: String? = nil, kind: String? = nil, name: String? = nil, namespace: String? = nil, uid: String? = nil, version: String? = nil) {
|
|
self.group = group
|
|
self.kind = kind
|
|
self.name = name
|
|
self.namespace = namespace
|
|
self.uid = uid
|
|
self.version = version
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case group
|
|
case kind
|
|
case name
|
|
case namespace
|
|
case uid
|
|
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(kind, forKey: .kind)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(namespace, forKey: .namespace)
|
|
try container.encodeIfPresent(uid, forKey: .uid)
|
|
try container.encodeIfPresent(version, forKey: .version)
|
|
}
|
|
}
|
|
|