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.
62 lines
2.3 KiB
Swift
62 lines
2.3 KiB
Swift
//
|
|
// O11yDiscordConfig.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yDiscordConfig: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var notifierConfig: O11yNotifierConfig?
|
|
public var avatarUrl: String?
|
|
public var content: String?
|
|
public var httpConfig: O11yHTTPClientConfig?
|
|
public var message: String?
|
|
public var title: String?
|
|
public var username: String?
|
|
public var webhookUrl: JSONValue?
|
|
public var webhookUrlFile: String?
|
|
|
|
public init(notifierConfig: O11yNotifierConfig? = nil, avatarUrl: String? = nil, content: String? = nil, httpConfig: O11yHTTPClientConfig? = nil, message: String? = nil, title: String? = nil, username: String? = nil, webhookUrl: JSONValue? = nil, webhookUrlFile: String? = nil) {
|
|
self.notifierConfig = notifierConfig
|
|
self.avatarUrl = avatarUrl
|
|
self.content = content
|
|
self.httpConfig = httpConfig
|
|
self.message = message
|
|
self.title = title
|
|
self.username = username
|
|
self.webhookUrl = webhookUrl
|
|
self.webhookUrlFile = webhookUrlFile
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case notifierConfig = "NotifierConfig"
|
|
case avatarUrl = "avatar_url"
|
|
case content
|
|
case httpConfig = "http_config"
|
|
case message
|
|
case title
|
|
case username
|
|
case webhookUrl = "webhook_url"
|
|
case webhookUrlFile = "webhook_url_file"
|
|
}
|
|
|
|
// 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(avatarUrl, forKey: .avatarUrl)
|
|
try container.encodeIfPresent(content, forKey: .content)
|
|
try container.encodeIfPresent(httpConfig, forKey: .httpConfig)
|
|
try container.encodeIfPresent(message, forKey: .message)
|
|
try container.encodeIfPresent(title, forKey: .title)
|
|
try container.encodeIfPresent(username, forKey: .username)
|
|
try container.encodeIfPresent(webhookUrl, forKey: .webhookUrl)
|
|
try container.encodeIfPresent(webhookUrlFile, forKey: .webhookUrlFile)
|
|
}
|
|
}
|
|
|