Files
swift-sdk/Sources/Hanzo/Models/O11yPushoverConfig.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

98 lines
3.6 KiB
Swift

//
// O11yPushoverConfig.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yPushoverConfig: Sendable, Codable, ParameterConvertible, Hashable {
public var notifierConfig: O11yNotifierConfig?
public var device: String?
public var expire: Int64?
public var html: Bool?
public var httpConfig: O11yHTTPClientConfig?
public var message: String?
public var monospace: Bool?
public var priority: String?
public var retry: Int64?
public var sound: String?
public var title: String?
public var token: JSONValue?
public var tokenFile: String?
public var ttl: Int64?
public var url: String?
public var urlTitle: String?
public var userKey: JSONValue?
public var userKeyFile: String?
public init(notifierConfig: O11yNotifierConfig? = nil, device: String? = nil, expire: Int64? = nil, html: Bool? = nil, httpConfig: O11yHTTPClientConfig? = nil, message: String? = nil, monospace: Bool? = nil, priority: String? = nil, retry: Int64? = nil, sound: String? = nil, title: String? = nil, token: JSONValue? = nil, tokenFile: String? = nil, ttl: Int64? = nil, url: String? = nil, urlTitle: String? = nil, userKey: JSONValue? = nil, userKeyFile: String? = nil) {
self.notifierConfig = notifierConfig
self.device = device
self.expire = expire
self.html = html
self.httpConfig = httpConfig
self.message = message
self.monospace = monospace
self.priority = priority
self.retry = retry
self.sound = sound
self.title = title
self.token = token
self.tokenFile = tokenFile
self.ttl = ttl
self.url = url
self.urlTitle = urlTitle
self.userKey = userKey
self.userKeyFile = userKeyFile
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case notifierConfig = "NotifierConfig"
case device
case expire
case html
case httpConfig = "http_config"
case message
case monospace
case priority
case retry
case sound
case title
case token
case tokenFile = "token_file"
case ttl
case url
case urlTitle = "url_title"
case userKey = "user_key"
case userKeyFile = "user_key_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(device, forKey: .device)
try container.encodeIfPresent(expire, forKey: .expire)
try container.encodeIfPresent(html, forKey: .html)
try container.encodeIfPresent(httpConfig, forKey: .httpConfig)
try container.encodeIfPresent(message, forKey: .message)
try container.encodeIfPresent(monospace, forKey: .monospace)
try container.encodeIfPresent(priority, forKey: .priority)
try container.encodeIfPresent(retry, forKey: .retry)
try container.encodeIfPresent(sound, forKey: .sound)
try container.encodeIfPresent(title, forKey: .title)
try container.encodeIfPresent(token, forKey: .token)
try container.encodeIfPresent(tokenFile, forKey: .tokenFile)
try container.encodeIfPresent(ttl, forKey: .ttl)
try container.encodeIfPresent(url, forKey: .url)
try container.encodeIfPresent(urlTitle, forKey: .urlTitle)
try container.encodeIfPresent(userKey, forKey: .userKey)
try container.encodeIfPresent(userKeyFile, forKey: .userKeyFile)
}
}