mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
86 lines
3.6 KiB
Swift
86 lines
3.6 KiB
Swift
//
|
|
// CoverRow.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct CoverRow: 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?
|
|
/** Edition is which edition the clause list is taken from. */
|
|
public var edition: String?
|
|
/** Framework is the framework id — \"soc2\", \"iso27001\", \"nist80053\". */
|
|
public var framework: String?
|
|
/** Name is the published standard's name. */
|
|
public var name: String?
|
|
/** None is how many have nothing behind them. It stays visible rather than dropping out of the fraction. */
|
|
public var _none: Int64?
|
|
/** Note is what the clause list itself is scoped to, when the framework's catalog says something a count alone would misrepresent. */
|
|
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. Counting only the clauses some control happened to name would report 100% every time. */
|
|
public var total: Int64?
|
|
/** Unit is what ONE clause is — \"criterion\", \"control\", \"family\". A count without its unit is not a fact, so it travels with every number here. */
|
|
public var unit: String?
|
|
/** Units is the plural of Unit, for rendering a sentence. */
|
|
public var units: String?
|
|
|
|
public init(automated: Int64? = nil, edition: String? = nil, framework: String? = 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) {
|
|
self.automated = automated
|
|
self.edition = edition
|
|
self.framework = framework
|
|
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
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case automated
|
|
case edition
|
|
case framework
|
|
case name
|
|
case _none = "none"
|
|
case note
|
|
case partial
|
|
case publisher
|
|
case statement
|
|
case total
|
|
case unit
|
|
case units
|
|
}
|
|
|
|
// 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(edition, forKey: .edition)
|
|
try container.encodeIfPresent(framework, forKey: .framework)
|
|
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)
|
|
}
|
|
}
|
|
|