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.
85 lines
2.9 KiB
Swift
85 lines
2.9 KiB
Swift
//
|
|
// IamRole.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct IamRole: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var createdAt: Date?
|
|
public var createdTime: String?
|
|
public var deleted: Bool?
|
|
public var description: String?
|
|
public var displayName: String?
|
|
public var domains: [String]?
|
|
public var id: String?
|
|
public var isEnabled: Bool?
|
|
public var name: String?
|
|
public var owner: String?
|
|
public var roles: [String]?
|
|
public var teams: [String]?
|
|
public var updatedAt: Date?
|
|
public var users: [String]?
|
|
|
|
public init(createdAt: Date? = nil, createdTime: String? = nil, deleted: Bool? = nil, description: String? = nil, displayName: String? = nil, domains: [String]? = nil, id: String? = nil, isEnabled: Bool? = nil, name: String? = nil, owner: String? = nil, roles: [String]? = nil, teams: [String]? = nil, updatedAt: Date? = nil, users: [String]? = nil) {
|
|
self.createdAt = createdAt
|
|
self.createdTime = createdTime
|
|
self.deleted = deleted
|
|
self.description = description
|
|
self.displayName = displayName
|
|
self.domains = domains
|
|
self.id = id
|
|
self.isEnabled = isEnabled
|
|
self.name = name
|
|
self.owner = owner
|
|
self.roles = roles
|
|
self.teams = teams
|
|
self.updatedAt = updatedAt
|
|
self.users = users
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case createdAt
|
|
case createdTime
|
|
case deleted
|
|
case description
|
|
case displayName
|
|
case domains
|
|
case id
|
|
case isEnabled
|
|
case name
|
|
case owner
|
|
case roles
|
|
case teams
|
|
case updatedAt
|
|
case users
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(createdTime, forKey: .createdTime)
|
|
try container.encodeIfPresent(deleted, forKey: .deleted)
|
|
try container.encodeIfPresent(description, forKey: .description)
|
|
try container.encodeIfPresent(displayName, forKey: .displayName)
|
|
try container.encodeIfPresent(domains, forKey: .domains)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
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(updatedAt, forKey: .updatedAt)
|
|
try container.encodeIfPresent(users, forKey: .users)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension IamRole: Identifiable {}
|