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
//
|
|
// ServiceIn.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ServiceIn: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Host is where the HOSTING identity forwards a connection — an address the host device itself can reach, \"127.0.0.1\" for a server on the device. */
|
|
public var host: String?
|
|
/** Name is the service's name within the org — a DNS label. The fabric knows the service as \"<name>.<org>\" and answers for it at \"<name>.<org>.zt\". */
|
|
public var name: String?
|
|
/** Port is the port beside Host, and the one the DNS name intercepts. */
|
|
public var port: Int64?
|
|
|
|
public init(host: String? = nil, name: String? = nil, port: Int64? = nil) {
|
|
self.host = host
|
|
self.name = name
|
|
self.port = port
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case host
|
|
case name
|
|
case port
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(host, forKey: .host)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(port, forKey: .port)
|
|
}
|
|
}
|
|
|