mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The projection these were generated from predated the compute migration, so they described /v1/visor — which the API serves at zero paths now. No /v1/visor path survives here.
41 lines
1.2 KiB
Swift
41 lines
1.2 KiB
Swift
//
|
|
// RegistryProject.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct RegistryProject: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Images is how many of the org's repositories the OCI catalog holds. */
|
|
public var images: Int64?
|
|
/** Packages is how many of the org's packages the npm registry reports. */
|
|
public var packages: Int64?
|
|
/** Project is the namespace: the org's slug, which prefixes its image names and scopes its npm packages. */
|
|
public var project: String?
|
|
|
|
public init(images: Int64? = nil, packages: Int64? = nil, project: String? = nil) {
|
|
self.images = images
|
|
self.packages = packages
|
|
self.project = project
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case images
|
|
case packages
|
|
case project
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(images, forKey: .images)
|
|
try container.encodeIfPresent(packages, forKey: .packages)
|
|
try container.encodeIfPresent(project, forKey: .project)
|
|
}
|
|
}
|
|
|