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.
82 lines
3.0 KiB
Swift
82 lines
3.0 KiB
Swift
//
|
|
// O11yMattermostAttachment.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yMattermostAttachment: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var authorIcon: String?
|
|
public var authorLink: String?
|
|
public var authorName: String?
|
|
public var color: String?
|
|
public var fallback: String?
|
|
public var fields: [O11yMattermostField]?
|
|
public var footer: String?
|
|
public var footerIcon: String?
|
|
public var imageUrl: String?
|
|
public var pretext: String?
|
|
public var text: String?
|
|
public var thumbUrl: String?
|
|
public var title: String?
|
|
public var titleLink: String?
|
|
|
|
public init(authorIcon: String? = nil, authorLink: String? = nil, authorName: String? = nil, color: String? = nil, fallback: String? = nil, fields: [O11yMattermostField]? = nil, footer: String? = nil, footerIcon: String? = nil, imageUrl: String? = nil, pretext: String? = nil, text: String? = nil, thumbUrl: String? = nil, title: String? = nil, titleLink: String? = nil) {
|
|
self.authorIcon = authorIcon
|
|
self.authorLink = authorLink
|
|
self.authorName = authorName
|
|
self.color = color
|
|
self.fallback = fallback
|
|
self.fields = fields
|
|
self.footer = footer
|
|
self.footerIcon = footerIcon
|
|
self.imageUrl = imageUrl
|
|
self.pretext = pretext
|
|
self.text = text
|
|
self.thumbUrl = thumbUrl
|
|
self.title = title
|
|
self.titleLink = titleLink
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case authorIcon = "author_icon"
|
|
case authorLink = "author_link"
|
|
case authorName = "author_name"
|
|
case color
|
|
case fallback
|
|
case fields
|
|
case footer
|
|
case footerIcon = "footer_icon"
|
|
case imageUrl = "image_url"
|
|
case pretext
|
|
case text
|
|
case thumbUrl = "thumb_url"
|
|
case title
|
|
case titleLink = "title_link"
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(authorIcon, forKey: .authorIcon)
|
|
try container.encodeIfPresent(authorLink, forKey: .authorLink)
|
|
try container.encodeIfPresent(authorName, forKey: .authorName)
|
|
try container.encodeIfPresent(color, forKey: .color)
|
|
try container.encodeIfPresent(fallback, forKey: .fallback)
|
|
try container.encodeIfPresent(fields, forKey: .fields)
|
|
try container.encodeIfPresent(footer, forKey: .footer)
|
|
try container.encodeIfPresent(footerIcon, forKey: .footerIcon)
|
|
try container.encodeIfPresent(imageUrl, forKey: .imageUrl)
|
|
try container.encodeIfPresent(pretext, forKey: .pretext)
|
|
try container.encodeIfPresent(text, forKey: .text)
|
|
try container.encodeIfPresent(thumbUrl, forKey: .thumbUrl)
|
|
try container.encodeIfPresent(title, forKey: .title)
|
|
try container.encodeIfPresent(titleLink, forKey: .titleLink)
|
|
}
|
|
}
|
|
|