Files
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

46 lines
1.7 KiB
Swift

//
// CreateReq.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CreateReq: Sendable, Codable, ParameterConvertible, Hashable {
/** Description is a free-form blurb, max 4KiB. */
public var description: String?
/** Name is the repo's handle, unique within the scope, and the last segment of both clone URLs. Must match ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$; a trailing \".git\" is stripped first. Required. */
public var name: String?
/** Project narrows the repo to a sub-scope of the org. Omit it to use the caller's own X-Project-Id scope; it can never widen past the caller's org. */
public var project: String?
/** Public grants ANONYMOUS read (fetch) only; push and the whole control plane stay org-authed. Defaults to false. */
public var _public: Bool?
public init(description: String? = nil, name: String? = nil, project: String? = nil, _public: Bool? = nil) {
self.description = description
self.name = name
self.project = project
self._public = _public
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case description
case name
case project
case _public = "public"
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(description, forKey: .description)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(project, forKey: .project)
try container.encodeIfPresent(_public, forKey: ._public)
}
}