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

46 lines
1.4 KiB
Swift

//
// TrustCoverage.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct TrustCoverage: Sendable, Codable, ParameterConvertible, Hashable {
/** Controls is how the controls stand, independent of any framework. */
public var controls: TrustTally?
/** Frameworks is the per-framework counts. */
public var frameworks: [CoverRow]?
/** Generated is when this was computed, unix milliseconds. */
public var generated: Int64?
/** Version is the embedded inventory's version. */
public var version: String?
public init(controls: TrustTally? = nil, frameworks: [CoverRow]? = nil, generated: Int64? = nil, version: String? = nil) {
self.controls = controls
self.frameworks = frameworks
self.generated = generated
self.version = version
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case controls
case frameworks
case generated
case version
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(controls, forKey: .controls)
try container.encodeIfPresent(frameworks, forKey: .frameworks)
try container.encodeIfPresent(generated, forKey: .generated)
try container.encodeIfPresent(version, forKey: .version)
}
}