mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +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.
64 lines
2.5 KiB
Swift
64 lines
2.5 KiB
Swift
//
|
|
// O11yQueryRangeRequest.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yQueryRangeRequest: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** CompositeQuery is the composite query to use for the request. */
|
|
public var compositeQuery: O11yQuerybuildertypesv5CompositeQuery?
|
|
/** End is the end time of the query in epoch milliseconds. */
|
|
public var end: Int?
|
|
public var formatOptions: O11yFormatOptions?
|
|
/** NoCache is a flag to disable caching for the request. */
|
|
public var noCache: Bool?
|
|
public var requestType: JSONValue?
|
|
/** SchemaVersion is the version of the schema to use for the request payload. */
|
|
public var schemaVersion: String?
|
|
/** Start is the start time of the query in epoch milliseconds. */
|
|
public var start: Int?
|
|
/** Variables is the variables to use for the request. */
|
|
public var variables: [String: O11yVariableItem]?
|
|
|
|
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) {
|
|
self.compositeQuery = compositeQuery
|
|
self.end = end
|
|
self.formatOptions = formatOptions
|
|
self.noCache = noCache
|
|
self.requestType = requestType
|
|
self.schemaVersion = schemaVersion
|
|
self.start = start
|
|
self.variables = variables
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case compositeQuery
|
|
case end
|
|
case formatOptions
|
|
case noCache
|
|
case requestType
|
|
case schemaVersion
|
|
case start
|
|
case variables
|
|
}
|
|
|
|
// 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)
|
|
}
|
|
}
|
|
|