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.
46 lines
1.4 KiB
Swift
46 lines
1.4 KiB
Swift
//
|
|
// O11yStatefulSets.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yStatefulSets: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var endTimeBeforeRetention: Bool?
|
|
public var records: [O11yStatefulSetRecord]?
|
|
public var total: Int64?
|
|
public var type: JSONValue?
|
|
public var warning: O11yQueryWarnData?
|
|
|
|
public init(endTimeBeforeRetention: Bool? = nil, records: [O11yStatefulSetRecord]? = nil, total: Int64? = nil, type: JSONValue? = nil, warning: O11yQueryWarnData? = nil) {
|
|
self.endTimeBeforeRetention = endTimeBeforeRetention
|
|
self.records = records
|
|
self.total = total
|
|
self.type = type
|
|
self.warning = warning
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case endTimeBeforeRetention
|
|
case records
|
|
case total
|
|
case type
|
|
case warning
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(endTimeBeforeRetention, forKey: .endTimeBeforeRetention)
|
|
try container.encodeIfPresent(records, forKey: .records)
|
|
try container.encodeIfPresent(total, forKey: .total)
|
|
try container.encodeIfPresent(type, forKey: .type)
|
|
try container.encodeIfPresent(warning, forKey: .warning)
|
|
}
|
|
}
|
|
|