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

84 lines
3.2 KiB
Swift

//
// TaxonIn.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct TaxonIn: Sendable, Codable, ParameterConvertible, Hashable {
/** Brands are the brands whose console shows it. Omit for every brand its category admits. */
public var brands: [String]?
/** Category is the id of an EXISTING category to file it under. Required. */
public var category: String?
/** Description is the one line shown beneath the name. */
public var description: String?
/** Href is the absolute URL an external product launches. Give this or route, never both. */
public var href: String?
/** Icon names the icon the surface renders, e.g. \"Database\". */
public var icon: String?
/** ID is the taxon slug to write, from the path. */
public var id: String?
/** Name is the display name. Required. */
public var name: String?
/** Order is where it sits within its category, ascending. */
public var order: Int64?
/** Published is whether it is shown. Omitted means published — a taxon someone took the trouble to write is meant to be seen, and hiding one is the deliberate act. */
public var published: Bool?
/** Route is the in-console path it opens, e.g. \"/vector\". Give this or href, never both. */
public var route: String?
/** Tags are free-form labels for search and grouping across categories. */
public var tags: [String]?
public init(brands: [String]? = nil, category: String? = nil, description: String? = nil, href: String? = nil, icon: String? = nil, id: String? = nil, name: String? = nil, order: Int64? = nil, published: Bool? = nil, route: String? = nil, tags: [String]? = nil) {
self.brands = brands
self.category = category
self.description = description
self.href = href
self.icon = icon
self.id = id
self.name = name
self.order = order
self.published = published
self.route = route
self.tags = tags
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case brands
case category
case description
case href
case icon
case id
case name
case order
case published
case route
case tags
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(brands, forKey: .brands)
try container.encodeIfPresent(category, forKey: .category)
try container.encodeIfPresent(description, forKey: .description)
try container.encodeIfPresent(href, forKey: .href)
try container.encodeIfPresent(icon, forKey: .icon)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(order, forKey: .order)
try container.encodeIfPresent(published, forKey: .published)
try container.encodeIfPresent(route, forKey: .route)
try container.encodeIfPresent(tags, forKey: .tags)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension TaxonIn: Identifiable {}