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.3 KiB
Swift
41 lines
1.3 KiB
Swift
//
|
|
// KmsSecrets.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct KmsSecrets: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Names is the same listing reduced to bare names, which is the shape the KMS operator reads. Both are emitted so either consumer keeps working. */
|
|
public var names: [String]?
|
|
/** Secrets are the descriptors: name, path, environment and sealing scheme. No value and no ciphertext appears here. */
|
|
public var secrets: [SecretMeta]?
|
|
/** Total is how many descriptors this listing carries. */
|
|
public var total: Int64?
|
|
|
|
public init(names: [String]? = nil, secrets: [SecretMeta]? = nil, total: Int64? = nil) {
|
|
self.names = names
|
|
self.secrets = secrets
|
|
self.total = total
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case names
|
|
case secrets
|
|
case total
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(names, forKey: .names)
|
|
try container.encodeIfPresent(secrets, forKey: .secrets)
|
|
try container.encodeIfPresent(total, forKey: .total)
|
|
}
|
|
}
|
|
|