mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The lock sat at 574d1f1d while the product moved on. The team surface stopped at rooms — no messages path, no way to open one — so anything built on this client had to reach past it with its own HTTP calls, which is the duplication a generated client exists to prevent.
66 lines
2.2 KiB
Swift
66 lines
2.2 KiB
Swift
//
|
|
// IamRolesInput.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct IamRolesInput: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var createdTime: String?
|
|
public var description: String?
|
|
public var displayName: String?
|
|
public var domains: [String]?
|
|
public var isEnabled: Bool?
|
|
public var name: String?
|
|
public var owner: String?
|
|
public var roles: [String]?
|
|
public var teams: [String]?
|
|
public var users: [String]?
|
|
|
|
public init(createdTime: String? = nil, description: String? = nil, displayName: String? = nil, domains: [String]? = nil, isEnabled: Bool? = nil, name: String? = nil, owner: String? = nil, roles: [String]? = nil, teams: [String]? = nil, users: [String]? = nil) {
|
|
self.createdTime = createdTime
|
|
self.description = description
|
|
self.displayName = displayName
|
|
self.domains = domains
|
|
self.isEnabled = isEnabled
|
|
self.name = name
|
|
self.owner = owner
|
|
self.roles = roles
|
|
self.teams = teams
|
|
self.users = users
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case createdTime
|
|
case description
|
|
case displayName
|
|
case domains
|
|
case isEnabled
|
|
case name
|
|
case owner
|
|
case roles
|
|
case teams
|
|
case users
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(createdTime, forKey: .createdTime)
|
|
try container.encodeIfPresent(description, forKey: .description)
|
|
try container.encodeIfPresent(displayName, forKey: .displayName)
|
|
try container.encodeIfPresent(domains, forKey: .domains)
|
|
try container.encodeIfPresent(isEnabled, forKey: .isEnabled)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(owner, forKey: .owner)
|
|
try container.encodeIfPresent(roles, forKey: .roles)
|
|
try container.encodeIfPresent(teams, forKey: .teams)
|
|
try container.encodeIfPresent(users, forKey: .users)
|
|
}
|
|
}
|
|
|