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.
90 lines
3.5 KiB
Swift
90 lines
3.5 KiB
Swift
//
|
|
// O11yOpsGenieConfig.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yOpsGenieConfig: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var notifierConfig: O11yNotifierConfig?
|
|
public var actions: String?
|
|
public var apiKey: JSONValue?
|
|
public var apiKeyFile: String?
|
|
public var apiUrl: JSONValue?
|
|
public var description: String?
|
|
public var details: [String: String]?
|
|
public var entity: String?
|
|
public var httpConfig: O11yHTTPClientConfig?
|
|
public var message: String?
|
|
public var note: String?
|
|
public var priority: String?
|
|
public var responders: [O11yOpsGenieConfigResponder]?
|
|
public var source: String?
|
|
public var tags: String?
|
|
public var updateAlerts: Bool?
|
|
|
|
public init(notifierConfig: O11yNotifierConfig? = nil, actions: String? = nil, apiKey: JSONValue? = nil, apiKeyFile: String? = nil, apiUrl: JSONValue? = nil, description: String? = nil, details: [String: String]? = nil, entity: String? = nil, httpConfig: O11yHTTPClientConfig? = nil, message: String? = nil, note: String? = nil, priority: String? = nil, responders: [O11yOpsGenieConfigResponder]? = nil, source: String? = nil, tags: String? = nil, updateAlerts: Bool? = nil) {
|
|
self.notifierConfig = notifierConfig
|
|
self.actions = actions
|
|
self.apiKey = apiKey
|
|
self.apiKeyFile = apiKeyFile
|
|
self.apiUrl = apiUrl
|
|
self.description = description
|
|
self.details = details
|
|
self.entity = entity
|
|
self.httpConfig = httpConfig
|
|
self.message = message
|
|
self.note = note
|
|
self.priority = priority
|
|
self.responders = responders
|
|
self.source = source
|
|
self.tags = tags
|
|
self.updateAlerts = updateAlerts
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case notifierConfig = "NotifierConfig"
|
|
case actions
|
|
case apiKey = "api_key"
|
|
case apiKeyFile = "api_key_file"
|
|
case apiUrl = "api_url"
|
|
case description
|
|
case details
|
|
case entity
|
|
case httpConfig = "http_config"
|
|
case message
|
|
case note
|
|
case priority
|
|
case responders
|
|
case source
|
|
case tags
|
|
case updateAlerts = "update_alerts"
|
|
}
|
|
|
|
// 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(actions, forKey: .actions)
|
|
try container.encodeIfPresent(apiKey, forKey: .apiKey)
|
|
try container.encodeIfPresent(apiKeyFile, forKey: .apiKeyFile)
|
|
try container.encodeIfPresent(apiUrl, forKey: .apiUrl)
|
|
try container.encodeIfPresent(description, forKey: .description)
|
|
try container.encodeIfPresent(details, forKey: .details)
|
|
try container.encodeIfPresent(entity, forKey: .entity)
|
|
try container.encodeIfPresent(httpConfig, forKey: .httpConfig)
|
|
try container.encodeIfPresent(message, forKey: .message)
|
|
try container.encodeIfPresent(note, forKey: .note)
|
|
try container.encodeIfPresent(priority, forKey: .priority)
|
|
try container.encodeIfPresent(responders, forKey: .responders)
|
|
try container.encodeIfPresent(source, forKey: .source)
|
|
try container.encodeIfPresent(tags, forKey: .tags)
|
|
try container.encodeIfPresent(updateAlerts, forKey: .updateAlerts)
|
|
}
|
|
}
|
|
|