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

56 lines
1.9 KiB
Swift

//
// O11yO11yFieldSetting.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yFieldSetting: Sendable, Codable, ParameterConvertible, Hashable {
/** DataType is the field's data type, e.g. string, int64, float64, bool. Required. */
public var dataType: String
/** Index is the index expression to put on the column, e.g. minmax, set(N), bloom_filter(P), tokenbf_v1(S,H,SEED). Empty keeps the default. */
public var index: String?
/** IndexGranularity is the index granularity in rows. */
public var indexGranularity: Int64?
/** Name is the field to tune. Required. */
public var name: String
/** Selected materializes the field as its own column when true. */
public var selected: Bool?
/** Type is where the field lives: attributes or resources. Required. */
public var type: String
public init(dataType: String, index: String? = nil, indexGranularity: Int64? = nil, name: String, selected: Bool? = nil, type: String) {
self.dataType = dataType
self.index = index
self.indexGranularity = indexGranularity
self.name = name
self.selected = selected
self.type = type
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case dataType
case index
case indexGranularity
case name
case selected
case type
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(dataType, forKey: .dataType)
try container.encodeIfPresent(index, forKey: .index)
try container.encodeIfPresent(indexGranularity, forKey: .indexGranularity)
try container.encode(name, forKey: .name)
try container.encodeIfPresent(selected, forKey: .selected)
try container.encode(type, forKey: .type)
}
}