Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
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.
2026-09-05 18:55:38 -07:00

61 lines
2.2 KiB
Swift

//
// ReferenceTaken.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ReferenceTaken: Sendable, Codable, ParameterConvertible, Hashable {
/** Keys is how many members it carries. */
public var keys: Int64?
/** Refusal is why this publisher contributed nothing, if it did not. The set keeps its previous version of this source rather than shrinking. */
public var refusal: String?
/** Resumed is true when this run continued a version a previous run left half-landed. */
public var resumed: Bool?
/** Source is the publisher. */
public var source: String?
/** Unchanged is true when the publisher's data was byte-for-byte the set we already held. */
public var unchanged: Bool?
/** Version is the content digest that landed. */
public var version: String?
/** Wrote is how many rows this run actually wrote. Zero with Unchanged means the publisher served the same set again. */
public var wrote: Int64?
public init(keys: Int64? = nil, refusal: String? = nil, resumed: Bool? = nil, source: String? = nil, unchanged: Bool? = nil, version: String? = nil, wrote: Int64? = nil) {
self.keys = keys
self.refusal = refusal
self.resumed = resumed
self.source = source
self.unchanged = unchanged
self.version = version
self.wrote = wrote
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case keys
case refusal
case resumed
case source
case unchanged
case version
case wrote
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(keys, forKey: .keys)
try container.encodeIfPresent(refusal, forKey: .refusal)
try container.encodeIfPresent(resumed, forKey: .resumed)
try container.encodeIfPresent(source, forKey: .source)
try container.encodeIfPresent(unchanged, forKey: .unchanged)
try container.encodeIfPresent(version, forKey: .version)
try container.encodeIfPresent(wrote, forKey: .wrote)
}
}