Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
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.
2026-08-23 10:04:41 -07:00

56 lines
2.1 KiB
Swift

//
// O11yItemInput.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yItemInput: Sendable, Codable, ParameterConvertible, Hashable {
/** Assignee is the reviewer this item is for, up to 512 characters. */
public var assignee: String?
/** ObjectID is the referenced object's id, paired with objectType. */
public var objectId: String?
/** ObjectType is TRACE, OBSERVATION or SESSION — the generic form, paired with objectId. */
public var objectType: String?
/** ObservationID references an observation — the console-friendly form of objectType=OBSERVATION. */
public var observationId: String?
/** SessionID references a session — the console-friendly form of objectType=SESSION. */
public var sessionId: String?
/** TraceID references a trace — the console-friendly form of objectType=TRACE. */
public var traceId: String?
public init(assignee: String? = nil, objectId: String? = nil, objectType: String? = nil, observationId: String? = nil, sessionId: String? = nil, traceId: String? = nil) {
self.assignee = assignee
self.objectId = objectId
self.objectType = objectType
self.observationId = observationId
self.sessionId = sessionId
self.traceId = traceId
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case assignee
case objectId
case objectType
case observationId
case sessionId
case traceId
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(assignee, forKey: .assignee)
try container.encodeIfPresent(objectId, forKey: .objectId)
try container.encodeIfPresent(objectType, forKey: .objectType)
try container.encodeIfPresent(observationId, forKey: .observationId)
try container.encodeIfPresent(sessionId, forKey: .sessionId)
try container.encodeIfPresent(traceId, forKey: .traceId)
}
}