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

86 lines
4.4 KiB
Swift

//
// AgentBinding.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct AgentBinding: Sendable, Codable, ParameterConvertible, Hashable {
/** AgentName is the cloud Agent (/v1/agent) this machine runs — the agent a message to the bot is actually run against. It is the one field that decides what the bot DOES. */
public var agentName: String?
/** BotVersion pins the @hanzo/bot runtime version the machine runs. Empty means the machine took the default in force when it was bound. */
public var botVersion: String?
/** CreatedTime is when the binding was first made. */
public var createdTime: String?
/** MachineId is the bound machine as vm addresses it, owner-qualified (\"<org>/<machine>\"). The unqualified half is what this surface's :id routes take. */
public var machineId: String?
/** Message is vm's human-readable detail on Status (\"machine provisioning; @hanzo/bot runtime not yet confirmed\") — the reason behind the state, not a second state. */
public var message: String?
/** Name is the binding's own key, which is the machine's id: a machine hosts at most one agent, so the binding is named for it. This is the key a bots list joins bindings onto machines by. */
public var name: String?
/** Org is the Hanzo tenant the binding belongs to. */
public var org: String?
/** Owner is the tenant vm filed the binding under, resolved from the ?owner it was called with — which is the caller's validated org and never a body field. */
public var owner: String?
/** Provider is the cloud the bound machine runs on, carried here so a bindings list says where each bot lives without a second read per machine. */
public var provider: String?
/** PublicIp is the bound machine's public address as vm recorded it on the binding. Empty while the machine has none yet. */
public var publicIp: String?
/** Status is the binding's lifecycle in VM's OWN words — \"Pending\" while the machine provisions and the runtime is unconfirmed, \"running\" once vm has confirmed it. The vocabulary is vm's and passes through unmapped, which is why its capitalization does not match the machine states beside it, and it is vm's reconciled reading rather than anything asserted here. */
public var status: String?
/** UpdatedTime is when vm last reconciled it — the age of Status. */
public var updatedTime: String?
public init(agentName: String? = nil, botVersion: String? = nil, createdTime: String? = nil, machineId: String? = nil, message: String? = nil, name: String? = nil, org: String? = nil, owner: String? = nil, provider: String? = nil, publicIp: String? = nil, status: String? = nil, updatedTime: String? = nil) {
self.agentName = agentName
self.botVersion = botVersion
self.createdTime = createdTime
self.machineId = machineId
self.message = message
self.name = name
self.org = org
self.owner = owner
self.provider = provider
self.publicIp = publicIp
self.status = status
self.updatedTime = updatedTime
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case agentName
case botVersion
case createdTime
case machineId
case message
case name
case org
case owner
case provider
case publicIp
case status
case updatedTime
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(agentName, forKey: .agentName)
try container.encodeIfPresent(botVersion, forKey: .botVersion)
try container.encodeIfPresent(createdTime, forKey: .createdTime)
try container.encodeIfPresent(machineId, forKey: .machineId)
try container.encodeIfPresent(message, forKey: .message)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(org, forKey: .org)
try container.encodeIfPresent(owner, forKey: .owner)
try container.encodeIfPresent(provider, forKey: .provider)
try container.encodeIfPresent(publicIp, forKey: .publicIp)
try container.encodeIfPresent(status, forKey: .status)
try container.encodeIfPresent(updatedTime, forKey: .updatedTime)
}
}