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

49 lines
1.5 KiB
Swift

//
// NetworkView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct NetworkView: Sendable, Codable, ParameterConvertible, Hashable {
/** ID is the org-derived id of the overlay network — the key GET /v1/network/{id} addresses. */
public var id: String?
/** Name is the org the overlay belongs to. */
public var name: String?
/** Nodes is how many edge-routers the org has on the fabric. */
public var nodes: Int64?
/** Status is \"connected\" once at least one of the org's edge-routers is online, else \"provisioning\" (routers exist but none has dialed home). */
public var status: String?
public init(id: String? = nil, name: String? = nil, nodes: Int64? = nil, status: String? = nil) {
self.id = id
self.name = name
self.nodes = nodes
self.status = status
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case id
case name
case nodes
case status
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(nodes, forKey: .nodes)
try container.encodeIfPresent(status, forKey: .status)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension NetworkView: Identifiable {}