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.
62 lines
2.0 KiB
Swift
62 lines
2.0 KiB
Swift
//
|
|
// AlertSpec.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct AlertSpec: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var currency: String?
|
|
public var enforce: Bool?
|
|
public var project: String?
|
|
public var rateLimitRpm: Int64?
|
|
public var service: String?
|
|
public var softPct: Int64?
|
|
public var subject: String?
|
|
public var threshold: Int64?
|
|
public var title: String?
|
|
|
|
public init(currency: String? = nil, enforce: Bool? = nil, project: String? = nil, rateLimitRpm: Int64? = nil, service: String? = nil, softPct: Int64? = nil, subject: String? = nil, threshold: Int64? = nil, title: String? = nil) {
|
|
self.currency = currency
|
|
self.enforce = enforce
|
|
self.project = project
|
|
self.rateLimitRpm = rateLimitRpm
|
|
self.service = service
|
|
self.softPct = softPct
|
|
self.subject = subject
|
|
self.threshold = threshold
|
|
self.title = title
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case currency
|
|
case enforce
|
|
case project
|
|
case rateLimitRpm
|
|
case service
|
|
case softPct
|
|
case subject
|
|
case threshold
|
|
case title
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(currency, forKey: .currency)
|
|
try container.encodeIfPresent(enforce, forKey: .enforce)
|
|
try container.encodeIfPresent(project, forKey: .project)
|
|
try container.encodeIfPresent(rateLimitRpm, forKey: .rateLimitRpm)
|
|
try container.encodeIfPresent(service, forKey: .service)
|
|
try container.encodeIfPresent(softPct, forKey: .softPct)
|
|
try container.encodeIfPresent(subject, forKey: .subject)
|
|
try container.encodeIfPresent(threshold, forKey: .threshold)
|
|
try container.encodeIfPresent(title, forKey: .title)
|
|
}
|
|
}
|
|
|