Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
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.
2026-09-05 18:55:38 -07:00

81 lines
2.8 KiB
Swift

//
// PullView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct PullView: Sendable, Codable, ParameterConvertible, Hashable {
/** Author is the user who opened it; empty for a caller with no user. */
public var author: String?
/** Base is the branch the work is proposed into. */
public var base: String?
/** Body is the longer description; empty when none was given. */
public var body: String?
/** CreatedAt is RFC 3339 UTC. */
public var createdAt: String?
/** Head is the branch holding the work. */
public var head: String?
/** MergedRev is what base points at now that the merge landed. Empty while the proposal is open. */
public var mergedRev: String?
/** Number is the proposal's per-repo handle, dense from 1. */
public var number: Int64?
/** Repo is the repository the proposal belongs to. */
public var repo: String?
/** State is \"open\" or \"merged\". */
public var state: String?
/** Title is the one-line summary. */
public var title: String?
/** UpdatedAt is RFC 3339 UTC. */
public var updatedAt: String?
public init(author: String? = nil, base: String? = nil, body: String? = nil, createdAt: String? = nil, head: String? = nil, mergedRev: String? = nil, number: Int64? = nil, repo: String? = nil, state: String? = nil, title: String? = nil, updatedAt: String? = nil) {
self.author = author
self.base = base
self.body = body
self.createdAt = createdAt
self.head = head
self.mergedRev = mergedRev
self.number = number
self.repo = repo
self.state = state
self.title = title
self.updatedAt = updatedAt
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case author
case base
case body
case createdAt
case head
case mergedRev
case number
case repo
case state
case title
case updatedAt
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(author, forKey: .author)
try container.encodeIfPresent(base, forKey: .base)
try container.encodeIfPresent(body, forKey: .body)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(head, forKey: .head)
try container.encodeIfPresent(mergedRev, forKey: .mergedRev)
try container.encodeIfPresent(number, forKey: .number)
try container.encodeIfPresent(repo, forKey: .repo)
try container.encodeIfPresent(state, forKey: .state)
try container.encodeIfPresent(title, forKey: .title)
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
}
}