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.
43 lines
1.5 KiB
Swift
43 lines
1.5 KiB
Swift
//
|
|
// LicensingReleaseAsset.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct LicensingReleaseAsset: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var cosignCert: String?
|
|
public var cosignSignature: String?
|
|
/** DownloadURL is a short-lived signed URL to the artifact bytes. The scaffold returns the ArtifactRef as-is; production issues a signed URL. */
|
|
public var downloadUrl: String?
|
|
public var release: LicensingRelease?
|
|
|
|
public init(cosignCert: String? = nil, cosignSignature: String? = nil, downloadUrl: String? = nil, release: LicensingRelease? = nil) {
|
|
self.cosignCert = cosignCert
|
|
self.cosignSignature = cosignSignature
|
|
self.downloadUrl = downloadUrl
|
|
self.release = release
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case cosignCert = "cosign_cert"
|
|
case cosignSignature = "cosign_signature"
|
|
case downloadUrl = "download_url"
|
|
case release
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(cosignCert, forKey: .cosignCert)
|
|
try container.encodeIfPresent(cosignSignature, forKey: .cosignSignature)
|
|
try container.encodeIfPresent(downloadUrl, forKey: .downloadUrl)
|
|
try container.encodeIfPresent(release, forKey: .release)
|
|
}
|
|
}
|
|
|