Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
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.
2026-09-05 18:55:38 -07:00

61 lines
2.7 KiB
Swift

//
// NodePoolView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct NodePoolView: Sendable, Codable, ParameterConvertible, Hashable {
/** AutoScale reports whether the provider's cluster autoscaler owns this pool's size, moving Count between MinNodes and MaxNodes as workloads demand. False means Count changes only when someone scales the pool. */
public var autoScale: Bool?
/** Count is how many nodes the pool has right now. Always present, so 0 means a pool that is genuinely empty rather than a figure the provider withheld. */
public var count: Int64?
/** MaxNodes is the ceiling the autoscaler will not grow the pool past, and so the bound on what this pool can cost. Read it only with AutoScale set. */
public var maxNodes: Int64?
/** MinNodes is the floor the autoscaler will not shrink the pool below. Read it only with AutoScale set — the provider ignores it otherwise. */
public var minNodes: Int64?
/** Name is the pool's name as the provider knows it. */
public var name: String?
/** PoolID is the provider's id for the pool — the value the scale and delete routes address it by. It falls back to the pool's name when the provider answered without one, so it is always something the routes accept. */
public var poolId: String?
/** Size is the provider size slug every node in the pool runs at (\"s-4vcpu-8gb\", \"gpu-h100x8-640gb\"). One pool is one size — a mixed cluster is several pools. */
public var size: String?
public init(autoScale: Bool? = nil, count: Int64? = nil, maxNodes: Int64? = nil, minNodes: Int64? = nil, name: String? = nil, poolId: String? = nil, size: String? = nil) {
self.autoScale = autoScale
self.count = count
self.maxNodes = maxNodes
self.minNodes = minNodes
self.name = name
self.poolId = poolId
self.size = size
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case autoScale
case count
case maxNodes
case minNodes
case name
case poolId
case size
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(autoScale, forKey: .autoScale)
try container.encodeIfPresent(count, forKey: .count)
try container.encodeIfPresent(maxNodes, forKey: .maxNodes)
try container.encodeIfPresent(minNodes, forKey: .minNodes)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(poolId, forKey: .poolId)
try container.encodeIfPresent(size, forKey: .size)
}
}