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.
36 lines
1.1 KiB
Swift
36 lines
1.1 KiB
Swift
//
|
|
// IndexStats.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct IndexStats: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** DatabaseSize is the org's total document count across its indexes. It is a count, not bytes: the store is shared by every tenant, so a byte figure would either be the whole file (another tenant's size) or a fiction. */
|
|
public var databaseSize: Int64?
|
|
/** Indexes maps each index uid to its own count. */
|
|
public var indexes: [String: IndexCount]?
|
|
|
|
public init(databaseSize: Int64? = nil, indexes: [String: IndexCount]? = nil) {
|
|
self.databaseSize = databaseSize
|
|
self.indexes = indexes
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case databaseSize
|
|
case indexes
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(databaseSize, forKey: .databaseSize)
|
|
try container.encodeIfPresent(indexes, forKey: .indexes)
|
|
}
|
|
}
|
|
|