Files
swift-sdk/Sources/Hanzo/Models/O11yO11yQueryRangePreviewIn.swift
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
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.
2026-08-23 10:04:41 -07:00

63 lines
2.5 KiB
Swift

//
// O11yO11yQueryRangePreviewIn.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yQueryRangePreviewIn: Sendable, Codable, ParameterConvertible, Hashable {
public var compositeQuery: O11yQuerybuildertypesv5CompositeQuery?
public var end: Int?
public var formatOptions: O11yFormatOptions?
public var noCache: Bool?
public var requestType: JSONValue?
public var schemaVersion: String?
public var start: Int?
public var variables: [String: O11yVariableItem]?
/** Verbose selects the answer's depth. Empty or \"true\" renders the underlying Datastore SQL with EXPLAIN and granule analysis; \"false\" returns only the per-query valid/error/warnings verdict with no Datastore round trips. */
public var verbose: String?
public init(compositeQuery: O11yQuerybuildertypesv5CompositeQuery? = nil, end: Int? = nil, formatOptions: O11yFormatOptions? = nil, noCache: Bool? = nil, requestType: JSONValue? = nil, schemaVersion: String? = nil, start: Int? = nil, variables: [String: O11yVariableItem]? = nil, verbose: String? = nil) {
self.compositeQuery = compositeQuery
self.end = end
self.formatOptions = formatOptions
self.noCache = noCache
self.requestType = requestType
self.schemaVersion = schemaVersion
self.start = start
self.variables = variables
self.verbose = verbose
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case compositeQuery
case end
case formatOptions
case noCache
case requestType
case schemaVersion
case start
case variables
case verbose
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(compositeQuery, forKey: .compositeQuery)
try container.encodeIfPresent(end, forKey: .end)
try container.encodeIfPresent(formatOptions, forKey: .formatOptions)
try container.encodeIfPresent(noCache, forKey: .noCache)
try container.encodeIfPresent(requestType, forKey: .requestType)
try container.encodeIfPresent(schemaVersion, forKey: .schemaVersion)
try container.encodeIfPresent(start, forKey: .start)
try container.encodeIfPresent(variables, forKey: .variables)
try container.encodeIfPresent(verbose, forKey: .verbose)
}
}