Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
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.
2026-08-23 10:04:41 -07:00

46 lines
2.2 KiB
Swift

//
// ArgoProjectSpec.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ArgoProjectSpec: Sendable, Codable, ParameterConvertible, Hashable {
/** ClusterResourceWhitelist are the cluster-scoped kinds it may create — [{group:\"*\", kind:\"*\"}] on a synthesized project. */
public var clusterResourceWhitelist: [ArgoGroupKind]?
/** Description is the project's human label: the IAM project's display name, or its description when it has no display name. Absent when IAM carries neither. */
public var description: String?
/** Destinations are the cluster/namespace pairs it may write to — a single {server:\"*\", namespace:\"*\"} on a synthesized project, for the same reason. */
public var destinations: [ArgoDestination]?
/** SourceRepos are the git repos applications in this project may pull from. [\"*\"] for every project this plane synthesizes or reflects from IAM: the boundary that actually holds on this platform is the IAM org, resolved before a row is ever projected, so the projected fence is deliberately permissive and is NOT an authorization statement. */
public var sourceRepos: [String]?
public init(clusterResourceWhitelist: [ArgoGroupKind]? = nil, description: String? = nil, destinations: [ArgoDestination]? = nil, sourceRepos: [String]? = nil) {
self.clusterResourceWhitelist = clusterResourceWhitelist
self.description = description
self.destinations = destinations
self.sourceRepos = sourceRepos
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case clusterResourceWhitelist
case description
case destinations
case sourceRepos
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(clusterResourceWhitelist, forKey: .clusterResourceWhitelist)
try container.encodeIfPresent(description, forKey: .description)
try container.encodeIfPresent(destinations, forKey: .destinations)
try container.encodeIfPresent(sourceRepos, forKey: .sourceRepos)
}
}