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

46 lines
1.2 KiB
Swift

//
// LicensingRevocationEntry.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct LicensingRevocationEntry: Sendable, Codable, ParameterConvertible, Hashable {
public var at: Int64?
public var by: String?
public var reason: String?
public var scope: String?
public var value: String?
public init(at: Int64? = nil, by: String? = nil, reason: String? = nil, scope: String? = nil, value: String? = nil) {
self.at = at
self.by = by
self.reason = reason
self.scope = scope
self.value = value
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case at
case by
case reason
case scope
case value
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(at, forKey: .at)
try container.encodeIfPresent(by, forKey: .by)
try container.encodeIfPresent(reason, forKey: .reason)
try container.encodeIfPresent(scope, forKey: .scope)
try container.encodeIfPresent(value, forKey: .value)
}
}