Files
swift-sdk/Sources/Hanzo/Models/GithubInstallationView.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

51 lines
1.7 KiB
Swift

//
// GithubInstallationView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct GithubInstallationView: Sendable, Codable, ParameterConvertible, Hashable {
/** Connected reports whether THIS org has already bound this account. */
public var connected: Bool?
/** Grant is \"all\" or \"selected\" — how many of the account's repositories the install covers. A reader deciding what to import needs the reach, not just the name. */
public var grant: String?
/** HTMLURL is the account's page on GitHub. */
public var htmlUrl: String?
/** Login is the GitHub account name — the org or user the App is installed on. */
public var login: String?
/** Type is \"Organization\" or \"User\". */
public var type: String?
public init(connected: Bool? = nil, grant: String? = nil, htmlUrl: String? = nil, login: String? = nil, type: String? = nil) {
self.connected = connected
self.grant = grant
self.htmlUrl = htmlUrl
self.login = login
self.type = type
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case connected
case grant
case htmlUrl
case login
case type
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(connected, forKey: .connected)
try container.encodeIfPresent(grant, forKey: .grant)
try container.encodeIfPresent(htmlUrl, forKey: .htmlUrl)
try container.encodeIfPresent(login, forKey: .login)
try container.encodeIfPresent(type, forKey: .type)
}
}