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

46 lines
1.5 KiB
Swift

//
// BusRequest.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct BusRequest: Sendable, Codable, ParameterConvertible, Hashable {
/** Data is the request payload, carried verbatim as UTF-8 text. */
public var data: String?
/** Headers are optional request headers, one value per name. */
public var headers: [String: String]?
/** Subject is the subject a responder listens on, in the org's namespace. */
public var subject: String?
/** TimeoutMs bounds the wait for a reply. 0 or less means the default of 5000; anything above 30000 is clamped to 30000. */
public var timeoutMs: Int64?
public init(data: String? = nil, headers: [String: String]? = nil, subject: String? = nil, timeoutMs: Int64? = nil) {
self.data = data
self.headers = headers
self.subject = subject
self.timeoutMs = timeoutMs
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case data
case headers
case subject
case timeoutMs
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(data, forKey: .data)
try container.encodeIfPresent(headers, forKey: .headers)
try container.encodeIfPresent(subject, forKey: .subject)
try container.encodeIfPresent(timeoutMs, forKey: .timeoutMs)
}
}