Files
swift-sdk/Sources/Hanzo/Models/UsageAnalyticsGrant.swift
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

41 lines
1.4 KiB
Swift

//
// UsageAnalyticsGrant.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct UsageAnalyticsGrant: Sendable, Codable, ParameterConvertible, Hashable {
/** Datastore is whether the plan may read GET /v1/usage/analytics at all. The free floor is false, and that is what a catalog outage resolves to. */
public var datastore: Bool?
/** Export is whether the plan may export the analytics it can read. */
public var export: Bool?
/** RetentionDays is how far back the plan may read. GET /v1/usage/analytics clamps a custom window's start to this, so an older `start` returns the clamped window rather than an error. */
public var retentionDays: Int64?
public init(datastore: Bool? = nil, export: Bool? = nil, retentionDays: Int64? = nil) {
self.datastore = datastore
self.export = export
self.retentionDays = retentionDays
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case datastore
case export
case retentionDays
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(datastore, forKey: .datastore)
try container.encodeIfPresent(export, forKey: .export)
try container.encodeIfPresent(retentionDays, forKey: .retentionDays)
}
}