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.2 KiB
Swift
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)
|
|
}
|
|
}
|
|
|