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.4 KiB
Swift
46 lines
1.4 KiB
Swift
//
|
|
// IamListResponse.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct IamListResponse: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var resources: [JSONValue]?
|
|
public var itemsPerPage: Int64?
|
|
public var schemas: [String]?
|
|
public var startIndex: Int64?
|
|
public var totalResults: Int64?
|
|
|
|
public init(resources: [JSONValue]? = nil, itemsPerPage: Int64? = nil, schemas: [String]? = nil, startIndex: Int64? = nil, totalResults: Int64? = nil) {
|
|
self.resources = resources
|
|
self.itemsPerPage = itemsPerPage
|
|
self.schemas = schemas
|
|
self.startIndex = startIndex
|
|
self.totalResults = totalResults
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case resources = "Resources"
|
|
case itemsPerPage
|
|
case schemas
|
|
case startIndex
|
|
case totalResults
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(resources, forKey: .resources)
|
|
try container.encodeIfPresent(itemsPerPage, forKey: .itemsPerPage)
|
|
try container.encodeIfPresent(schemas, forKey: .schemas)
|
|
try container.encodeIfPresent(startIndex, forKey: .startIndex)
|
|
try container.encodeIfPresent(totalResults, forKey: .totalResults)
|
|
}
|
|
}
|
|
|