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.
100 lines
4.4 KiB
Swift
100 lines
4.4 KiB
Swift
//
|
|
// O11yEmailConfig.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yEmailConfig: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var notifierConfig: O11yNotifierConfig?
|
|
public var authIdentity: String?
|
|
public var authPassword: JSONValue?
|
|
public var authPasswordFile: String?
|
|
public var authSecret: JSONValue?
|
|
public var authSecretFile: String?
|
|
public var authUsername: String?
|
|
/** ForceImplicitTLS controls whether to use implicit TLS (direct TLS connection). true: force use of implicit TLS (direct TLS connection) false: force disable implicit TLS (use explicit TLS/STARTTLS if required) nil (default): auto-detect based on port (465=implicit, other=explicit) for backward compatibility */
|
|
public var forceImplicitTls: Bool?
|
|
public var from: String?
|
|
public var headers: [String: String]?
|
|
public var hello: String?
|
|
public var html: String?
|
|
public var requireTls: Bool?
|
|
public var smarthost: JSONValue?
|
|
public var text: String?
|
|
public var threading: O11yThreadingConfig?
|
|
public var tlsConfig: O11yTLSConfig?
|
|
/** Email address to notify. */
|
|
public var to: String?
|
|
|
|
public init(notifierConfig: O11yNotifierConfig? = nil, authIdentity: String? = nil, authPassword: JSONValue? = nil, authPasswordFile: String? = nil, authSecret: JSONValue? = nil, authSecretFile: String? = nil, authUsername: String? = nil, forceImplicitTls: Bool? = nil, from: String? = nil, headers: [String: String]? = nil, hello: String? = nil, html: String? = nil, requireTls: Bool? = nil, smarthost: JSONValue? = nil, text: String? = nil, threading: O11yThreadingConfig? = nil, tlsConfig: O11yTLSConfig? = nil, to: String? = nil) {
|
|
self.notifierConfig = notifierConfig
|
|
self.authIdentity = authIdentity
|
|
self.authPassword = authPassword
|
|
self.authPasswordFile = authPasswordFile
|
|
self.authSecret = authSecret
|
|
self.authSecretFile = authSecretFile
|
|
self.authUsername = authUsername
|
|
self.forceImplicitTls = forceImplicitTls
|
|
self.from = from
|
|
self.headers = headers
|
|
self.hello = hello
|
|
self.html = html
|
|
self.requireTls = requireTls
|
|
self.smarthost = smarthost
|
|
self.text = text
|
|
self.threading = threading
|
|
self.tlsConfig = tlsConfig
|
|
self.to = to
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case notifierConfig = "NotifierConfig"
|
|
case authIdentity = "auth_identity"
|
|
case authPassword = "auth_password"
|
|
case authPasswordFile = "auth_password_file"
|
|
case authSecret = "auth_secret"
|
|
case authSecretFile = "auth_secret_file"
|
|
case authUsername = "auth_username"
|
|
case forceImplicitTls = "force_implicit_tls"
|
|
case from
|
|
case headers
|
|
case hello
|
|
case html
|
|
case requireTls = "require_tls"
|
|
case smarthost
|
|
case text
|
|
case threading
|
|
case tlsConfig = "tls_config"
|
|
case to
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(notifierConfig, forKey: .notifierConfig)
|
|
try container.encodeIfPresent(authIdentity, forKey: .authIdentity)
|
|
try container.encodeIfPresent(authPassword, forKey: .authPassword)
|
|
try container.encodeIfPresent(authPasswordFile, forKey: .authPasswordFile)
|
|
try container.encodeIfPresent(authSecret, forKey: .authSecret)
|
|
try container.encodeIfPresent(authSecretFile, forKey: .authSecretFile)
|
|
try container.encodeIfPresent(authUsername, forKey: .authUsername)
|
|
try container.encodeIfPresent(forceImplicitTls, forKey: .forceImplicitTls)
|
|
try container.encodeIfPresent(from, forKey: .from)
|
|
try container.encodeIfPresent(headers, forKey: .headers)
|
|
try container.encodeIfPresent(hello, forKey: .hello)
|
|
try container.encodeIfPresent(html, forKey: .html)
|
|
try container.encodeIfPresent(requireTls, forKey: .requireTls)
|
|
try container.encodeIfPresent(smarthost, forKey: .smarthost)
|
|
try container.encodeIfPresent(text, forKey: .text)
|
|
try container.encodeIfPresent(threading, forKey: .threading)
|
|
try container.encodeIfPresent(tlsConfig, forKey: .tlsConfig)
|
|
try container.encodeIfPresent(to, forKey: .to)
|
|
}
|
|
}
|
|
|