Files
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

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)
}
}