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

54 lines
2.1 KiB
Swift

//
// GitOpsDeploy.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct GitOpsDeploy: Sendable, Codable, ParameterConvertible, Hashable {
/** Automated is whether CD started this deploy itself, from its own polling of the tracked git ref (initiatedBy.automated), rather than someone asking for it. */
public var automated: Bool?
/** DeployedAt is when the apply finished, RFC 3339. Absent when CD recorded none. */
public var deployedAt: String?
/** ID is CD's own sequence number for this deploy (status.history[].id). It increases with every applied revision, so the largest id in `history` is the most recent deploy — which is the first entry, since the list is reversed. */
public var id: Int64?
/** Revision is the git commit this deploy applied, as CD recorded it. */
public var revision: String?
/** StartedAt is when CD began applying the revision (deployStartedAt), RFC 3339. Absent when CD recorded none. */
public var startedAt: String?
public init(automated: Bool? = nil, deployedAt: String? = nil, id: Int64? = nil, revision: String? = nil, startedAt: String? = nil) {
self.automated = automated
self.deployedAt = deployedAt
self.id = id
self.revision = revision
self.startedAt = startedAt
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case automated
case deployedAt
case id
case revision
case startedAt
}
// 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(deployedAt, forKey: .deployedAt)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(revision, forKey: .revision)
try container.encodeIfPresent(startedAt, forKey: .startedAt)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension GitOpsDeploy: Identifiable {}