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

41 lines
1.2 KiB
Swift

//
// DriveList.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct DriveList: Sendable, Codable, ParameterConvertible, Hashable {
/** Drives are the drives at the space's root. */
public var drives: [DriveItem]?
/** Space is the space that was listed. */
public var space: String?
/** Total is how many drives came back. The listing is BOUNDED, so it is what came back and not a count of what the space holds. */
public var total: Int64?
public init(drives: [DriveItem]? = nil, space: String? = nil, total: Int64? = nil) {
self.drives = drives
self.space = space
self.total = total
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case drives
case space
case total
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(drives, forKey: .drives)
try container.encodeIfPresent(space, forKey: .space)
try container.encodeIfPresent(total, forKey: .total)
}
}