mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
51 lines
1.7 KiB
Swift
51 lines
1.7 KiB
Swift
//
|
|
// ProjectsSite.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ProjectsSite: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Name is the site's display name. */
|
|
public var name: String?
|
|
/** Slug is the site's handle — also the label of the host it serves at. */
|
|
public var slug: String?
|
|
/** Status is the project's state behind the site — whether it is serving, still building, or failed its last build. A site that is listed is not necessarily one that answers. */
|
|
public var status: String?
|
|
/** UpdatedAt is when the project last changed, as Unix seconds. */
|
|
public var updatedAt: Int64?
|
|
/** URL is the pretty address readers use, not the object-store path behind it. */
|
|
public var url: String?
|
|
|
|
public init(name: String? = nil, slug: String? = nil, status: String? = nil, updatedAt: Int64? = nil, url: String? = nil) {
|
|
self.name = name
|
|
self.slug = slug
|
|
self.status = status
|
|
self.updatedAt = updatedAt
|
|
self.url = url
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case name
|
|
case slug
|
|
case status
|
|
case updatedAt
|
|
case url
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(slug, forKey: .slug)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
try container.encodeIfPresent(url, forKey: .url)
|
|
}
|
|
}
|
|
|