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

66 lines
2.5 KiB
Swift

//
// ControlList.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ControlList: Sendable, Codable, ParameterConvertible, Hashable {
/** Absent is how many the organization does not have. Each still names the clause it would satisfy, and none of them moves a coverage number. */
public var absent: Int64?
/** Automated is how many run with nobody in the loop. */
public var automated: Int64?
/** Controls is every control, opaque because the organization owns its shape. */
public var controls: [JSONValue]?
/** Partial is how many run but do not cover their whole claim. */
public var partial: Int64?
/** Statement is the counts as one sentence, safe to quote. */
public var statement: String?
/** Total is how many controls this organization publishes. */
public var total: Int64?
/** Unverified is how many rest on somebody having read the source rather than on a test or an audit row. */
public var unverified: Int64?
/** Version is the embedded inventory's version. */
public var version: String?
public init(absent: Int64? = nil, automated: Int64? = nil, controls: [JSONValue]? = nil, partial: Int64? = nil, statement: String? = nil, total: Int64? = nil, unverified: Int64? = nil, version: String? = nil) {
self.absent = absent
self.automated = automated
self.controls = controls
self.partial = partial
self.statement = statement
self.total = total
self.unverified = unverified
self.version = version
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case absent
case automated
case controls
case partial
case statement
case total
case unverified
case version
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(absent, forKey: .absent)
try container.encodeIfPresent(automated, forKey: .automated)
try container.encodeIfPresent(controls, forKey: .controls)
try container.encodeIfPresent(partial, forKey: .partial)
try container.encodeIfPresent(statement, forKey: .statement)
try container.encodeIfPresent(total, forKey: .total)
try container.encodeIfPresent(unverified, forKey: .unverified)
try container.encodeIfPresent(version, forKey: .version)
}
}