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.
51 lines
1.9 KiB
Swift
51 lines
1.9 KiB
Swift
//
|
|
// VersionMessage.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct VersionMessage: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** BuildDate is the time THIS RESPONSE was generated, in RFC 3339 — not a build timestamp. There is no argocd build here to report one for. */
|
|
public var buildDate: String?
|
|
/** Compiler is the constant \"gc\" the SPA expects; it is not read from this process. */
|
|
public var compiler: String?
|
|
/** GoVersion is always empty. */
|
|
public var goVersion: String?
|
|
/** Platform is the constant \"linux/amd64\" the SPA expects; it is not this process's own GOOS/GOARCH. */
|
|
public var platform: String?
|
|
/** Version names the projection, \"hanzo-cd (projection)\". */
|
|
public var version: String?
|
|
|
|
public init(buildDate: String? = nil, compiler: String? = nil, goVersion: String? = nil, platform: String? = nil, version: String? = nil) {
|
|
self.buildDate = buildDate
|
|
self.compiler = compiler
|
|
self.goVersion = goVersion
|
|
self.platform = platform
|
|
self.version = version
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case buildDate = "BuildDate"
|
|
case compiler = "Compiler"
|
|
case goVersion = "GoVersion"
|
|
case platform = "Platform"
|
|
case version = "Version"
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(buildDate, forKey: .buildDate)
|
|
try container.encodeIfPresent(compiler, forKey: .compiler)
|
|
try container.encodeIfPresent(goVersion, forKey: .goVersion)
|
|
try container.encodeIfPresent(platform, forKey: .platform)
|
|
try container.encodeIfPresent(version, forKey: .version)
|
|
}
|
|
}
|
|
|