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

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)
}
}