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.
41 lines
1.5 KiB
Swift
41 lines
1.5 KiB
Swift
//
|
|
// ArgoSource.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ArgoSource: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Path is the directory within RepoURL. Display-only alongside a display-only RepoURL; CD's own value for a CD row. */
|
|
public var path: String?
|
|
/** RepoURL is the git repository the desired state comes from. For an application projected from an App CR it is the fleet manifest repo and is DISPLAY ONLY — an App CR pins an image, and nothing is rendered from this repo to produce it. For a CD row it is the repo CD actually polls. */
|
|
public var repoURL: String?
|
|
/** TargetRevision is the git ref tracked there — a branch such as \"main\". Display-only for a projected App CR; the ref CD tracks for a CD row. */
|
|
public var targetRevision: String?
|
|
|
|
public init(path: String? = nil, repoURL: String? = nil, targetRevision: String? = nil) {
|
|
self.path = path
|
|
self.repoURL = repoURL
|
|
self.targetRevision = targetRevision
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case path
|
|
case repoURL
|
|
case targetRevision
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(path, forKey: .path)
|
|
try container.encodeIfPresent(repoURL, forKey: .repoURL)
|
|
try container.encodeIfPresent(targetRevision, forKey: .targetRevision)
|
|
}
|
|
}
|
|
|