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.
78 lines
2.5 KiB
Swift
78 lines
2.5 KiB
Swift
//
|
|
// Declared.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct Declared: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var application: String?
|
|
public var automated: Bool?
|
|
public var cd: CDApp?
|
|
public var digest: String?
|
|
public var env: [DeclareEnv]?
|
|
public var hosts: [String]?
|
|
public var name: String?
|
|
public var org: String?
|
|
public var path: String?
|
|
public var project: String?
|
|
public var replicas: Int64?
|
|
public var repository: String?
|
|
public var tag: String?
|
|
|
|
public init(application: String? = nil, automated: Bool? = nil, cd: CDApp? = nil, digest: String? = nil, env: [DeclareEnv]? = nil, hosts: [String]? = nil, name: String? = nil, org: String? = nil, path: String? = nil, project: String? = nil, replicas: Int64? = nil, repository: String? = nil, tag: String? = nil) {
|
|
self.application = application
|
|
self.automated = automated
|
|
self.cd = cd
|
|
self.digest = digest
|
|
self.env = env
|
|
self.hosts = hosts
|
|
self.name = name
|
|
self.org = org
|
|
self.path = path
|
|
self.project = project
|
|
self.replicas = replicas
|
|
self.repository = repository
|
|
self.tag = tag
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case application
|
|
case automated
|
|
case cd
|
|
case digest
|
|
case env
|
|
case hosts
|
|
case name
|
|
case org
|
|
case path
|
|
case project
|
|
case replicas
|
|
case repository
|
|
case tag
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(application, forKey: .application)
|
|
try container.encodeIfPresent(automated, forKey: .automated)
|
|
try container.encodeIfPresent(cd, forKey: .cd)
|
|
try container.encodeIfPresent(digest, forKey: .digest)
|
|
try container.encodeIfPresent(env, forKey: .env)
|
|
try container.encodeIfPresent(hosts, forKey: .hosts)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(org, forKey: .org)
|
|
try container.encodeIfPresent(path, forKey: .path)
|
|
try container.encodeIfPresent(project, forKey: .project)
|
|
try container.encodeIfPresent(replicas, forKey: .replicas)
|
|
try container.encodeIfPresent(repository, forKey: .repository)
|
|
try container.encodeIfPresent(tag, forKey: .tag)
|
|
}
|
|
}
|
|
|