Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

46 lines
1.7 KiB
Swift

//
// EnableResp.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct EnableResp: Sendable, Codable, ParameterConvertible, Hashable {
/** AccountToken is the org's own tunnel-account credential. Treat it as a secret: it is what the CLI enables an environment with. */
public var accountToken: String?
/** Controller is the public controller endpoint the CLI enables against. */
public var controller: String?
/** Namespace is the public frontend a share is published into, when the deployment names one. */
public var namespace: String?
/** URLTemplate is the shape a share token expands to, so the CLI can print the resulting URL without asking again. */
public var urlTemplate: String?
public init(accountToken: String? = nil, controller: String? = nil, namespace: String? = nil, urlTemplate: String? = nil) {
self.accountToken = accountToken
self.controller = controller
self.namespace = namespace
self.urlTemplate = urlTemplate
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case accountToken
case controller
case namespace
case urlTemplate
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(accountToken, forKey: .accountToken)
try container.encodeIfPresent(controller, forKey: .controller)
try container.encodeIfPresent(namespace, forKey: .namespace)
try container.encodeIfPresent(urlTemplate, forKey: .urlTemplate)
}
}