Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

51 lines
2.3 KiB
Swift

//
// S3Health.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct S3Health: 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 presigned 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 and creating still work. NOT omitempty. On the ready path the untyped probe wrote this key unconditionally, and omitting a false one would turn what a healthy-but-presignless deployment reports from \"presign: false\" into silence — two different facts. The degraded body now carries it too, which is the one delta of typing this: the probe answers ONE shape under both of its statuses, which is what makes a single declared Out honest. */
public var presign: Bool?
/** Ready is whether this deployment can serve object operations at all: true only when admin credentials are configured. */
public var ready: Bool?
/** Service names the subsystem this probe is for. Always \"s3\". */
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)
}
}