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.
41 lines
1.2 KiB
Swift
41 lines
1.2 KiB
Swift
//
|
|
// O11yO11yLogPromoteIndex.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yO11yLogPromoteIndex: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** FieldDataType is the path's data type, e.g. string, number, bool. */
|
|
public var fieldDataType: String?
|
|
/** Granularity is the index granularity in rows. */
|
|
public var granularity: Int64?
|
|
/** Type is the index type, e.g. minmax, set(N), bloom_filter(P). */
|
|
public var type: String?
|
|
|
|
public init(fieldDataType: String? = nil, granularity: Int64? = nil, type: String? = nil) {
|
|
self.fieldDataType = fieldDataType
|
|
self.granularity = granularity
|
|
self.type = type
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case fieldDataType
|
|
case granularity
|
|
case type
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(fieldDataType, forKey: .fieldDataType)
|
|
try container.encodeIfPresent(granularity, forKey: .granularity)
|
|
try container.encodeIfPresent(type, forKey: .type)
|
|
}
|
|
}
|
|
|