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.
90 lines
3.2 KiB
Swift
90 lines
3.2 KiB
Swift
//
|
|
// IamInvitationsInput.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct IamInvitationsInput: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var application: String?
|
|
public var code: String?
|
|
public var createdTime: String?
|
|
public var defaultCode: String?
|
|
public var displayName: String?
|
|
public var email: String?
|
|
public var isRegexp: Bool?
|
|
public var name: String?
|
|
public var owner: String?
|
|
public var phone: String?
|
|
public var quota: Int64?
|
|
public var signupGroup: String?
|
|
public var state: String?
|
|
public var updatedTime: String?
|
|
public var usedCount: Int64?
|
|
public var username: String?
|
|
|
|
public init(application: String? = nil, code: String? = nil, createdTime: String? = nil, defaultCode: String? = nil, displayName: String? = nil, email: String? = nil, isRegexp: Bool? = nil, name: String? = nil, owner: String? = nil, phone: String? = nil, quota: Int64? = nil, signupGroup: String? = nil, state: String? = nil, updatedTime: String? = nil, usedCount: Int64? = nil, username: String? = nil) {
|
|
self.application = application
|
|
self.code = code
|
|
self.createdTime = createdTime
|
|
self.defaultCode = defaultCode
|
|
self.displayName = displayName
|
|
self.email = email
|
|
self.isRegexp = isRegexp
|
|
self.name = name
|
|
self.owner = owner
|
|
self.phone = phone
|
|
self.quota = quota
|
|
self.signupGroup = signupGroup
|
|
self.state = state
|
|
self.updatedTime = updatedTime
|
|
self.usedCount = usedCount
|
|
self.username = username
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case application
|
|
case code
|
|
case createdTime
|
|
case defaultCode
|
|
case displayName
|
|
case email
|
|
case isRegexp
|
|
case name
|
|
case owner
|
|
case phone
|
|
case quota
|
|
case signupGroup
|
|
case state
|
|
case updatedTime
|
|
case usedCount
|
|
case username
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(application, forKey: .application)
|
|
try container.encodeIfPresent(code, forKey: .code)
|
|
try container.encodeIfPresent(createdTime, forKey: .createdTime)
|
|
try container.encodeIfPresent(defaultCode, forKey: .defaultCode)
|
|
try container.encodeIfPresent(displayName, forKey: .displayName)
|
|
try container.encodeIfPresent(email, forKey: .email)
|
|
try container.encodeIfPresent(isRegexp, forKey: .isRegexp)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(owner, forKey: .owner)
|
|
try container.encodeIfPresent(phone, forKey: .phone)
|
|
try container.encodeIfPresent(quota, forKey: .quota)
|
|
try container.encodeIfPresent(signupGroup, forKey: .signupGroup)
|
|
try container.encodeIfPresent(state, forKey: .state)
|
|
try container.encodeIfPresent(updatedTime, forKey: .updatedTime)
|
|
try container.encodeIfPresent(usedCount, forKey: .usedCount)
|
|
try container.encodeIfPresent(username, forKey: .username)
|
|
}
|
|
}
|
|
|