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.
56 lines
2.3 KiB
Swift
56 lines
2.3 KiB
Swift
//
|
|
// ProjectView.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ProjectView: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Applications is how many platform apps this org has under the project, counted per request. It is the one fact IAM cannot answer about a project. */
|
|
public var applications: Int64?
|
|
/** CreatedAt is IAM's creation time as unix seconds. 0 when IAM's timestamp is absent or unparseable — never a fabricated time. */
|
|
public var createdAt: Int64?
|
|
/** Description is IAM's free text about the project. Nothing derives from it. */
|
|
public var description: String?
|
|
/** Name is IAM's display name, falling back to the slug when the project has none, so this is never empty. */
|
|
public var name: String?
|
|
/** Org is the project's IAM owner, and the tenant every app under it deploys into. It comes from the validated identity, never from the request. */
|
|
public var org: String?
|
|
/** Slug is the project's IAM name — half of the (org,name) identity, the `:project` path segment, and the scope key an app is filed under. It is the project's address; Name is not. */
|
|
public var slug: String?
|
|
|
|
public init(applications: Int64? = nil, createdAt: Int64? = nil, description: String? = nil, name: String? = nil, org: String? = nil, slug: String? = nil) {
|
|
self.applications = applications
|
|
self.createdAt = createdAt
|
|
self.description = description
|
|
self.name = name
|
|
self.org = org
|
|
self.slug = slug
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case applications
|
|
case createdAt
|
|
case description
|
|
case name
|
|
case org
|
|
case slug
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(applications, forKey: .applications)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(description, forKey: .description)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(org, forKey: .org)
|
|
try container.encodeIfPresent(slug, forKey: .slug)
|
|
}
|
|
}
|
|
|