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

36 lines
1.2 KiB
Swift

//
// Wrote.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Wrote: Sendable, Codable, ParameterConvertible, Hashable {
/** Bytes is how many bytes the file now holds. A write REPLACES the file, so this is its whole length and not an amount appended, and 0 is a legitimate answer: a WriteIn with no Data truncates the file to nothing. */
public var bytes: Int64?
/** Path is where the bytes actually landed: the caller's path resolved against the sandbox's working directory (Leased.Workdir), which is what a later read or a shell line inside the sandbox has to name. */
public var path: String?
public init(bytes: Int64? = nil, path: String? = nil) {
self.bytes = bytes
self.path = path
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case bytes
case path
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(bytes, forKey: .bytes)
try container.encodeIfPresent(path, forKey: .path)
}
}