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
2.0 KiB
Swift

//
// FileItem.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct FileItem: Sendable, Codable, ParameterConvertible, Hashable {
/** ETag is the store's entity tag for the bytes currently at this name, with the quotes the store wraps it in stripped. It is an opaque VERSION and not a checksum to verify against: a single-part upload's tag happens to be the MD5 of the content and a multipart upload's is not, and nothing here says which this was. Compare two reads of one file to learn whether it changed; absent for a folder, and for a file the store reports none for. */
public var etag: String?
/** Folder is true for a folder entry, which is emergent from \"/\" in the names beneath it rather than a thing that was created. */
public var isFolder: Bool?
/** ModifiedAt is when the file was last written, in unix seconds, and 0 for a folder. */
public var modifiedAt: Int64?
/** Name is the entry's name RELATIVE to the folder that was listed. */
public var name: String?
/** Size is the file's size in bytes, and 0 for a folder. */
public var size: Int64?
public init(etag: String? = nil, isFolder: Bool? = nil, modifiedAt: Int64? = nil, name: String? = nil, size: Int64? = nil) {
self.etag = etag
self.isFolder = isFolder
self.modifiedAt = modifiedAt
self.name = name
self.size = size
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case etag
case isFolder
case modifiedAt
case name
case size
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(etag, forKey: .etag)
try container.encodeIfPresent(isFolder, forKey: .isFolder)
try container.encodeIfPresent(modifiedAt, forKey: .modifiedAt)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(size, forKey: .size)
}
}