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.
65 lines
2.1 KiB
Swift
65 lines
2.1 KiB
Swift
//
|
|
// O11yIngestionKey.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yIngestionKey: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var createdAt: Date?
|
|
public var expiresAt: Date?
|
|
public var id: String?
|
|
public var limits: [O11yLimit]?
|
|
public var name: String?
|
|
public var tags: [String]?
|
|
public var updatedAt: Date?
|
|
public var value: String?
|
|
public var workspaceId: String?
|
|
|
|
public init(createdAt: Date? = nil, expiresAt: Date? = nil, id: String? = nil, limits: [O11yLimit]? = nil, name: String? = nil, tags: [String]? = nil, updatedAt: Date? = nil, value: String? = nil, workspaceId: String? = nil) {
|
|
self.createdAt = createdAt
|
|
self.expiresAt = expiresAt
|
|
self.id = id
|
|
self.limits = limits
|
|
self.name = name
|
|
self.tags = tags
|
|
self.updatedAt = updatedAt
|
|
self.value = value
|
|
self.workspaceId = workspaceId
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case createdAt = "created_at"
|
|
case expiresAt = "expires_at"
|
|
case id
|
|
case limits
|
|
case name
|
|
case tags
|
|
case updatedAt = "updated_at"
|
|
case value
|
|
case workspaceId = "workspace_id"
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(expiresAt, forKey: .expiresAt)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(limits, forKey: .limits)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(tags, forKey: .tags)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
try container.encodeIfPresent(value, forKey: .value)
|
|
try container.encodeIfPresent(workspaceId, forKey: .workspaceId)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension O11yIngestionKey: Identifiable {}
|