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.
109 lines
4.1 KiB
Swift
109 lines
4.1 KiB
Swift
//
|
|
// IamCert.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct IamCert: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var accessKey: String?
|
|
public var accessSecret: String?
|
|
public var account: String?
|
|
public var bitSize: Int64?
|
|
public var certificate: String?
|
|
public var createdAt: Date?
|
|
public var createdTime: String?
|
|
public var cryptoAlgorithm: String?
|
|
public var deleted: Bool?
|
|
public var displayName: String?
|
|
public var domainExpireTime: String?
|
|
public var expireInYears: Int64?
|
|
public var expireTime: String?
|
|
public var id: String?
|
|
public var name: String?
|
|
public var owner: String?
|
|
public var provider: String?
|
|
public var scope: String?
|
|
public var type: String?
|
|
public var updatedAt: Date?
|
|
|
|
public init(accessKey: String? = nil, accessSecret: String? = nil, account: String? = nil, bitSize: Int64? = nil, certificate: String? = nil, createdAt: Date? = nil, createdTime: String? = nil, cryptoAlgorithm: String? = nil, deleted: Bool? = nil, displayName: String? = nil, domainExpireTime: String? = nil, expireInYears: Int64? = nil, expireTime: String? = nil, id: String? = nil, name: String? = nil, owner: String? = nil, provider: String? = nil, scope: String? = nil, type: String? = nil, updatedAt: Date? = nil) {
|
|
self.accessKey = accessKey
|
|
self.accessSecret = accessSecret
|
|
self.account = account
|
|
self.bitSize = bitSize
|
|
self.certificate = certificate
|
|
self.createdAt = createdAt
|
|
self.createdTime = createdTime
|
|
self.cryptoAlgorithm = cryptoAlgorithm
|
|
self.deleted = deleted
|
|
self.displayName = displayName
|
|
self.domainExpireTime = domainExpireTime
|
|
self.expireInYears = expireInYears
|
|
self.expireTime = expireTime
|
|
self.id = id
|
|
self.name = name
|
|
self.owner = owner
|
|
self.provider = provider
|
|
self.scope = scope
|
|
self.type = type
|
|
self.updatedAt = updatedAt
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case accessKey
|
|
case accessSecret
|
|
case account
|
|
case bitSize
|
|
case certificate
|
|
case createdAt
|
|
case createdTime
|
|
case cryptoAlgorithm
|
|
case deleted
|
|
case displayName
|
|
case domainExpireTime
|
|
case expireInYears
|
|
case expireTime
|
|
case id
|
|
case name
|
|
case owner
|
|
case provider
|
|
case scope
|
|
case type
|
|
case updatedAt
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(accessKey, forKey: .accessKey)
|
|
try container.encodeIfPresent(accessSecret, forKey: .accessSecret)
|
|
try container.encodeIfPresent(account, forKey: .account)
|
|
try container.encodeIfPresent(bitSize, forKey: .bitSize)
|
|
try container.encodeIfPresent(certificate, forKey: .certificate)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(createdTime, forKey: .createdTime)
|
|
try container.encodeIfPresent(cryptoAlgorithm, forKey: .cryptoAlgorithm)
|
|
try container.encodeIfPresent(deleted, forKey: .deleted)
|
|
try container.encodeIfPresent(displayName, forKey: .displayName)
|
|
try container.encodeIfPresent(domainExpireTime, forKey: .domainExpireTime)
|
|
try container.encodeIfPresent(expireInYears, forKey: .expireInYears)
|
|
try container.encodeIfPresent(expireTime, forKey: .expireTime)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(owner, forKey: .owner)
|
|
try container.encodeIfPresent(provider, forKey: .provider)
|
|
try container.encodeIfPresent(scope, forKey: .scope)
|
|
try container.encodeIfPresent(type, forKey: .type)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension IamCert: Identifiable {}
|