Files
swift-sdk/Sources/Hanzo/Models/CreateClusterReqNodePool.swift
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

39 lines
1.1 KiB
Swift

//
// CreateClusterReqNodePool.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
/** NodePool is the ONE pool the cluster is born with — a cluster with no nodes runs nothing, so it is not optional. More pools are added afterwards through POST /v1/compute/clusters/:clusterId/pools. */
public struct CreateClusterReqNodePool: Sendable, Codable, ParameterConvertible, Hashable {
public var count: Int64?
public var name: String?
public var size: String?
public init(count: Int64? = nil, name: String? = nil, size: String? = nil) {
self.count = count
self.name = name
self.size = size
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case count
case name
case size
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(count, forKey: .count)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(size, forKey: .size)
}
}