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.
36 lines
1.3 KiB
Swift
36 lines
1.3 KiB
Swift
//
|
|
// DriveIn.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct DriveIn: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Name is the drive's name, matching the same shape a space name does. It becomes the FIRST SEGMENT of every key the drive holds, which is why it may carry no \"/\". */
|
|
public var name: String?
|
|
/** Space is the space to create the drive in, from the path. It carries NO `url:\"-\"`, unlike the field below it, and the difference is the whole reason both tags are written out: zip's binder skips a field tagged \"-\" for EVERY URL source, path params included, so a path-borne value that carried it would arrive empty and the create would refuse a perfectly good address. */
|
|
public var space: String?
|
|
|
|
public init(name: String? = nil, space: String? = nil) {
|
|
self.name = name
|
|
self.space = space
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case name
|
|
case space
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(space, forKey: .space)
|
|
}
|
|
}
|
|
|