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

101 lines
4.0 KiB
Swift

//
// ClauseCoverage.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ClauseCoverage: Sendable, Codable, ParameterConvertible, Hashable {
/** Automated is how many clauses have an automated control behind them that something can fail on behalf of. */
public var automated: Int64?
/** Clauses is every clause the standard publishes, with what stands behind it. */
public var clauses: [ClauseRow]?
/** Edition is which edition this clause list is taken from. */
public var edition: String?
/** Framework is the framework id — \"soc2\", \"iso27001\", \"nist80053\". */
public var framework: String?
/** Generated is when this was computed, unix milliseconds. */
public var generated: Int64?
/** Name is the published standard's name. */
public var name: String?
/** None is how many have nothing behind them. */
public var _none: Int64?
/** Note is what this clause list is scoped to, when a count alone would misrepresent it. */
public var note: String?
/** Partial is how many are answered in part. */
public var partial: Int64?
/** Publisher is who publishes it — AICPA, ISO/IEC, NIST. */
public var publisher: String?
/** Statement is the counts as one sentence, carrying the unit. */
public var statement: String?
/** Total is the framework's WHOLE published clause list — the denominator. */
public var total: Int64?
/** Unit is what ONE clause is — \"criterion\", \"control\", \"family\". */
public var unit: String?
/** Units is the plural of Unit, for rendering a sentence. */
public var units: String?
/** Version is the embedded inventory's version. */
public var version: String?
public init(automated: Int64? = nil, clauses: [ClauseRow]? = nil, edition: String? = nil, framework: String? = nil, generated: Int64? = nil, name: String? = nil, _none: Int64? = nil, note: String? = nil, partial: Int64? = nil, publisher: String? = nil, statement: String? = nil, total: Int64? = nil, unit: String? = nil, units: String? = nil, version: String? = nil) {
self.automated = automated
self.clauses = clauses
self.edition = edition
self.framework = framework
self.generated = generated
self.name = name
self._none = _none
self.note = note
self.partial = partial
self.publisher = publisher
self.statement = statement
self.total = total
self.unit = unit
self.units = units
self.version = version
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case automated
case clauses
case edition
case framework
case generated
case name
case _none = "none"
case note
case partial
case publisher
case statement
case total
case unit
case units
case version
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(automated, forKey: .automated)
try container.encodeIfPresent(clauses, forKey: .clauses)
try container.encodeIfPresent(edition, forKey: .edition)
try container.encodeIfPresent(framework, forKey: .framework)
try container.encodeIfPresent(generated, forKey: .generated)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(_none, forKey: ._none)
try container.encodeIfPresent(note, forKey: .note)
try container.encodeIfPresent(partial, forKey: .partial)
try container.encodeIfPresent(publisher, forKey: .publisher)
try container.encodeIfPresent(statement, forKey: .statement)
try container.encodeIfPresent(total, forKey: .total)
try container.encodeIfPresent(unit, forKey: .unit)
try container.encodeIfPresent(units, forKey: .units)
try container.encodeIfPresent(version, forKey: .version)
}
}