Files
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

66 lines
2.4 KiB
Swift

//
// GithubPagesView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct GithubPagesView: Sendable, Codable, ParameterConvertible, Hashable {
/** BuildType is the builder in use: \"legacy\" (branch source) or \"workflow\". */
public var buildType: String?
/** CNAME is the custom domain, absent when none is set. */
public var cname: String?
/** Custom404 is whether the repo ships its own 404 page. */
public var custom404: Bool?
/** HTTPSEnforced is GitHub's enforce-HTTPS bit. */
public var httpsEnforced: Bool?
/** Repo is the repository the site belongs to. */
public var repo: String?
/** Source is the branch + path the site builds from. Absent under \"workflow\". */
public var source: GithubPagesSource?
/** Status is GitHub's build state: \"built\", \"building\" or \"errored\". Absent before the first build. */
public var status: String?
/** URL is the live site (GitHub's html_url). */
public var url: String?
public init(buildType: String? = nil, cname: String? = nil, custom404: Bool? = nil, httpsEnforced: Bool? = nil, repo: String? = nil, source: GithubPagesSource? = nil, status: String? = nil, url: String? = nil) {
self.buildType = buildType
self.cname = cname
self.custom404 = custom404
self.httpsEnforced = httpsEnforced
self.repo = repo
self.source = source
self.status = status
self.url = url
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case buildType
case cname
case custom404
case httpsEnforced
case repo
case source
case status
case url
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(buildType, forKey: .buildType)
try container.encodeIfPresent(cname, forKey: .cname)
try container.encodeIfPresent(custom404, forKey: .custom404)
try container.encodeIfPresent(httpsEnforced, forKey: .httpsEnforced)
try container.encodeIfPresent(repo, forKey: .repo)
try container.encodeIfPresent(source, forKey: .source)
try container.encodeIfPresent(status, forKey: .status)
try container.encodeIfPresent(url, forKey: .url)
}
}