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.
50 lines
1.8 KiB
Swift
50 lines
1.8 KiB
Swift
//
|
|
// ArgoProject.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ArgoProject: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** APIVersion is the constant \"argoproj.io/v1alpha1\". A project here is an IAM resource wearing that shape; no argoproj.io object is stored behind it. */
|
|
public var apiVersion: String?
|
|
/** Kind is the constant \"AppProject\". */
|
|
public var kind: String?
|
|
/** Metadata is the project's identity: its name is the key an application's spec.project matches, and is the same string an App CR carries in its app.kubernetes.io/part-of label. */
|
|
public var metadata: ArgoMeta?
|
|
/** Spec is the fence the SPA displays — repos, destinations, admitted kinds. */
|
|
public var spec: ArgoProjectSpec?
|
|
public var status: JSONValue?
|
|
|
|
public init(apiVersion: String? = nil, kind: String? = nil, metadata: ArgoMeta? = nil, spec: ArgoProjectSpec? = nil, status: JSONValue? = nil) {
|
|
self.apiVersion = apiVersion
|
|
self.kind = kind
|
|
self.metadata = metadata
|
|
self.spec = spec
|
|
self.status = status
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case apiVersion
|
|
case kind
|
|
case metadata
|
|
case spec
|
|
case status
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(apiVersion, forKey: .apiVersion)
|
|
try container.encodeIfPresent(kind, forKey: .kind)
|
|
try container.encodeIfPresent(metadata, forKey: .metadata)
|
|
try container.encodeIfPresent(spec, forKey: .spec)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
}
|
|
}
|
|
|