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

59 lines
2.1 KiB
Swift

//
// ExecRequest.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ExecRequest: Sendable, Codable, ParameterConvertible, Hashable {
/** Argv is the command as an argument vector, which is the honest form: it cannot be word-split by accident. Send this OR Command, not both. */
public var argv: [String]?
/** Command is a shell line, for a caller that holds one. It is a convenience over Argv and is the only input that ever reaches a shell. */
public var command: String?
/** Dir is the working directory to run in. Empty runs in the class's own workdir — /mnt/data for exec, /work for dev. */
public var dir: String?
/** ID is the sandbox to run in, from the path. */
public var id: String?
/** Stdin is fed to the command on its standard input. */
public var stdin: String?
/** TimeoutSec bounds the run in seconds. Zero takes the default. */
public var timeoutSec: Int64?
public init(argv: [String]? = nil, command: String? = nil, dir: String? = nil, id: String? = nil, stdin: String? = nil, timeoutSec: Int64? = nil) {
self.argv = argv
self.command = command
self.dir = dir
self.id = id
self.stdin = stdin
self.timeoutSec = timeoutSec
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case argv
case command
case dir
case id
case stdin
case timeoutSec
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(argv, forKey: .argv)
try container.encodeIfPresent(command, forKey: .command)
try container.encodeIfPresent(dir, forKey: .dir)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(stdin, forKey: .stdin)
try container.encodeIfPresent(timeoutSec, forKey: .timeoutSec)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension ExecRequest: Identifiable {}