Files
2025-10-02 20:13:20 -04:00

42 lines
982 B
Swift

//
// SuccessCheck.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
#if canImport(AnyCodable)
import AnyCodable
#endif
/** Execute a shell command and check its exit status */
public struct SuccessCheck: Codable, JSONEncodable, Hashable {
public enum ModelType: String, Codable, CaseIterable {
case shell = "Shell"
}
/** The shell command to execute */
public var command: String
public var type: ModelType
public init(command: String, type: ModelType) {
self.command = command
self.type = type
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case command
case type
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(command, forKey: .command)
try container.encode(type, forKey: .type)
}
}