mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The projection these were generated from predated the compute migration, so they described /v1/visor — which the API serves at zero paths now. No /v1/visor path survives here.
41 lines
1.7 KiB
Swift
41 lines
1.7 KiB
Swift
//
|
|
// ArgoClusterInfo.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ArgoClusterInfo: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** ApplicationsCount is how many of THE CALLER'S applications reconcile into this cluster, so a tenant sees its own count and a SuperAdmin the fleet's. It is zero for the in-cluster destination when the caller owns nothing, since that destination is listed whether or not anything targets it. */
|
|
public var applicationsCount: Int64?
|
|
/** ConnectionState repeats the cluster's own connection state, which is where ArgoCD's UI reads it from on this object. */
|
|
public var connectionState: ArgoConnectionState?
|
|
/** ServerVersion is the kubernetes version of the destination. Always absent: nothing here queries the API server for it. */
|
|
public var serverVersion: String?
|
|
|
|
public init(applicationsCount: Int64? = nil, connectionState: ArgoConnectionState? = nil, serverVersion: String? = nil) {
|
|
self.applicationsCount = applicationsCount
|
|
self.connectionState = connectionState
|
|
self.serverVersion = serverVersion
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case applicationsCount
|
|
case connectionState
|
|
case serverVersion
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(applicationsCount, forKey: .applicationsCount)
|
|
try container.encodeIfPresent(connectionState, forKey: .connectionState)
|
|
try container.encodeIfPresent(serverVersion, forKey: .serverVersion)
|
|
}
|
|
}
|
|
|