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

//
// KmsHealth.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct KmsHealth: Sendable, Codable, ParameterConvertible, Hashable {
/** Error is the honest reason readiness is false: no in-process KMS client, or no master key. Absent when ready. */
public var error: String?
/** Ready is whether a secret operation would actually succeed right now. These are exactly the two states in which the secret operations refuse. */
public var ready: Bool?
/** Service names the subsystem answering, `kms`. */
public var service: String?
/** Signing reports whether signing keys are configured. Absent when there is no in-process client to ask. */
public var signing: Bool?
/** Status is `ok` or `degraded`, the one-word form of Ready. */
public var status: String?
public init(error: String? = nil, ready: Bool? = nil, service: String? = nil, signing: Bool? = nil, status: String? = nil) {
self.error = error
self.ready = ready
self.service = service
self.signing = signing
self.status = status
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case error
case ready
case service
case signing
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(ready, forKey: .ready)
try container.encodeIfPresent(service, forKey: .service)
try container.encodeIfPresent(signing, forKey: .signing)
try container.encodeIfPresent(status, forKey: .status)
}
}