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.
61 lines
2.0 KiB
Swift
61 lines
2.0 KiB
Swift
//
|
|
// O11yO11yOccurrenceFrame.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yO11yOccurrenceFrame: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** AbsPath is the file's absolute path. */
|
|
public var absPath: String?
|
|
/** Colno is the column number. */
|
|
public var colno: Int64?
|
|
/** Filename is the file it is in. */
|
|
public var filename: String?
|
|
/** Function is the function the frame is in. */
|
|
public var function: String?
|
|
/** InApp marks a frame in the reporting application's own code. */
|
|
public var inApp: Bool?
|
|
/** Lineno is the line number. */
|
|
public var lineno: Int64?
|
|
/** Module is the module the function is in. */
|
|
public var module: String?
|
|
|
|
public init(absPath: String? = nil, colno: Int64? = nil, filename: String? = nil, function: String? = nil, inApp: Bool? = nil, lineno: Int64? = nil, module: String? = nil) {
|
|
self.absPath = absPath
|
|
self.colno = colno
|
|
self.filename = filename
|
|
self.function = function
|
|
self.inApp = inApp
|
|
self.lineno = lineno
|
|
self.module = module
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case absPath
|
|
case colno
|
|
case filename
|
|
case function
|
|
case inApp
|
|
case lineno
|
|
case module
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(absPath, forKey: .absPath)
|
|
try container.encodeIfPresent(colno, forKey: .colno)
|
|
try container.encodeIfPresent(filename, forKey: .filename)
|
|
try container.encodeIfPresent(function, forKey: .function)
|
|
try container.encodeIfPresent(inApp, forKey: .inApp)
|
|
try container.encodeIfPresent(lineno, forKey: .lineno)
|
|
try container.encodeIfPresent(module, forKey: .module)
|
|
}
|
|
}
|
|
|