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.
86 lines
3.7 KiB
Swift
86 lines
3.7 KiB
Swift
//
|
|
// O11yO11yPodOnboarding.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yO11yPodOnboarding: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** ClusterName is the pod's cluster. */
|
|
public var clusterName: String?
|
|
/** HasClusterName says whether the cluster label is present. */
|
|
public var hasClusterName: Bool?
|
|
/** HasCronjobName says whether the cronjob label is present. */
|
|
public var hasCronjobName: Bool?
|
|
/** HasDaemonsetName says whether the daemonset label is present. */
|
|
public var hasDaemonsetName: Bool?
|
|
/** HasDeploymentName says whether the deployment label is present. */
|
|
public var hasDeploymentName: Bool?
|
|
/** HasJobName says whether the job label is present. */
|
|
public var hasJobName: Bool?
|
|
/** HasNamespaceName says whether the namespace label is present. */
|
|
public var hasNamespaceName: Bool?
|
|
/** HasNodeName says whether the node label is present. */
|
|
public var hasNodeName: Bool?
|
|
/** HasStatefulsetName says whether the statefulset label is present. */
|
|
public var hasStatefulsetName: Bool?
|
|
/** NamespaceName is the pod's namespace. */
|
|
public var namespaceName: String?
|
|
/** NodeName is the pod's node. */
|
|
public var nodeName: String?
|
|
/** PodName is the pod. */
|
|
public var podName: String?
|
|
|
|
public init(clusterName: String? = nil, hasClusterName: Bool? = nil, hasCronjobName: Bool? = nil, hasDaemonsetName: Bool? = nil, hasDeploymentName: Bool? = nil, hasJobName: Bool? = nil, hasNamespaceName: Bool? = nil, hasNodeName: Bool? = nil, hasStatefulsetName: Bool? = nil, namespaceName: String? = nil, nodeName: String? = nil, podName: String? = nil) {
|
|
self.clusterName = clusterName
|
|
self.hasClusterName = hasClusterName
|
|
self.hasCronjobName = hasCronjobName
|
|
self.hasDaemonsetName = hasDaemonsetName
|
|
self.hasDeploymentName = hasDeploymentName
|
|
self.hasJobName = hasJobName
|
|
self.hasNamespaceName = hasNamespaceName
|
|
self.hasNodeName = hasNodeName
|
|
self.hasStatefulsetName = hasStatefulsetName
|
|
self.namespaceName = namespaceName
|
|
self.nodeName = nodeName
|
|
self.podName = podName
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case clusterName
|
|
case hasClusterName
|
|
case hasCronjobName
|
|
case hasDaemonsetName
|
|
case hasDeploymentName
|
|
case hasJobName
|
|
case hasNamespaceName
|
|
case hasNodeName
|
|
case hasStatefulsetName
|
|
case namespaceName
|
|
case nodeName
|
|
case podName
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(clusterName, forKey: .clusterName)
|
|
try container.encodeIfPresent(hasClusterName, forKey: .hasClusterName)
|
|
try container.encodeIfPresent(hasCronjobName, forKey: .hasCronjobName)
|
|
try container.encodeIfPresent(hasDaemonsetName, forKey: .hasDaemonsetName)
|
|
try container.encodeIfPresent(hasDeploymentName, forKey: .hasDeploymentName)
|
|
try container.encodeIfPresent(hasJobName, forKey: .hasJobName)
|
|
try container.encodeIfPresent(hasNamespaceName, forKey: .hasNamespaceName)
|
|
try container.encodeIfPresent(hasNodeName, forKey: .hasNodeName)
|
|
try container.encodeIfPresent(hasStatefulsetName, forKey: .hasStatefulsetName)
|
|
try container.encodeIfPresent(namespaceName, forKey: .namespaceName)
|
|
try container.encodeIfPresent(nodeName, forKey: .nodeName)
|
|
try container.encodeIfPresent(podName, forKey: .podName)
|
|
}
|
|
}
|
|
|