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
2.1 KiB
Swift
51 lines
2.1 KiB
Swift
//
|
|
// ArgoRevisionMetadata.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ArgoRevisionMetadata: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Author is the commit author. Always absent: an App CR pins an IMAGE, so this process has no commit to read one from and will not invent one. */
|
|
public var author: String?
|
|
/** Date is when the App CR was created, RFC 3339 UTC — the only real timestamp there is here. It is NOT the date of the revision asked for. */
|
|
public var date: String?
|
|
/** Message is the revision asked for, echoed back — not a commit message. The empty revision and \"HEAD\" resolve to the image tag the CR declares (spec.image.tag), and anything longer than 256 characters is truncated to it. */
|
|
public var message: String?
|
|
/** SignatureInfo is the GPG verification result for the revision. Always absent: nothing here verifies a signature, and an empty field says so rather than implying an unsigned commit. */
|
|
public var signatureInfo: String?
|
|
/** Tags are the git tags pointing at the revision. Always absent, for the same reason as Author. */
|
|
public var tags: [String]?
|
|
|
|
public init(author: String? = nil, date: String? = nil, message: String? = nil, signatureInfo: String? = nil, tags: [String]? = nil) {
|
|
self.author = author
|
|
self.date = date
|
|
self.message = message
|
|
self.signatureInfo = signatureInfo
|
|
self.tags = tags
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case author
|
|
case date
|
|
case message
|
|
case signatureInfo
|
|
case tags
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(author, forKey: .author)
|
|
try container.encodeIfPresent(date, forKey: .date)
|
|
try container.encodeIfPresent(message, forKey: .message)
|
|
try container.encodeIfPresent(signatureInfo, forKey: .signatureInfo)
|
|
try container.encodeIfPresent(tags, forKey: .tags)
|
|
}
|
|
}
|
|
|