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.
51 lines
1.8 KiB
Swift
51 lines
1.8 KiB
Swift
//
|
|
// IndexEnqueued.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct IndexEnqueued: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** EnqueuedAt is when the task was recorded, RFC 3339 — which is also when it completed. */
|
|
public var enqueuedAt: String?
|
|
/** IndexUID names the index the write landed in. */
|
|
public var indexUid: String?
|
|
/** Status is always `enqueued`, for dialect compatibility. The work is already done. */
|
|
public var status: String?
|
|
/** TaskUID identifies the task for a client that polls it. Polling resolves immediately. */
|
|
public var taskUid: Int64?
|
|
/** Type is the dialect's name for the kind of write: indexCreation, indexDeletion, settingsUpdate, documentAdditionOrUpdate, documentDeletion. */
|
|
public var type: String?
|
|
|
|
public init(enqueuedAt: String? = nil, indexUid: String? = nil, status: String? = nil, taskUid: Int64? = nil, type: String? = nil) {
|
|
self.enqueuedAt = enqueuedAt
|
|
self.indexUid = indexUid
|
|
self.status = status
|
|
self.taskUid = taskUid
|
|
self.type = type
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case enqueuedAt
|
|
case indexUid
|
|
case status
|
|
case taskUid
|
|
case type
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(enqueuedAt, forKey: .enqueuedAt)
|
|
try container.encodeIfPresent(indexUid, forKey: .indexUid)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
try container.encodeIfPresent(taskUid, forKey: .taskUid)
|
|
try container.encodeIfPresent(type, forKey: .type)
|
|
}
|
|
}
|
|
|