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

56 lines
2.3 KiB
Swift

//
// DeployRecord.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct DeployRecord: Sendable, Codable, ParameterConvertible, Hashable {
/** Created reports whether this call recorded a new attribution edge (201) or found an existing one (200). Absent when nothing was recorded. */
public var created: Bool?
/** CreatedAt is when the edge was first recorded, in unix seconds. Absent when nothing was recorded. */
public var createdAt: Int64?
/** DeployID is the attribution edge's handle. Absent when nothing was recorded. */
public var deployId: String?
/** Reason says why nothing was attributed. Present only when recorded is false. */
public var reason: String?
/** Recorded reports whether the deploy was attributed to an author at all. False is the ordinary answer for a project built from no repository, or from one no author has verified — never an error, so a deploy path can fire this unconditionally. */
public var recorded: Bool?
/** Self reports that the deploying org IS the author's org. Such a deploy is recorded for provenance but excluded from accrual. Absent when nothing was recorded. */
public var _self: Bool?
public init(created: Bool? = nil, createdAt: Int64? = nil, deployId: String? = nil, reason: String? = nil, recorded: Bool? = nil, _self: Bool? = nil) {
self.created = created
self.createdAt = createdAt
self.deployId = deployId
self.reason = reason
self.recorded = recorded
self._self = _self
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case created
case createdAt
case deployId
case reason
case recorded
case _self = "self"
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(created, forKey: .created)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(deployId, forKey: .deployId)
try container.encodeIfPresent(reason, forKey: .reason)
try container.encodeIfPresent(recorded, forKey: .recorded)
try container.encodeIfPresent(_self, forKey: ._self)
}
}