Files
sdk/Sources/Hanzo/Models/CreateClusterReqNodePool.swift

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/visor/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)
}
}