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.
46 lines
1.3 KiB
Swift
46 lines
1.3 KiB
Swift
//
|
|
// BucketRecord.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct BucketRecord: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Bucket is the bucket's name within the org. */
|
|
public var bucket: String?
|
|
/** History is how many revisions each key keeps. */
|
|
public var history: Int64?
|
|
/** TTL is the entry expiry in seconds; 0 means none. */
|
|
public var ttl: Int64?
|
|
/** Values is how many values the bucket holds right now. */
|
|
public var values: Int?
|
|
|
|
public init(bucket: String? = nil, history: Int64? = nil, ttl: Int64? = nil, values: Int? = nil) {
|
|
self.bucket = bucket
|
|
self.history = history
|
|
self.ttl = ttl
|
|
self.values = values
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case bucket
|
|
case history
|
|
case ttl
|
|
case values
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(bucket, forKey: .bucket)
|
|
try container.encodeIfPresent(history, forKey: .history)
|
|
try container.encodeIfPresent(ttl, forKey: .ttl)
|
|
try container.encodeIfPresent(values, forKey: .values)
|
|
}
|
|
}
|
|
|