mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
66 lines
2.4 KiB
Swift
66 lines
2.4 KiB
Swift
//
|
|
// GithubRepoView.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct GithubRepoView: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** DefaultBranch is the repo's default branch at GitHub. */
|
|
public var defaultBranch: String?
|
|
/** FullName is GitHub's owner/name. */
|
|
public var fullName: String?
|
|
/** HTMLURL is the repo's page at GitHub. */
|
|
public var htmlUrl: String?
|
|
/** Imported is whether this repo has been mirrored into git.hanzo.ai. */
|
|
public var imported: Bool?
|
|
/** LastSyncedAt is the last successful mirror, RFC 3339 UTC. Absent if never. */
|
|
public var lastSyncedAt: String?
|
|
/** Name is the repository's short name within the installation. */
|
|
public var name: String?
|
|
/** Private is GitHub's visibility bit for the repo. */
|
|
public var _private: Bool?
|
|
/** SyncStatus is \"synced\", \"conflict\", or \"\" when the repo is not imported. */
|
|
public var syncStatus: String?
|
|
|
|
public init(defaultBranch: String? = nil, fullName: String? = nil, htmlUrl: String? = nil, imported: Bool? = nil, lastSyncedAt: String? = nil, name: String? = nil, _private: Bool? = nil, syncStatus: String? = nil) {
|
|
self.defaultBranch = defaultBranch
|
|
self.fullName = fullName
|
|
self.htmlUrl = htmlUrl
|
|
self.imported = imported
|
|
self.lastSyncedAt = lastSyncedAt
|
|
self.name = name
|
|
self._private = _private
|
|
self.syncStatus = syncStatus
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case defaultBranch
|
|
case fullName
|
|
case htmlUrl
|
|
case imported
|
|
case lastSyncedAt
|
|
case name
|
|
case _private = "private"
|
|
case syncStatus
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(defaultBranch, forKey: .defaultBranch)
|
|
try container.encodeIfPresent(fullName, forKey: .fullName)
|
|
try container.encodeIfPresent(htmlUrl, forKey: .htmlUrl)
|
|
try container.encodeIfPresent(imported, forKey: .imported)
|
|
try container.encodeIfPresent(lastSyncedAt, forKey: .lastSyncedAt)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(_private, forKey: ._private)
|
|
try container.encodeIfPresent(syncStatus, forKey: .syncStatus)
|
|
}
|
|
}
|
|
|