mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
103 lines
4.2 KiB
Swift
103 lines
4.2 KiB
Swift
//
|
|
// O11yPagerdutyConfig.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yPagerdutyConfig: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var notifierConfig: O11yNotifierConfig?
|
|
public var _class: String?
|
|
public var client: String?
|
|
public var clientUrl: String?
|
|
public var component: String?
|
|
public var description: String?
|
|
public var details: [String: JSONValue]?
|
|
public var group: String?
|
|
public var httpConfig: O11yHTTPClientConfig?
|
|
public var images: [O11yPagerdutyImage]?
|
|
public var links: [O11yPagerdutyLink]?
|
|
public var routingKey: JSONValue?
|
|
public var routingKeyFile: String?
|
|
public var serviceKey: JSONValue?
|
|
public var serviceKeyFile: String?
|
|
public var severity: String?
|
|
public var source: String?
|
|
/** Timeout is the maximum time allowed to invoke the pagerduty. Setting this to 0 does not impose a timeout. */
|
|
public var timeout: Int64?
|
|
public var url: JSONValue?
|
|
|
|
public init(notifierConfig: O11yNotifierConfig? = nil, _class: String? = nil, client: String? = nil, clientUrl: String? = nil, component: String? = nil, description: String? = nil, details: [String: JSONValue]? = nil, group: String? = nil, httpConfig: O11yHTTPClientConfig? = nil, images: [O11yPagerdutyImage]? = nil, links: [O11yPagerdutyLink]? = nil, routingKey: JSONValue? = nil, routingKeyFile: String? = nil, serviceKey: JSONValue? = nil, serviceKeyFile: String? = nil, severity: String? = nil, source: String? = nil, timeout: Int64? = nil, url: JSONValue? = nil) {
|
|
self.notifierConfig = notifierConfig
|
|
self._class = _class
|
|
self.client = client
|
|
self.clientUrl = clientUrl
|
|
self.component = component
|
|
self.description = description
|
|
self.details = details
|
|
self.group = group
|
|
self.httpConfig = httpConfig
|
|
self.images = images
|
|
self.links = links
|
|
self.routingKey = routingKey
|
|
self.routingKeyFile = routingKeyFile
|
|
self.serviceKey = serviceKey
|
|
self.serviceKeyFile = serviceKeyFile
|
|
self.severity = severity
|
|
self.source = source
|
|
self.timeout = timeout
|
|
self.url = url
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case notifierConfig = "NotifierConfig"
|
|
case _class = "class"
|
|
case client
|
|
case clientUrl = "client_url"
|
|
case component
|
|
case description
|
|
case details
|
|
case group
|
|
case httpConfig = "http_config"
|
|
case images
|
|
case links
|
|
case routingKey = "routing_key"
|
|
case routingKeyFile = "routing_key_file"
|
|
case serviceKey = "service_key"
|
|
case serviceKeyFile = "service_key_file"
|
|
case severity
|
|
case source
|
|
case timeout
|
|
case url
|
|
}
|
|
|
|
// 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(_class, forKey: ._class)
|
|
try container.encodeIfPresent(client, forKey: .client)
|
|
try container.encodeIfPresent(clientUrl, forKey: .clientUrl)
|
|
try container.encodeIfPresent(component, forKey: .component)
|
|
try container.encodeIfPresent(description, forKey: .description)
|
|
try container.encodeIfPresent(details, forKey: .details)
|
|
try container.encodeIfPresent(group, forKey: .group)
|
|
try container.encodeIfPresent(httpConfig, forKey: .httpConfig)
|
|
try container.encodeIfPresent(images, forKey: .images)
|
|
try container.encodeIfPresent(links, forKey: .links)
|
|
try container.encodeIfPresent(routingKey, forKey: .routingKey)
|
|
try container.encodeIfPresent(routingKeyFile, forKey: .routingKeyFile)
|
|
try container.encodeIfPresent(serviceKey, forKey: .serviceKey)
|
|
try container.encodeIfPresent(serviceKeyFile, forKey: .serviceKeyFile)
|
|
try container.encodeIfPresent(severity, forKey: .severity)
|
|
try container.encodeIfPresent(source, forKey: .source)
|
|
try container.encodeIfPresent(timeout, forKey: .timeout)
|
|
try container.encodeIfPresent(url, forKey: .url)
|
|
}
|
|
}
|
|
|