Files
swift-sdk/Sources/Hanzo/Models/ProjectsDeployStart.swift
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

36 lines
1.6 KiB
Swift

//
// ProjectsDeployStart.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ProjectsDeployStart: Sendable, Codable, ParameterConvertible, Hashable {
/** Commit is the git sha this build was produced from, recorded on the deployment so a released site can be traced back to its source. Optional. It is the ONLY field here, and deliberately: the predecessor also accepted `source` and `branch`. `source` was the Content-Type discriminator this split removed. `branch` was accepted and DISCARDED — there is no branch column on a deployment, and the lifecycle event derives the branch from the project's own linked one — so declaring it would publish a settable field that does nothing into the document, every generated SDK and the MCP input schema. A field that is read by nothing is not described as if it were. `url:\"-\"` because zip binds the query string OVER a decoded body, so without it a `?commit=` the caller never sent would outrank the one it did. */
public var commit: String?
/** Slug is the site to deploy, from the path. */
public var slug: String?
public init(commit: String? = nil, slug: String? = nil) {
self.commit = commit
self.slug = slug
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case commit
case slug
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(commit, forKey: .commit)
try container.encodeIfPresent(slug, forKey: .slug)
}
}