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.
41 lines
1.3 KiB
Swift
41 lines
1.3 KiB
Swift
//
|
|
// RiskDatasetDisposal.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct RiskDatasetDisposal: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Dataset is the dataset that was disposed of. The NAME survives: declaring it again continues the version count rather than starting over at 1. */
|
|
public var dataset: String?
|
|
/** Rows is how many rows they held between them, as the REGISTER recorded them when each was materialised — not a count of what the drop deleted, which is gone by the time this answers. */
|
|
public var rows: Int64?
|
|
/** Versions is how many versions went. */
|
|
public var versions: Int64?
|
|
|
|
public init(dataset: String? = nil, rows: Int64? = nil, versions: Int64? = nil) {
|
|
self.dataset = dataset
|
|
self.rows = rows
|
|
self.versions = versions
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case dataset
|
|
case rows
|
|
case versions
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(dataset, forKey: .dataset)
|
|
try container.encodeIfPresent(rows, forKey: .rows)
|
|
try container.encodeIfPresent(versions, forKey: .versions)
|
|
}
|
|
}
|
|
|