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.
44 lines
1.2 KiB
Swift
44 lines
1.2 KiB
Swift
//
|
|
// PublishedView.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct PublishedView: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** DNS is the name the fabric answers for this service — what a kubeconfig server, or any client on the org's overlay, dials. */
|
|
public var dns: String?
|
|
/** ID is the fabric service's id. */
|
|
public var id: String?
|
|
/** Name is the service's name within the org. */
|
|
public var name: String?
|
|
|
|
public init(dns: String? = nil, id: String? = nil, name: String? = nil) {
|
|
self.dns = dns
|
|
self.id = id
|
|
self.name = name
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case dns
|
|
case id
|
|
case name
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(dns, forKey: .dns)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension PublishedView: Identifiable {}
|