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.
62 lines
2.1 KiB
Swift
62 lines
2.1 KiB
Swift
//
|
|
// IamConfig.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct IamConfig: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var authenticationSchemes: [IamScheme]?
|
|
public var bulk: IamBulk?
|
|
public var changePassword: IamToggle?
|
|
public var documentationUri: String?
|
|
public var etag: IamToggle?
|
|
public var filter: IamFilter?
|
|
public var patch: IamToggle?
|
|
public var schemas: [String]?
|
|
public var sort: IamToggle?
|
|
|
|
public init(authenticationSchemes: [IamScheme]? = nil, bulk: IamBulk? = nil, changePassword: IamToggle? = nil, documentationUri: String? = nil, etag: IamToggle? = nil, filter: IamFilter? = nil, patch: IamToggle? = nil, schemas: [String]? = nil, sort: IamToggle? = nil) {
|
|
self.authenticationSchemes = authenticationSchemes
|
|
self.bulk = bulk
|
|
self.changePassword = changePassword
|
|
self.documentationUri = documentationUri
|
|
self.etag = etag
|
|
self.filter = filter
|
|
self.patch = patch
|
|
self.schemas = schemas
|
|
self.sort = sort
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case authenticationSchemes
|
|
case bulk
|
|
case changePassword
|
|
case documentationUri
|
|
case etag
|
|
case filter
|
|
case patch
|
|
case schemas
|
|
case sort
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(authenticationSchemes, forKey: .authenticationSchemes)
|
|
try container.encodeIfPresent(bulk, forKey: .bulk)
|
|
try container.encodeIfPresent(changePassword, forKey: .changePassword)
|
|
try container.encodeIfPresent(documentationUri, forKey: .documentationUri)
|
|
try container.encodeIfPresent(etag, forKey: .etag)
|
|
try container.encodeIfPresent(filter, forKey: .filter)
|
|
try container.encodeIfPresent(patch, forKey: .patch)
|
|
try container.encodeIfPresent(schemas, forKey: .schemas)
|
|
try container.encodeIfPresent(sort, forKey: .sort)
|
|
}
|
|
}
|
|
|