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.
71 lines
2.6 KiB
Swift
71 lines
2.6 KiB
Swift
//
|
|
// DomainView.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct DomainView: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** CreatedAt is the unix second the custom claim was made. */
|
|
public var createdAt: Int64?
|
|
/** Detail says why a claim is still pending, in the resolver's own words. */
|
|
public var detail: String?
|
|
/** Host is the hostname itself. */
|
|
public var host: String?
|
|
/** Kind is `default`, `subtree` or `custom` — how the org came to own it. */
|
|
public var kind: String?
|
|
/** Primary marks the app's permanent default host. */
|
|
public var primary: Bool?
|
|
/** Records are the DNS records to publish while a custom claim is pending. */
|
|
public var records: [Record]?
|
|
/** Status is `live`, `provisioning`, `pending_deploy` or `pending`, derived from the operator CR and never fabricated. */
|
|
public var status: String?
|
|
/** URL is the host as an HTTPS address. */
|
|
public var url: String?
|
|
/** Verified is whether ownership is settled — always true for a host the org structurally owns. */
|
|
public var verified: Bool?
|
|
|
|
public init(createdAt: Int64? = nil, detail: String? = nil, host: String? = nil, kind: String? = nil, primary: Bool? = nil, records: [Record]? = nil, status: String? = nil, url: String? = nil, verified: Bool? = nil) {
|
|
self.createdAt = createdAt
|
|
self.detail = detail
|
|
self.host = host
|
|
self.kind = kind
|
|
self.primary = primary
|
|
self.records = records
|
|
self.status = status
|
|
self.url = url
|
|
self.verified = verified
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case createdAt
|
|
case detail
|
|
case host
|
|
case kind
|
|
case primary
|
|
case records
|
|
case status
|
|
case url
|
|
case verified
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(detail, forKey: .detail)
|
|
try container.encodeIfPresent(host, forKey: .host)
|
|
try container.encodeIfPresent(kind, forKey: .kind)
|
|
try container.encodeIfPresent(primary, forKey: .primary)
|
|
try container.encodeIfPresent(records, forKey: .records)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
try container.encodeIfPresent(url, forKey: .url)
|
|
try container.encodeIfPresent(verified, forKey: .verified)
|
|
}
|
|
}
|
|
|