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.
59 lines
1.9 KiB
Swift
59 lines
1.9 KiB
Swift
//
|
|
// DataroomRoom.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct DataroomRoom: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** CreatedAt is when the room was created, in unix milliseconds. */
|
|
public var createdAt: Int64?
|
|
/** Description is the room's description, null when none was given. */
|
|
public var description: String?
|
|
/** ID is the room id, which is what other dataroom calls address it by. */
|
|
public var id: String?
|
|
/** Name is the room's display name. */
|
|
public var name: String?
|
|
/** PId is the room's short public identifier, unique within the tenant. */
|
|
public var pId: String?
|
|
/** UpdatedAt is when the room last changed, in unix milliseconds. */
|
|
public var updatedAt: Int64?
|
|
|
|
public init(createdAt: Int64? = nil, description: String? = nil, id: String? = nil, name: String? = nil, pId: String? = nil, updatedAt: Int64? = nil) {
|
|
self.createdAt = createdAt
|
|
self.description = description
|
|
self.id = id
|
|
self.name = name
|
|
self.pId = pId
|
|
self.updatedAt = updatedAt
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case createdAt
|
|
case description
|
|
case id
|
|
case name
|
|
case pId
|
|
case updatedAt
|
|
}
|
|
|
|
// 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(description, forKey: .description)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(pId, forKey: .pId)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension DataroomRoom: Identifiable {}
|