Files

41 lines
1.2 KiB
Swift

//
// IngestResp.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct IngestResp: Sendable, Codable, ParameterConvertible, Hashable {
/** Accepted is how many samples this report landed. */
public var accepted: Int64?
/** Links is the link row each distinct (machine, provider, account) in the batch refreshed. */
public var links: [LinkView]?
/** Stored reports whether history was durably written; false means the warehouse was unavailable and only the link rows were refreshed. */
public var stored: Bool?
public init(accepted: Int64? = nil, links: [LinkView]? = nil, stored: Bool? = nil) {
self.accepted = accepted
self.links = links
self.stored = stored
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case accepted
case links
case stored
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(accepted, forKey: .accepted)
try container.encodeIfPresent(links, forKey: .links)
try container.encodeIfPresent(stored, forKey: .stored)
}
}