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

51 lines
1.6 KiB
Swift
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//
// 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)
}
}