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.
36 lines
1010 B
Swift
36 lines
1010 B
Swift
//
|
|
// O11yO11yDashboardVarsIn.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yO11yDashboardVarsIn: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Query is the variable query to evaluate. Required. */
|
|
public var query: String
|
|
/** Variables are the current values of the other dashboard variables, for queries that reference them. */
|
|
public var variables: [String: JSONValue]?
|
|
|
|
public init(query: String, variables: [String: JSONValue]? = nil) {
|
|
self.query = query
|
|
self.variables = variables
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case query
|
|
case variables
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encode(query, forKey: .query)
|
|
try container.encodeIfPresent(variables, forKey: .variables)
|
|
}
|
|
}
|
|
|