Files
zeekay 87d088ed73 Regenerate against the current cloud document
The lock sat at 574d1f1d while the product moved on. The team surface
stopped at rooms — no messages path, no way to open one — so anything
built on this client had to reach past it with its own HTTP calls, which
is the duplication a generated client exists to prevent.
2026-09-01 02:21:56 -07:00

51 lines
2.0 KiB
Swift

//
// SpaceHealth.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct SpaceHealth: Sendable, Codable, ParameterConvertible, Hashable {
/** Error is why the probe is degraded, in plain words. Absent when it is not. */
public var error: String?
/** Presign is whether upload and download URLs can be minted, which needs a PUBLIC endpoint on top of the credentials. False does not make the surface degraded — listing spaces, drives and folders still works, only the bytes cannot be reached. */
public var presign: Bool?
/** Ready is whether this deployment can serve drive and file operations at all: true only when object-store credentials are configured. */
public var ready: Bool?
/** Service names the subsystem this probe is for. Always \"space\". */
public var service: String?
/** Status is \"ok\" when the store is reachable in principle, \"degraded\" when it is not. It is the field to read; the HTTP status carries the same fact for a caller that only looks at the code. */
public var status: String?
public init(error: String? = nil, presign: Bool? = nil, ready: Bool? = nil, service: String? = nil, status: String? = nil) {
self.error = error
self.presign = presign
self.ready = ready
self.service = service
self.status = status
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case error
case presign
case ready
case service
case status
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(error, forKey: .error)
try container.encodeIfPresent(presign, forKey: .presign)
try container.encodeIfPresent(ready, forKey: .ready)
try container.encodeIfPresent(service, forKey: .service)
try container.encodeIfPresent(status, forKey: .status)
}
}