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.9 KiB
Swift

//
// ObjectItem.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ObjectItem: Sendable, Codable, ParameterConvertible, Hashable {
/** ETag is the store's entity tag for the bytes currently at this key, 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 key to learn whether the object changed; absent for a folder entry, and for an object the store reports none for. */
public var etag: String?
/** true for a folder (common prefix) */
public var isDir: Bool?
/** key RELATIVE to the requested prefix */
public var key: String?
/** unix seconds (0 for a folder) */
public var lastModified: Int64?
/** bytes (0 for a folder) */
public var size: Int64?
public init(etag: String? = nil, isDir: Bool? = nil, key: String? = nil, lastModified: Int64? = nil, size: Int64? = nil) {
self.etag = etag
self.isDir = isDir
self.key = key
self.lastModified = lastModified
self.size = size
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case etag
case isDir
case key
case lastModified
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(isDir, forKey: .isDir)
try container.encodeIfPresent(key, forKey: .key)
try container.encodeIfPresent(lastModified, forKey: .lastModified)
try container.encodeIfPresent(size, forKey: .size)
}
}