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

41 lines
1.4 KiB
Swift

//
// RateCard.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct RateCard: Sendable, Codable, ParameterConvertible, Hashable {
/** Basis names where the rates come from, so a published price can be explained rather than merely asserted. */
public var basis: String?
/** MicroUSDPerGBHour is the price of one GiB of memory for one hour, in millionths of a US dollar. */
public var microUsdPerGbHour: Int64?
/** MicroUSDPerVCPUHour is the price of one vCPU for one hour, in millionths of a US dollar. */
public var microUsdPerVcpuHour: Int64?
public init(basis: String? = nil, microUsdPerGbHour: Int64? = nil, microUsdPerVcpuHour: Int64? = nil) {
self.basis = basis
self.microUsdPerGbHour = microUsdPerGbHour
self.microUsdPerVcpuHour = microUsdPerVcpuHour
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case basis
case microUsdPerGbHour
case microUsdPerVcpuHour
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(basis, forKey: .basis)
try container.encodeIfPresent(microUsdPerGbHour, forKey: .microUsdPerGbHour)
try container.encodeIfPresent(microUsdPerVcpuHour, forKey: .microUsdPerVcpuHour)
}
}