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.
46 lines
1.3 KiB
Swift
46 lines
1.3 KiB
Swift
//
|
|
// O11yListMeta.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yListMeta: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Limit is how many rows one page holds. */
|
|
public var limit: Int64?
|
|
/** Page is the 1-based page this response is. */
|
|
public var page: Int64?
|
|
/** TotalItems is how many rows match in total. */
|
|
public var totalItems: Int64?
|
|
/** TotalPages is ceil(totalItems/limit), at least 1. */
|
|
public var totalPages: Int64?
|
|
|
|
public init(limit: Int64? = nil, page: Int64? = nil, totalItems: Int64? = nil, totalPages: Int64? = nil) {
|
|
self.limit = limit
|
|
self.page = page
|
|
self.totalItems = totalItems
|
|
self.totalPages = totalPages
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case limit
|
|
case page
|
|
case totalItems
|
|
case totalPages
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(limit, forKey: .limit)
|
|
try container.encodeIfPresent(page, forKey: .page)
|
|
try container.encodeIfPresent(totalItems, forKey: .totalItems)
|
|
try container.encodeIfPresent(totalPages, forKey: .totalPages)
|
|
}
|
|
}
|
|
|