Files
swift-sdk/Sources/Hanzo/Models/ConnectorMetadata.swift
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
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.
2026-08-23 10:04:41 -07:00

62 lines
2.1 KiB
Swift

//
// ConnectorMetadata.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ConnectorMetadata: Sendable, Codable, ParameterConvertible, Hashable {
public var actions: [ConnectorAction]?
public var auth: ConnectorAuth?
public var categories: [String]?
public var description: String?
public var displayName: String?
public var logoUrl: String?
public var name: String?
public var triggers: [ConnectorTrigger]?
public var version: String?
public init(actions: [ConnectorAction]? = nil, auth: ConnectorAuth? = nil, categories: [String]? = nil, description: String? = nil, displayName: String? = nil, logoUrl: String? = nil, name: String? = nil, triggers: [ConnectorTrigger]? = nil, version: String? = nil) {
self.actions = actions
self.auth = auth
self.categories = categories
self.description = description
self.displayName = displayName
self.logoUrl = logoUrl
self.name = name
self.triggers = triggers
self.version = version
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case actions
case auth
case categories
case description
case displayName
case logoUrl
case name
case triggers
case version
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(actions, forKey: .actions)
try container.encodeIfPresent(auth, forKey: .auth)
try container.encodeIfPresent(categories, forKey: .categories)
try container.encodeIfPresent(description, forKey: .description)
try container.encodeIfPresent(displayName, forKey: .displayName)
try container.encodeIfPresent(logoUrl, forKey: .logoUrl)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(triggers, forKey: .triggers)
try container.encodeIfPresent(version, forKey: .version)
}
}