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.
62 lines
1.9 KiB
Swift
62 lines
1.9 KiB
Swift
//
|
|
// O11yLimit.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yLimit: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var config: O11yLimitConfig?
|
|
public var createdAt: Date?
|
|
public var id: String?
|
|
public var keyId: String?
|
|
public var metric: O11yLimitMetric?
|
|
/** \"logs\", \"traces\", \"metrics\" */
|
|
public var signal: String?
|
|
public var tags: [String]?
|
|
public var updatedAt: Date?
|
|
|
|
public init(config: O11yLimitConfig? = nil, createdAt: Date? = nil, id: String? = nil, keyId: String? = nil, metric: O11yLimitMetric? = nil, signal: String? = nil, tags: [String]? = nil, updatedAt: Date? = nil) {
|
|
self.config = config
|
|
self.createdAt = createdAt
|
|
self.id = id
|
|
self.keyId = keyId
|
|
self.metric = metric
|
|
self.signal = signal
|
|
self.tags = tags
|
|
self.updatedAt = updatedAt
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case config
|
|
case createdAt = "created_at"
|
|
case id
|
|
case keyId = "key_id"
|
|
case metric
|
|
case signal
|
|
case tags
|
|
case updatedAt = "updated_at"
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(config, forKey: .config)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(keyId, forKey: .keyId)
|
|
try container.encodeIfPresent(metric, forKey: .metric)
|
|
try container.encodeIfPresent(signal, forKey: .signal)
|
|
try container.encodeIfPresent(tags, forKey: .tags)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension O11yLimit: Identifiable {}
|