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.9 KiB
Swift
51 lines
1.9 KiB
Swift
//
|
|
// GraphNeighborsIn.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct GraphNeighborsIn: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** AsOf walks the graph as it stood at an instant, RFC 3339. Absent walks it as it stands now. */
|
|
public var asOf: String?
|
|
/** Depth is how many hops. Absent is one. */
|
|
public var depth: Int64?
|
|
/** Direction is out, in or both. Out follows an edge from its entity to its value — what the node points at; in follows it the other way — what points at the node; both is the union of the two, not a third rule. Absent is out. */
|
|
public var direction: String?
|
|
/** Relation narrows the walk to one edge relation. Absent follows all. Only edges are ever followed: an assertion whose value is a scalar is a property and is never a hop. */
|
|
public var relation: String?
|
|
/** Seeds is where the walk starts. At least one. */
|
|
public var seeds: [String]?
|
|
|
|
public init(asOf: String? = nil, depth: Int64? = nil, direction: String? = nil, relation: String? = nil, seeds: [String]? = nil) {
|
|
self.asOf = asOf
|
|
self.depth = depth
|
|
self.direction = direction
|
|
self.relation = relation
|
|
self.seeds = seeds
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case asOf = "as_of"
|
|
case depth
|
|
case direction
|
|
case relation
|
|
case seeds
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(asOf, forKey: .asOf)
|
|
try container.encodeIfPresent(depth, forKey: .depth)
|
|
try container.encodeIfPresent(direction, forKey: .direction)
|
|
try container.encodeIfPresent(relation, forKey: .relation)
|
|
try container.encodeIfPresent(seeds, forKey: .seeds)
|
|
}
|
|
}
|
|
|