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.
86 lines
3.7 KiB
Swift
86 lines
3.7 KiB
Swift
//
|
|
// O11yJiraConfig.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yJiraConfig: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var notifierConfig: O11yNotifierConfig?
|
|
public var apiType: String?
|
|
public var apiUrl: JSONValue?
|
|
public var customFields: [String: JSONValue]?
|
|
public var description: O11yJiraFieldConfig?
|
|
public var httpConfig: O11yHTTPClientConfig?
|
|
public var issueType: String?
|
|
public var labels: [String]?
|
|
public var priority: String?
|
|
public var project: String?
|
|
public var reopenDuration: JSONValue?
|
|
public var reopenTransition: String?
|
|
public var resolveTransition: String?
|
|
public var summary: O11yJiraFieldConfig?
|
|
public var wontFixResolution: String?
|
|
|
|
public init(notifierConfig: O11yNotifierConfig? = nil, apiType: String? = nil, apiUrl: JSONValue? = nil, customFields: [String: JSONValue]? = nil, description: O11yJiraFieldConfig? = nil, httpConfig: O11yHTTPClientConfig? = nil, issueType: String? = nil, labels: [String]? = nil, priority: String? = nil, project: String? = nil, reopenDuration: JSONValue? = nil, reopenTransition: String? = nil, resolveTransition: String? = nil, summary: O11yJiraFieldConfig? = nil, wontFixResolution: String? = nil) {
|
|
self.notifierConfig = notifierConfig
|
|
self.apiType = apiType
|
|
self.apiUrl = apiUrl
|
|
self.customFields = customFields
|
|
self.description = description
|
|
self.httpConfig = httpConfig
|
|
self.issueType = issueType
|
|
self.labels = labels
|
|
self.priority = priority
|
|
self.project = project
|
|
self.reopenDuration = reopenDuration
|
|
self.reopenTransition = reopenTransition
|
|
self.resolveTransition = resolveTransition
|
|
self.summary = summary
|
|
self.wontFixResolution = wontFixResolution
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case notifierConfig = "NotifierConfig"
|
|
case apiType = "api_type"
|
|
case apiUrl = "api_url"
|
|
case customFields = "custom_fields"
|
|
case description
|
|
case httpConfig = "http_config"
|
|
case issueType = "issue_type"
|
|
case labels
|
|
case priority
|
|
case project
|
|
case reopenDuration = "reopen_duration"
|
|
case reopenTransition = "reopen_transition"
|
|
case resolveTransition = "resolve_transition"
|
|
case summary
|
|
case wontFixResolution = "wont_fix_resolution"
|
|
}
|
|
|
|
// 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(apiType, forKey: .apiType)
|
|
try container.encodeIfPresent(apiUrl, forKey: .apiUrl)
|
|
try container.encodeIfPresent(customFields, forKey: .customFields)
|
|
try container.encodeIfPresent(description, forKey: .description)
|
|
try container.encodeIfPresent(httpConfig, forKey: .httpConfig)
|
|
try container.encodeIfPresent(issueType, forKey: .issueType)
|
|
try container.encodeIfPresent(labels, forKey: .labels)
|
|
try container.encodeIfPresent(priority, forKey: .priority)
|
|
try container.encodeIfPresent(project, forKey: .project)
|
|
try container.encodeIfPresent(reopenDuration, forKey: .reopenDuration)
|
|
try container.encodeIfPresent(reopenTransition, forKey: .reopenTransition)
|
|
try container.encodeIfPresent(resolveTransition, forKey: .resolveTransition)
|
|
try container.encodeIfPresent(summary, forKey: .summary)
|
|
try container.encodeIfPresent(wontFixResolution, forKey: .wontFixResolution)
|
|
}
|
|
}
|
|
|