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.
88 lines
3.5 KiB
Swift
88 lines
3.5 KiB
Swift
//
|
|
// O11yTLSConfig.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yTLSConfig: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Text of the CA cert to use for the targets. */
|
|
public var ca: String?
|
|
/** The CA cert to use for the targets. */
|
|
public var caFile: String?
|
|
/** CARef is the name of the secret within the secret manager to use as the CA cert for the targets. */
|
|
public var caRef: String?
|
|
/** Text of the client cert file for the targets. */
|
|
public var cert: String?
|
|
/** The client cert file for the targets. */
|
|
public var certFile: String?
|
|
/** CertRef is the name of the secret within the secret manager to use as the client cert for the targets. */
|
|
public var certRef: String?
|
|
/** Disable target certificate validation. */
|
|
public var insecureSkipVerify: Bool?
|
|
public var key: JSONValue?
|
|
/** The client key file for the targets. */
|
|
public var keyFile: String?
|
|
/** KeyRef is the name of the secret within the secret manager to use as the client key for the targets. */
|
|
public var keyRef: String?
|
|
public var maxVersion: JSONValue?
|
|
public var minVersion: JSONValue?
|
|
/** Used to verify the hostname for the targets. */
|
|
public var serverName: String?
|
|
|
|
public init(ca: String? = nil, caFile: String? = nil, caRef: String? = nil, cert: String? = nil, certFile: String? = nil, certRef: String? = nil, insecureSkipVerify: Bool? = nil, key: JSONValue? = nil, keyFile: String? = nil, keyRef: String? = nil, maxVersion: JSONValue? = nil, minVersion: JSONValue? = nil, serverName: String? = nil) {
|
|
self.ca = ca
|
|
self.caFile = caFile
|
|
self.caRef = caRef
|
|
self.cert = cert
|
|
self.certFile = certFile
|
|
self.certRef = certRef
|
|
self.insecureSkipVerify = insecureSkipVerify
|
|
self.key = key
|
|
self.keyFile = keyFile
|
|
self.keyRef = keyRef
|
|
self.maxVersion = maxVersion
|
|
self.minVersion = minVersion
|
|
self.serverName = serverName
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case ca
|
|
case caFile = "ca_file"
|
|
case caRef = "ca_ref"
|
|
case cert
|
|
case certFile = "cert_file"
|
|
case certRef = "cert_ref"
|
|
case insecureSkipVerify = "insecure_skip_verify"
|
|
case key
|
|
case keyFile = "key_file"
|
|
case keyRef = "key_ref"
|
|
case maxVersion = "max_version"
|
|
case minVersion = "min_version"
|
|
case serverName = "server_name"
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(ca, forKey: .ca)
|
|
try container.encodeIfPresent(caFile, forKey: .caFile)
|
|
try container.encodeIfPresent(caRef, forKey: .caRef)
|
|
try container.encodeIfPresent(cert, forKey: .cert)
|
|
try container.encodeIfPresent(certFile, forKey: .certFile)
|
|
try container.encodeIfPresent(certRef, forKey: .certRef)
|
|
try container.encodeIfPresent(insecureSkipVerify, forKey: .insecureSkipVerify)
|
|
try container.encodeIfPresent(key, forKey: .key)
|
|
try container.encodeIfPresent(keyFile, forKey: .keyFile)
|
|
try container.encodeIfPresent(keyRef, forKey: .keyRef)
|
|
try container.encodeIfPresent(maxVersion, forKey: .maxVersion)
|
|
try container.encodeIfPresent(minVersion, forKey: .minVersion)
|
|
try container.encodeIfPresent(serverName, forKey: .serverName)
|
|
}
|
|
}
|
|
|