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.
70 lines
2.6 KiB
Swift
70 lines
2.6 KiB
Swift
//
|
|
// O11yGettableFunnel.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yGettableFunnel: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var createdAt: Int64?
|
|
public var createdBy: String?
|
|
public var description: String?
|
|
public var funnel: O11yStorableFunnel?
|
|
public var funnelId: String?
|
|
public var funnelName: String?
|
|
public var orgId: String?
|
|
public var steps: [O11yFunnelStep]?
|
|
public var updatedAt: Int64?
|
|
public var updatedBy: String?
|
|
public var userEmail: String?
|
|
|
|
public init(createdAt: Int64? = nil, createdBy: String? = nil, description: String? = nil, funnel: O11yStorableFunnel? = nil, funnelId: String? = nil, funnelName: String? = nil, orgId: String? = nil, steps: [O11yFunnelStep]? = nil, updatedAt: Int64? = nil, updatedBy: String? = nil, userEmail: String? = nil) {
|
|
self.createdAt = createdAt
|
|
self.createdBy = createdBy
|
|
self.description = description
|
|
self.funnel = funnel
|
|
self.funnelId = funnelId
|
|
self.funnelName = funnelName
|
|
self.orgId = orgId
|
|
self.steps = steps
|
|
self.updatedAt = updatedAt
|
|
self.updatedBy = updatedBy
|
|
self.userEmail = userEmail
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case createdAt = "created_at"
|
|
case createdBy = "created_by"
|
|
case description
|
|
case funnel
|
|
case funnelId = "funnel_id"
|
|
case funnelName = "funnel_name"
|
|
case orgId = "org_id"
|
|
case steps
|
|
case updatedAt = "updated_at"
|
|
case updatedBy = "updated_by"
|
|
case userEmail = "user_email"
|
|
}
|
|
|
|
// 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(createdBy, forKey: .createdBy)
|
|
try container.encodeIfPresent(description, forKey: .description)
|
|
try container.encodeIfPresent(funnel, forKey: .funnel)
|
|
try container.encodeIfPresent(funnelId, forKey: .funnelId)
|
|
try container.encodeIfPresent(funnelName, forKey: .funnelName)
|
|
try container.encodeIfPresent(orgId, forKey: .orgId)
|
|
try container.encodeIfPresent(steps, forKey: .steps)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
try container.encodeIfPresent(updatedBy, forKey: .updatedBy)
|
|
try container.encodeIfPresent(userEmail, forKey: .userEmail)
|
|
}
|
|
}
|
|
|