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.
61 lines
2.1 KiB
Swift
61 lines
2.1 KiB
Swift
//
|
|
// O11yO11yDomainsIn.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yO11yDomainsIn: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Domain narrows the read to one external domain (the domain view requires it). */
|
|
public var domain: String?
|
|
/** End is the window's end, epoch milliseconds. */
|
|
public var end: Int?
|
|
/** Endpoint narrows the domain view to one endpoint. */
|
|
public var endpoint: String?
|
|
/** Filter is an additional predicate in the query-builder filter syntax. */
|
|
public var filter: O11yO11yDomainFilter?
|
|
/** GroupBy adds grouping columns to the result. */
|
|
public var groupBy: [O11yO11yDomainGroupBy]?
|
|
/** ShowIP keeps rows whose domain is a bare IP address; they are dropped otherwise. */
|
|
public var showIp: Bool?
|
|
/** Start is the window's start, epoch milliseconds. */
|
|
public var start: Int?
|
|
|
|
public init(domain: String? = nil, end: Int? = nil, endpoint: String? = nil, filter: O11yO11yDomainFilter? = nil, groupBy: [O11yO11yDomainGroupBy]? = nil, showIp: Bool? = nil, start: Int? = nil) {
|
|
self.domain = domain
|
|
self.end = end
|
|
self.endpoint = endpoint
|
|
self.filter = filter
|
|
self.groupBy = groupBy
|
|
self.showIp = showIp
|
|
self.start = start
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case domain
|
|
case end
|
|
case endpoint
|
|
case filter
|
|
case groupBy
|
|
case showIp = "show_ip"
|
|
case start
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(domain, forKey: .domain)
|
|
try container.encodeIfPresent(end, forKey: .end)
|
|
try container.encodeIfPresent(endpoint, forKey: .endpoint)
|
|
try container.encodeIfPresent(filter, forKey: .filter)
|
|
try container.encodeIfPresent(groupBy, forKey: .groupBy)
|
|
try container.encodeIfPresent(showIp, forKey: .showIp)
|
|
try container.encodeIfPresent(start, forKey: .start)
|
|
}
|
|
}
|
|
|