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

105 lines
4.2 KiB
Swift

//
// FunctionDetail.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct FunctionDetail: Sendable, Codable, ParameterConvertible, Hashable {
public var avgDurationMs: Double?
public var createdAt: String?
public var endpoint: String?
public var envCount: Int64?
public var environment: String?
public var errors7d: Int64?
public var image: String?
public var invocations7d: Int64?
public var lastDeployedAt: String?
public var memoryLimit: String?
public var name: String?
public var namespace: String?
/** RecentInvocations is its twenty most recent runs, newest first. */
public var recentInvocations: [InvocationView]?
/** Secrets are the NAMES it mounts. Values are never read or returned. */
public var secrets: [String]?
public var status: String?
public var successRate: Double?
public var target: String?
public var timeoutSec: Int64?
/** Triggers is how this function is reached. */
public var triggers: [TriggerView]?
public init(avgDurationMs: Double? = nil, createdAt: String? = nil, endpoint: String? = nil, envCount: Int64? = nil, environment: String? = nil, errors7d: Int64? = nil, image: String? = nil, invocations7d: Int64? = nil, lastDeployedAt: String? = nil, memoryLimit: String? = nil, name: String? = nil, namespace: String? = nil, recentInvocations: [InvocationView]? = nil, secrets: [String]? = nil, status: String? = nil, successRate: Double? = nil, target: String? = nil, timeoutSec: Int64? = nil, triggers: [TriggerView]? = nil) {
self.avgDurationMs = avgDurationMs
self.createdAt = createdAt
self.endpoint = endpoint
self.envCount = envCount
self.environment = environment
self.errors7d = errors7d
self.image = image
self.invocations7d = invocations7d
self.lastDeployedAt = lastDeployedAt
self.memoryLimit = memoryLimit
self.name = name
self.namespace = namespace
self.recentInvocations = recentInvocations
self.secrets = secrets
self.status = status
self.successRate = successRate
self.target = target
self.timeoutSec = timeoutSec
self.triggers = triggers
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case avgDurationMs
case createdAt
case endpoint
case envCount
case environment
case errors7d
case image
case invocations7d
case lastDeployedAt
case memoryLimit
case name
case namespace
case recentInvocations
case secrets
case status
case successRate
case target
case timeoutSec
case triggers
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(avgDurationMs, forKey: .avgDurationMs)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(endpoint, forKey: .endpoint)
try container.encodeIfPresent(envCount, forKey: .envCount)
try container.encodeIfPresent(environment, forKey: .environment)
try container.encodeIfPresent(errors7d, forKey: .errors7d)
try container.encodeIfPresent(image, forKey: .image)
try container.encodeIfPresent(invocations7d, forKey: .invocations7d)
try container.encodeIfPresent(lastDeployedAt, forKey: .lastDeployedAt)
try container.encodeIfPresent(memoryLimit, forKey: .memoryLimit)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(namespace, forKey: .namespace)
try container.encodeIfPresent(recentInvocations, forKey: .recentInvocations)
try container.encodeIfPresent(secrets, forKey: .secrets)
try container.encodeIfPresent(status, forKey: .status)
try container.encodeIfPresent(successRate, forKey: .successRate)
try container.encodeIfPresent(target, forKey: .target)
try container.encodeIfPresent(timeoutSec, forKey: .timeoutSec)
try container.encodeIfPresent(triggers, forKey: .triggers)
}
}