Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
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.
2026-09-05 18:55:38 -07:00

46 lines
1.5 KiB
Swift

//
// PresignResponse.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct PresignResponse: Sendable, Codable, ParameterConvertible, Hashable {
/** seconds until the URL expires */
public var expiresIn: Int64?
/** Key is the object key the URL was signed for, relative to the bucket root and path-cleaned — so it is what the store will actually read or write, which is not always the string the caller sent. The signature covers this one bucket and this one key: a URL minted here reaches nothing else. */
public var key: String?
/** \"PUT\" (upload) or \"GET\" (download) */
public var method: String?
/** presigned URL the browser follows directly */
public var url: String?
public init(expiresIn: Int64? = nil, key: String? = nil, method: String? = nil, url: String? = nil) {
self.expiresIn = expiresIn
self.key = key
self.method = method
self.url = url
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case expiresIn
case key
case method
case url
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(expiresIn, forKey: .expiresIn)
try container.encodeIfPresent(key, forKey: .key)
try container.encodeIfPresent(method, forKey: .method)
try container.encodeIfPresent(url, forKey: .url)
}
}