mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-11-02 12:23:16 +00:00
The forge tree held the package scaffolding and none of the generated sources — 2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply absent, so anything depending on this copy had a package that compiled to nothing usable. Generated from the current API document rather than reconciled with the other copy: a client is a function of the spec, so regenerating answers "which history wins" without anyone having to choose. .spec-lock records which document, so the next reader can tell.
41 lines
1.4 KiB
Swift
41 lines
1.4 KiB
Swift
//
|
|
// O11yO11yPublicDashboard.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yO11yPublicDashboard: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** DefaultTimeRange is the fixed window when the range is not caller-chosen. */
|
|
public var defaultTimeRange: String?
|
|
/** PublicPath is the public URL path the share is reachable at. */
|
|
public var publicPath: String?
|
|
/** TimeRangeEnabled reports whether the public page may pick its own range. */
|
|
public var timeRangeEnabled: Bool?
|
|
|
|
public init(defaultTimeRange: String? = nil, publicPath: String? = nil, timeRangeEnabled: Bool? = nil) {
|
|
self.defaultTimeRange = defaultTimeRange
|
|
self.publicPath = publicPath
|
|
self.timeRangeEnabled = timeRangeEnabled
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case defaultTimeRange
|
|
case publicPath
|
|
case timeRangeEnabled
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(defaultTimeRange, forKey: .defaultTimeRange)
|
|
try container.encodeIfPresent(publicPath, forKey: .publicPath)
|
|
try container.encodeIfPresent(timeRangeEnabled, forKey: .timeRangeEnabled)
|
|
}
|
|
}
|
|
|