mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
51 lines
1.6 KiB
Swift
51 lines
1.6 KiB
Swift
//
|
||
// NextIn.swift
|
||
//
|
||
// Generated by openapi-generator
|
||
// https://openapi-generator.tech
|
||
//
|
||
|
||
import Foundation
|
||
|
||
public struct NextIn: Sendable, Codable, ParameterConvertible, Hashable {
|
||
|
||
/** Batch is how many messages to pull (1–1000, default 1). */
|
||
public var batch: Int64?
|
||
/** Expires is how long to wait for messages, e.g. \"5s\" (default \"30s\", max \"60s\"). */
|
||
public var expires: String?
|
||
/** Name is the consumer name, from the path. */
|
||
public var name: String?
|
||
/** NoWait answers immediately with whatever is available instead of waiting. */
|
||
public var noWait: Bool?
|
||
/** Stream is the stream name, from the path. */
|
||
public var stream: String?
|
||
|
||
public init(batch: Int64? = nil, expires: String? = nil, name: String? = nil, noWait: Bool? = nil, stream: String? = nil) {
|
||
self.batch = batch
|
||
self.expires = expires
|
||
self.name = name
|
||
self.noWait = noWait
|
||
self.stream = stream
|
||
}
|
||
|
||
public enum CodingKeys: String, CodingKey, CaseIterable {
|
||
case batch
|
||
case expires
|
||
case name
|
||
case noWait = "no_wait"
|
||
case stream
|
||
}
|
||
|
||
// Encodable protocol methods
|
||
|
||
public func encode(to encoder: Encoder) throws {
|
||
var container = encoder.container(keyedBy: CodingKeys.self)
|
||
try container.encodeIfPresent(batch, forKey: .batch)
|
||
try container.encodeIfPresent(expires, forKey: .expires)
|
||
try container.encodeIfPresent(name, forKey: .name)
|
||
try container.encodeIfPresent(noWait, forKey: .noWait)
|
||
try container.encodeIfPresent(stream, forKey: .stream)
|
||
}
|
||
}
|
||
|