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.
107 lines
4.3 KiB
Swift
107 lines
4.3 KiB
Swift
//
|
|
// O11yRocketchatConfig.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yRocketchatConfig: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var notifierConfig: O11yNotifierConfig?
|
|
public var actions: [O11yRocketchatAttachmentAction]?
|
|
public var apiUrl: JSONValue?
|
|
/** RocketChat channel override, (like #other-channel or @username). */
|
|
public var channel: String?
|
|
public var color: String?
|
|
public var emoji: String?
|
|
public var fields: [O11yRocketchatAttachmentField]?
|
|
public var httpConfig: O11yHTTPClientConfig?
|
|
public var iconUrl: String?
|
|
public var imageUrl: String?
|
|
public var linkNames: Bool?
|
|
public var shortFields: Bool?
|
|
public var text: String?
|
|
public var thumbUrl: String?
|
|
public var title: String?
|
|
public var titleLink: String?
|
|
public var token: JSONValue?
|
|
public var tokenFile: String?
|
|
public var tokenId: JSONValue?
|
|
public var tokenIdFile: String?
|
|
|
|
public init(notifierConfig: O11yNotifierConfig? = nil, actions: [O11yRocketchatAttachmentAction]? = nil, apiUrl: JSONValue? = nil, channel: String? = nil, color: String? = nil, emoji: String? = nil, fields: [O11yRocketchatAttachmentField]? = nil, httpConfig: O11yHTTPClientConfig? = nil, iconUrl: String? = nil, imageUrl: String? = nil, linkNames: Bool? = nil, shortFields: Bool? = nil, text: String? = nil, thumbUrl: String? = nil, title: String? = nil, titleLink: String? = nil, token: JSONValue? = nil, tokenFile: String? = nil, tokenId: JSONValue? = nil, tokenIdFile: String? = nil) {
|
|
self.notifierConfig = notifierConfig
|
|
self.actions = actions
|
|
self.apiUrl = apiUrl
|
|
self.channel = channel
|
|
self.color = color
|
|
self.emoji = emoji
|
|
self.fields = fields
|
|
self.httpConfig = httpConfig
|
|
self.iconUrl = iconUrl
|
|
self.imageUrl = imageUrl
|
|
self.linkNames = linkNames
|
|
self.shortFields = shortFields
|
|
self.text = text
|
|
self.thumbUrl = thumbUrl
|
|
self.title = title
|
|
self.titleLink = titleLink
|
|
self.token = token
|
|
self.tokenFile = tokenFile
|
|
self.tokenId = tokenId
|
|
self.tokenIdFile = tokenIdFile
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case notifierConfig = "NotifierConfig"
|
|
case actions
|
|
case apiUrl = "api_url"
|
|
case channel
|
|
case color
|
|
case emoji
|
|
case fields
|
|
case httpConfig = "http_config"
|
|
case iconUrl = "icon_url"
|
|
case imageUrl = "image_url"
|
|
case linkNames = "link_names"
|
|
case shortFields = "short_fields"
|
|
case text
|
|
case thumbUrl = "thumb_url"
|
|
case title
|
|
case titleLink = "title_link"
|
|
case token
|
|
case tokenFile = "token_file"
|
|
case tokenId = "token_id"
|
|
case tokenIdFile = "token_id_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(actions, forKey: .actions)
|
|
try container.encodeIfPresent(apiUrl, forKey: .apiUrl)
|
|
try container.encodeIfPresent(channel, forKey: .channel)
|
|
try container.encodeIfPresent(color, forKey: .color)
|
|
try container.encodeIfPresent(emoji, forKey: .emoji)
|
|
try container.encodeIfPresent(fields, forKey: .fields)
|
|
try container.encodeIfPresent(httpConfig, forKey: .httpConfig)
|
|
try container.encodeIfPresent(iconUrl, forKey: .iconUrl)
|
|
try container.encodeIfPresent(imageUrl, forKey: .imageUrl)
|
|
try container.encodeIfPresent(linkNames, forKey: .linkNames)
|
|
try container.encodeIfPresent(shortFields, forKey: .shortFields)
|
|
try container.encodeIfPresent(text, forKey: .text)
|
|
try container.encodeIfPresent(thumbUrl, forKey: .thumbUrl)
|
|
try container.encodeIfPresent(title, forKey: .title)
|
|
try container.encodeIfPresent(titleLink, forKey: .titleLink)
|
|
try container.encodeIfPresent(token, forKey: .token)
|
|
try container.encodeIfPresent(tokenFile, forKey: .tokenFile)
|
|
try container.encodeIfPresent(tokenId, forKey: .tokenId)
|
|
try container.encodeIfPresent(tokenIdFile, forKey: .tokenIdFile)
|
|
}
|
|
}
|
|
|