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.
41 lines
1.4 KiB
Swift
41 lines
1.4 KiB
Swift
//
|
|
// BaseView.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct BaseView: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Bytes is the store's size on disk, present only once it exists. It is what this Base occupies, not a quota. */
|
|
public var bytes: Int64?
|
|
/** Exists reports whether this Base's store has been provisioned. False is an org nobody has stored anything for yet, which is a state to name rather than an error: the store is created the first time anything writes. */
|
|
public var exists: Bool?
|
|
/** Org is the org this Base belongs to. It is the address every other Base call is scoped by, and a Base has no name of its own. */
|
|
public var org: String?
|
|
|
|
public init(bytes: Int64? = nil, exists: Bool? = nil, org: String? = nil) {
|
|
self.bytes = bytes
|
|
self.exists = exists
|
|
self.org = org
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case bytes
|
|
case exists
|
|
case org
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(bytes, forKey: .bytes)
|
|
try container.encodeIfPresent(exists, forKey: .exists)
|
|
try container.encodeIfPresent(org, forKey: .org)
|
|
}
|
|
}
|
|
|