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.
51 lines
1.7 KiB
Swift
51 lines
1.7 KiB
Swift
//
|
|
// LinearBackfillResult.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct LinearBackfillResult: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Created is how many native issues this pass created. */
|
|
public var created: Int64?
|
|
/** Failed is how many issues errored; the pass continues past each. */
|
|
public var failed: Int64?
|
|
/** Issues is how many Linear issues were seen. */
|
|
public var issues: Int64?
|
|
/** Truncated is set when the time budget or the issue cap stopped the pass early. Re-run to continue — the mirror is idempotent by ExtRef, so nothing duplicates. */
|
|
public var truncated: Bool?
|
|
/** Updated is how many existing native issues this pass refreshed. */
|
|
public var updated: Int64?
|
|
|
|
public init(created: Int64? = nil, failed: Int64? = nil, issues: Int64? = nil, truncated: Bool? = nil, updated: Int64? = nil) {
|
|
self.created = created
|
|
self.failed = failed
|
|
self.issues = issues
|
|
self.truncated = truncated
|
|
self.updated = updated
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case created
|
|
case failed
|
|
case issues
|
|
case truncated
|
|
case updated
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(created, forKey: .created)
|
|
try container.encodeIfPresent(failed, forKey: .failed)
|
|
try container.encodeIfPresent(issues, forKey: .issues)
|
|
try container.encodeIfPresent(truncated, forKey: .truncated)
|
|
try container.encodeIfPresent(updated, forKey: .updated)
|
|
}
|
|
}
|
|
|