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.
56 lines
2.1 KiB
Swift
56 lines
2.1 KiB
Swift
//
|
|
// DatasetView.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct DatasetView: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** CreatedAt is when the name was first written, kept across later edits. */
|
|
public var createdAt: String?
|
|
/** Description is free text the org wrote about what this set measures. */
|
|
public var description: String?
|
|
/** Items is how many examples the set holds. It is filled only by the single read — a listing does not count, so it is absent there rather than zero. */
|
|
public var items: Int64?
|
|
/** Metadata is the free-form object stored with the set, echoed back verbatim. */
|
|
public var metadata: [String: JSONValue]?
|
|
/** Name is the dataset's org-unique handle and the segment that addresses it. */
|
|
public var name: String?
|
|
/** UpdatedAt is when the description or metadata last changed. */
|
|
public var updatedAt: String?
|
|
|
|
public init(createdAt: String? = nil, description: String? = nil, items: Int64? = nil, metadata: [String: JSONValue]? = nil, name: String? = nil, updatedAt: String? = nil) {
|
|
self.createdAt = createdAt
|
|
self.description = description
|
|
self.items = items
|
|
self.metadata = metadata
|
|
self.name = name
|
|
self.updatedAt = updatedAt
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case createdAt
|
|
case description
|
|
case items
|
|
case metadata
|
|
case name
|
|
case updatedAt
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(description, forKey: .description)
|
|
try container.encodeIfPresent(items, forKey: .items)
|
|
try container.encodeIfPresent(metadata, forKey: .metadata)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
}
|
|
}
|
|
|