Files
swift-sdk/Sources/Hanzo/Models/ForgeJobWorkflowJob.swift
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

45 lines
1.2 KiB
Swift

//
// ForgeJobWorkflowJob.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ForgeJobWorkflowJob: Sendable, Codable, ParameterConvertible, Hashable {
public var id: Int?
public var labels: [String]?
public var name: String?
public var runId: Int?
public init(id: Int? = nil, labels: [String]? = nil, name: String? = nil, runId: Int? = nil) {
self.id = id
self.labels = labels
self.name = name
self.runId = runId
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case id
case labels
case name
case runId = "run_id"
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(labels, forKey: .labels)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(runId, forKey: .runId)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension ForgeJobWorkflowJob: Identifiable {}