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.
58 lines
2.8 KiB
Swift
58 lines
2.8 KiB
Swift
//
|
|
// O11yChecks.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yChecks: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var missingDefaultEnabledMetrics: [O11yMissingMetricsComponentEntry]?
|
|
public var missingOptionalMetrics: [O11yMissingMetricsComponentEntry]?
|
|
public var missingRequiredAttributes: [O11yMissingAttributesComponentEntry]?
|
|
public var presentDefaultEnabledMetrics: [O11yMetricsComponentEntry]?
|
|
public var presentOptionalMetrics: [O11yMetricsComponentEntry]?
|
|
public var presentRequiredAttributes: [O11yAttributesComponentEntry]?
|
|
public var ready: Bool?
|
|
public var type: JSONValue?
|
|
|
|
public init(missingDefaultEnabledMetrics: [O11yMissingMetricsComponentEntry]? = nil, missingOptionalMetrics: [O11yMissingMetricsComponentEntry]? = nil, missingRequiredAttributes: [O11yMissingAttributesComponentEntry]? = nil, presentDefaultEnabledMetrics: [O11yMetricsComponentEntry]? = nil, presentOptionalMetrics: [O11yMetricsComponentEntry]? = nil, presentRequiredAttributes: [O11yAttributesComponentEntry]? = nil, ready: Bool? = nil, type: JSONValue? = nil) {
|
|
self.missingDefaultEnabledMetrics = missingDefaultEnabledMetrics
|
|
self.missingOptionalMetrics = missingOptionalMetrics
|
|
self.missingRequiredAttributes = missingRequiredAttributes
|
|
self.presentDefaultEnabledMetrics = presentDefaultEnabledMetrics
|
|
self.presentOptionalMetrics = presentOptionalMetrics
|
|
self.presentRequiredAttributes = presentRequiredAttributes
|
|
self.ready = ready
|
|
self.type = type
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case missingDefaultEnabledMetrics
|
|
case missingOptionalMetrics
|
|
case missingRequiredAttributes
|
|
case presentDefaultEnabledMetrics
|
|
case presentOptionalMetrics
|
|
case presentRequiredAttributes
|
|
case ready
|
|
case type
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(missingDefaultEnabledMetrics, forKey: .missingDefaultEnabledMetrics)
|
|
try container.encodeIfPresent(missingOptionalMetrics, forKey: .missingOptionalMetrics)
|
|
try container.encodeIfPresent(missingRequiredAttributes, forKey: .missingRequiredAttributes)
|
|
try container.encodeIfPresent(presentDefaultEnabledMetrics, forKey: .presentDefaultEnabledMetrics)
|
|
try container.encodeIfPresent(presentOptionalMetrics, forKey: .presentOptionalMetrics)
|
|
try container.encodeIfPresent(presentRequiredAttributes, forKey: .presentRequiredAttributes)
|
|
try container.encodeIfPresent(ready, forKey: .ready)
|
|
try container.encodeIfPresent(type, forKey: .type)
|
|
}
|
|
}
|
|
|