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.4 KiB
Swift
41 lines
1.4 KiB
Swift
//
|
|
// BlueprintRow.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct BlueprintRow: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** CentsPerMonth is the estimated compute cost of running the whole stack for one month, in USD cents, from the rate card GET /v1/blueprint/health echoes. */
|
|
public var estCentsPerMonth: Int64?
|
|
/** Services is how many compose services the stack runs. */
|
|
public var services: Int64?
|
|
/** TemplateID is the blueprint slug — the id GET /v1/blueprint/sbom takes as ?template= and the path under templates.hanzo.ai/blueprints/<id>/. */
|
|
public var templateId: String?
|
|
|
|
public init(estCentsPerMonth: Int64? = nil, services: Int64? = nil, templateId: String? = nil) {
|
|
self.estCentsPerMonth = estCentsPerMonth
|
|
self.services = services
|
|
self.templateId = templateId
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case estCentsPerMonth
|
|
case services
|
|
case templateId
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(estCentsPerMonth, forKey: .estCentsPerMonth)
|
|
try container.encodeIfPresent(services, forKey: .services)
|
|
try container.encodeIfPresent(templateId, forKey: .templateId)
|
|
}
|
|
}
|
|
|