Files
swift-sdk/Sources/Hanzo/Models/O11yTelegramConfig.swift
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
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.
2026-09-05 18:55:38 -07:00

70 lines
2.7 KiB
Swift

//
// O11yTelegramConfig.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yTelegramConfig: Sendable, Codable, ParameterConvertible, Hashable {
public var notifierConfig: O11yNotifierConfig?
public var apiUrl: JSONValue?
public var chat: Int64?
public var chatFile: String?
public var disableNotifications: Bool?
public var httpConfig: O11yHTTPClientConfig?
public var message: String?
public var messageThreadId: Int64?
public var parseMode: String?
public var token: JSONValue?
public var tokenFile: String?
public init(notifierConfig: O11yNotifierConfig? = nil, apiUrl: JSONValue? = nil, chat: Int64? = nil, chatFile: String? = nil, disableNotifications: Bool? = nil, httpConfig: O11yHTTPClientConfig? = nil, message: String? = nil, messageThreadId: Int64? = nil, parseMode: String? = nil, token: JSONValue? = nil, tokenFile: String? = nil) {
self.notifierConfig = notifierConfig
self.apiUrl = apiUrl
self.chat = chat
self.chatFile = chatFile
self.disableNotifications = disableNotifications
self.httpConfig = httpConfig
self.message = message
self.messageThreadId = messageThreadId
self.parseMode = parseMode
self.token = token
self.tokenFile = tokenFile
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case notifierConfig = "NotifierConfig"
case apiUrl = "api_url"
case chat
case chatFile = "chat_file"
case disableNotifications = "disable_notifications"
case httpConfig = "http_config"
case message
case messageThreadId = "message_thread_id"
case parseMode = "parse_mode"
case token
case tokenFile = "token_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(apiUrl, forKey: .apiUrl)
try container.encodeIfPresent(chat, forKey: .chat)
try container.encodeIfPresent(chatFile, forKey: .chatFile)
try container.encodeIfPresent(disableNotifications, forKey: .disableNotifications)
try container.encodeIfPresent(httpConfig, forKey: .httpConfig)
try container.encodeIfPresent(message, forKey: .message)
try container.encodeIfPresent(messageThreadId, forKey: .messageThreadId)
try container.encodeIfPresent(parseMode, forKey: .parseMode)
try container.encodeIfPresent(token, forKey: .token)
try container.encodeIfPresent(tokenFile, forKey: .tokenFile)
}
}