Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
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.
2026-08-23 10:04:41 -07:00

51 lines
1.8 KiB
Swift

//
// CredentialIn.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CredentialIn: Sendable, Codable, ParameterConvertible, Hashable {
/** AccountID scopes the credential where the provider's Verify needs one. */
public var accountId: String?
/** Label names this connection; empty means \"default\". */
public var label: String?
/** OAuth is a bundle the CLI already obtained through its own local PKCE flow. Present ⇒ the Adopt path; absent ⇒ the Token path. */
public var oauth: OauthBundleIn?
/** Provider is the user-scoped provider's registry id, from the path. */
public var provider: String?
/** Token is the customer-held credential for the Verify path. Read on STDIN by the CLI, never argv; never logged, echoed, or stored outside KMS. */
public var token: String?
public init(accountId: String? = nil, label: String? = nil, oauth: OauthBundleIn? = nil, provider: String? = nil, token: String? = nil) {
self.accountId = accountId
self.label = label
self.oauth = oauth
self.provider = provider
self.token = token
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case accountId
case label
case oauth
case provider
case token
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(accountId, forKey: .accountId)
try container.encodeIfPresent(label, forKey: .label)
try container.encodeIfPresent(oauth, forKey: .oauth)
try container.encodeIfPresent(provider, forKey: .provider)
try container.encodeIfPresent(token, forKey: .token)
}
}