mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The forge tree held the package scaffolding and none of the generated sources — 2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply absent, so anything depending on this copy had a package that compiled to nothing usable. Generated from the current API document rather than reconciled with the other copy: a client is a function of the spec, so regenerating answers "which history wins" without anyone having to choose. .spec-lock records which document, so the next reader can tell.
46 lines
1.6 KiB
Swift
46 lines
1.6 KiB
Swift
//
|
|
// KmsPut.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct KmsPut: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Env is the environment to write under. REQUIRED, with no default: it is part of the storage key, so a silently defaulted write lands in a bucket the readers that resolve project, environment and path never look in, and the stale value keeps being served. */
|
|
public var env: String?
|
|
/** Name is the secret's name. Required. */
|
|
public var name: String?
|
|
/** Path is an optional subpath beneath the org root, e.g. \"/ci\". */
|
|
public var path: String?
|
|
/** Value is the secret itself. It is sealed under a fresh per-secret data key before storage, so plaintext never reaches disk, and it is never echoed back, logged, or carried in an error. */
|
|
public var value: String?
|
|
|
|
public init(env: String? = nil, name: String? = nil, path: String? = nil, value: String? = nil) {
|
|
self.env = env
|
|
self.name = name
|
|
self.path = path
|
|
self.value = value
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case env
|
|
case name
|
|
case path
|
|
case value
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(env, forKey: .env)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(path, forKey: .path)
|
|
try container.encodeIfPresent(value, forKey: .value)
|
|
}
|
|
}
|
|
|