Files
zeekay b0db427c79 regenerate from cloud 939b09d4
The projection was 113 commits behind the document it claims to describe, and
`generate.py --all --check` reported every one of the thirteen clients DRIFTED —
the same +19 models in each, because they all fell behind the same emission.

Regenerated in place from hanzo-inc/cloud openapi.yaml at 939b09d4
(sha256 087024f6…), which is the only description of this API that cannot name a
route the binary does not serve. `--check` is clean across all thirteen after.

.spec-lock moved with the code. The generator READS that file and never writes
it — hanzoai/ci`s lane does — so a hand run leaves every lock naming the previous
document. A lock that disagrees with the tree beside it is worse than no lock:
the next `--check` without `--spec` fetches what production serves, compares it
to a digest that was already wrong, and reports drift that is really staleness.
2026-08-24 23:32:45 -07:00

41 lines
1.6 KiB
Swift

//
// AppliedResource.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct AppliedResource: Sendable, Codable, ParameterConvertible, Hashable {
/** Message is the engine's own sentence about this object — the apiserver's refusal on a failure, and typically empty on success. It is for a human reading a failed run, not a value to branch on. */
public var message: String?
/** Resource identifies the object as group/version/kind/namespace/name, the engine's own key. It is stable across runs, so two reports can be diffed on it. */
public var resource: String?
/** Status is what happened to this object, from the engine's closed vocabulary: `Synced` (applied), `Pruned` (deleted because the source no longer declares it), `SyncFailed` (refused — read Message) and `PruneSkipped` (deletion was declined). It is the per-object detail behind the report's counts. */
public var status: String?
public init(message: String? = nil, resource: String? = nil, status: String? = nil) {
self.message = message
self.resource = resource
self.status = status
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case message
case resource
case status
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(message, forKey: .message)
try container.encodeIfPresent(resource, forKey: .resource)
try container.encodeIfPresent(status, forKey: .status)
}
}