mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
288 of hanzoai/ai's 294 operations now declare a response, against 1 before. GET /v1/models, POST /v1/chat/completions, /v1/embeddings, /v1/messages — every address a client actually calls — used to reach this client untyped, because cloud's relay carried an operation's sentence and dropped the shapes it named. It carries both now. Fleet-wide the document goes from 69% to 81% of operations declaring what comes back, which is where the ~208 new models here come from.
134 lines
5.3 KiB
Swift
134 lines
5.3 KiB
Swift
//
|
|
// Node.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct Node: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var autoQuery: Bool?
|
|
public var category: String?
|
|
public var cpuSize: String?
|
|
public var createdTime: String?
|
|
public var description: String?
|
|
public var displayName: String?
|
|
public var enableRemoteApp: Bool?
|
|
public var isPermanent: Bool?
|
|
public var language: String?
|
|
public var machineName: String?
|
|
public var memSize: String?
|
|
public var name: String?
|
|
public var os: String?
|
|
public var owner: String?
|
|
public var patches: [Patch]?
|
|
public var privateIp: String?
|
|
public var publicIp: String?
|
|
public var remoteApps: [RemoteApp]?
|
|
public var remotePassword: String?
|
|
public var remotePort: Int?
|
|
public var remoteProtocol: String?
|
|
public var remoteUsername: String?
|
|
public var services: [Service]?
|
|
public var size: String?
|
|
public var tag: String?
|
|
public var type: String?
|
|
public var updatedTime: String?
|
|
|
|
public init(autoQuery: Bool? = nil, category: String? = nil, cpuSize: String? = nil, createdTime: String? = nil, description: String? = nil, displayName: String? = nil, enableRemoteApp: Bool? = nil, isPermanent: Bool? = nil, language: String? = nil, machineName: String? = nil, memSize: String? = nil, name: String? = nil, os: String? = nil, owner: String? = nil, patches: [Patch]? = nil, privateIp: String? = nil, publicIp: String? = nil, remoteApps: [RemoteApp]? = nil, remotePassword: String? = nil, remotePort: Int? = nil, remoteProtocol: String? = nil, remoteUsername: String? = nil, services: [Service]? = nil, size: String? = nil, tag: String? = nil, type: String? = nil, updatedTime: String? = nil) {
|
|
self.autoQuery = autoQuery
|
|
self.category = category
|
|
self.cpuSize = cpuSize
|
|
self.createdTime = createdTime
|
|
self.description = description
|
|
self.displayName = displayName
|
|
self.enableRemoteApp = enableRemoteApp
|
|
self.isPermanent = isPermanent
|
|
self.language = language
|
|
self.machineName = machineName
|
|
self.memSize = memSize
|
|
self.name = name
|
|
self.os = os
|
|
self.owner = owner
|
|
self.patches = patches
|
|
self.privateIp = privateIp
|
|
self.publicIp = publicIp
|
|
self.remoteApps = remoteApps
|
|
self.remotePassword = remotePassword
|
|
self.remotePort = remotePort
|
|
self.remoteProtocol = remoteProtocol
|
|
self.remoteUsername = remoteUsername
|
|
self.services = services
|
|
self.size = size
|
|
self.tag = tag
|
|
self.type = type
|
|
self.updatedTime = updatedTime
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case autoQuery
|
|
case category
|
|
case cpuSize
|
|
case createdTime
|
|
case description
|
|
case displayName
|
|
case enableRemoteApp
|
|
case isPermanent
|
|
case language
|
|
case machineName
|
|
case memSize
|
|
case name
|
|
case os
|
|
case owner
|
|
case patches
|
|
case privateIp
|
|
case publicIp
|
|
case remoteApps
|
|
case remotePassword
|
|
case remotePort
|
|
case remoteProtocol
|
|
case remoteUsername
|
|
case services
|
|
case size
|
|
case tag
|
|
case type
|
|
case updatedTime
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(autoQuery, forKey: .autoQuery)
|
|
try container.encodeIfPresent(category, forKey: .category)
|
|
try container.encodeIfPresent(cpuSize, forKey: .cpuSize)
|
|
try container.encodeIfPresent(createdTime, forKey: .createdTime)
|
|
try container.encodeIfPresent(description, forKey: .description)
|
|
try container.encodeIfPresent(displayName, forKey: .displayName)
|
|
try container.encodeIfPresent(enableRemoteApp, forKey: .enableRemoteApp)
|
|
try container.encodeIfPresent(isPermanent, forKey: .isPermanent)
|
|
try container.encodeIfPresent(language, forKey: .language)
|
|
try container.encodeIfPresent(machineName, forKey: .machineName)
|
|
try container.encodeIfPresent(memSize, forKey: .memSize)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(os, forKey: .os)
|
|
try container.encodeIfPresent(owner, forKey: .owner)
|
|
try container.encodeIfPresent(patches, forKey: .patches)
|
|
try container.encodeIfPresent(privateIp, forKey: .privateIp)
|
|
try container.encodeIfPresent(publicIp, forKey: .publicIp)
|
|
try container.encodeIfPresent(remoteApps, forKey: .remoteApps)
|
|
try container.encodeIfPresent(remotePassword, forKey: .remotePassword)
|
|
try container.encodeIfPresent(remotePort, forKey: .remotePort)
|
|
try container.encodeIfPresent(remoteProtocol, forKey: .remoteProtocol)
|
|
try container.encodeIfPresent(remoteUsername, forKey: .remoteUsername)
|
|
try container.encodeIfPresent(services, forKey: .services)
|
|
try container.encodeIfPresent(size, forKey: .size)
|
|
try container.encodeIfPresent(tag, forKey: .tag)
|
|
try container.encodeIfPresent(type, forKey: .type)
|
|
try container.encodeIfPresent(updatedTime, forKey: .updatedTime)
|
|
}
|
|
}
|
|
|