Files
swift-sdk/Sources/Hanzo/Models/O11yO11yAttributeKey.swift
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

51 lines
1.6 KiB
Swift

//
// O11yO11yAttributeKey.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yAttributeKey: Sendable, Codable, ParameterConvertible, Hashable {
/** DataType is the attribute's value type — string, int64, float64 or bool. */
public var dataType: String?
/** IsColumn marks an attribute materialized as its own column. */
public var isColumn: Bool?
/** IsJSON marks an attribute extracted from a JSON body. */
public var isJSON: Bool?
/** Key is the attribute's name. */
public var key: String?
/** Type says where the attribute lives: tag or resource. */
public var type: String?
public init(dataType: String? = nil, isColumn: Bool? = nil, isJSON: Bool? = nil, key: String? = nil, type: String? = nil) {
self.dataType = dataType
self.isColumn = isColumn
self.isJSON = isJSON
self.key = key
self.type = type
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case dataType
case isColumn
case isJSON
case key
case type
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(dataType, forKey: .dataType)
try container.encodeIfPresent(isColumn, forKey: .isColumn)
try container.encodeIfPresent(isJSON, forKey: .isJSON)
try container.encodeIfPresent(key, forKey: .key)
try container.encodeIfPresent(type, forKey: .type)
}
}