namespace marlin.core.models.meta; public class Artifact { public Artifact(string id) { this.Id = id; } public string Id { get; } public string Path { get; set; } public string Type { get; set; } public ArtifactHandle Handle { get; set; } = ArtifactHandle.Defer; public bool RequiresOrchestratorUpload() { return this.Type?.StartsWith("test/") == true || this.Type?.StartsWith("logs/") == true; } } public enum ArtifactHandle { Immediate, Step, Defer }