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.
74 lines
2.8 KiB
Swift
74 lines
2.8 KiB
Swift
//
|
|
// O11yStatusMaintenance.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yStatusMaintenance: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** AffectedComponents is what the window touches. */
|
|
public var affectedComponents: [O11yStatusComponent]?
|
|
/** EndsAt is when it is expected to finish, RFC3339 UTC. */
|
|
public var endsAt: String?
|
|
/** ID is the window's handle. */
|
|
public var id: String?
|
|
/** LastUpdateAt is when the window was last revised, RFC3339 UTC. */
|
|
public var lastUpdateAt: String?
|
|
/** LastUpdateMessage is the text of that revision. */
|
|
public var lastUpdateMessage: String?
|
|
/** Name is its one-line headline. */
|
|
public var name: String?
|
|
/** StartsAt is when work begins, RFC3339 UTC. */
|
|
public var startsAt: String?
|
|
/** Status is where the window is in its life, in the client's own vocabulary. */
|
|
public var status: String?
|
|
/** URL points at the human status page, as every link in this document does. */
|
|
public var url: String?
|
|
|
|
public init(affectedComponents: [O11yStatusComponent]? = nil, endsAt: String? = nil, id: String? = nil, lastUpdateAt: String? = nil, lastUpdateMessage: String? = nil, name: String? = nil, startsAt: String? = nil, status: String? = nil, url: String? = nil) {
|
|
self.affectedComponents = affectedComponents
|
|
self.endsAt = endsAt
|
|
self.id = id
|
|
self.lastUpdateAt = lastUpdateAt
|
|
self.lastUpdateMessage = lastUpdateMessage
|
|
self.name = name
|
|
self.startsAt = startsAt
|
|
self.status = status
|
|
self.url = url
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case affectedComponents = "affected_components"
|
|
case endsAt = "ends_at"
|
|
case id
|
|
case lastUpdateAt = "last_update_at"
|
|
case lastUpdateMessage = "last_update_message"
|
|
case name
|
|
case startsAt = "starts_at"
|
|
case status
|
|
case url
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(affectedComponents, forKey: .affectedComponents)
|
|
try container.encodeIfPresent(endsAt, forKey: .endsAt)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(lastUpdateAt, forKey: .lastUpdateAt)
|
|
try container.encodeIfPresent(lastUpdateMessage, forKey: .lastUpdateMessage)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(startsAt, forKey: .startsAt)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
try container.encodeIfPresent(url, forKey: .url)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension O11yStatusMaintenance: Identifiable {}
|