mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The projection these were generated from predated the compute migration, so they described /v1/visor — which the API serves at zero paths now. No /v1/visor path survives here.
42 lines
1.1 KiB
Swift
42 lines
1.1 KiB
Swift
//
|
|
// O11ySpanMapperSource.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11ySpanMapperSource: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var context: JSONValue?
|
|
public var key: String?
|
|
public var operation: JSONValue?
|
|
public var priority: Int64?
|
|
|
|
public init(context: JSONValue? = nil, key: String? = nil, operation: JSONValue? = nil, priority: Int64? = nil) {
|
|
self.context = context
|
|
self.key = key
|
|
self.operation = operation
|
|
self.priority = priority
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case context
|
|
case key
|
|
case operation
|
|
case priority
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(context, forKey: .context)
|
|
try container.encodeIfPresent(key, forKey: .key)
|
|
try container.encodeIfPresent(operation, forKey: .operation)
|
|
try container.encodeIfPresent(priority, forKey: .priority)
|
|
}
|
|
}
|
|
|