2023-06-02 21:47:59 +02:00
|
|
|
using System;
|
2023-02-07 15:10:53 -05:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
using GitHub.DistributedTask.WebApi;
|
2023-05-01 08:33:03 -04:00
|
|
|
using Sdk.RSWebApi.Contracts;
|
2023-02-07 15:10:53 -05:00
|
|
|
|
|
|
|
|
namespace GitHub.Actions.RunService.WebApi
|
|
|
|
|
{
|
|
|
|
|
[DataContract]
|
|
|
|
|
public class CompleteJobRequest
|
|
|
|
|
{
|
|
|
|
|
[DataMember(Name = "planId", EmitDefaultValue = false)]
|
|
|
|
|
public Guid PlanID { get; set; }
|
2023-05-01 08:33:03 -04:00
|
|
|
|
2023-02-07 15:10:53 -05:00
|
|
|
[DataMember(Name = "jobId", EmitDefaultValue = false)]
|
|
|
|
|
public Guid JobID { get; set; }
|
2023-05-01 08:33:03 -04:00
|
|
|
|
2023-02-07 15:10:53 -05:00
|
|
|
[DataMember(Name = "conclusion")]
|
|
|
|
|
public TaskResult Conclusion { get; set; }
|
2023-05-01 08:33:03 -04:00
|
|
|
|
2023-02-07 15:10:53 -05:00
|
|
|
[DataMember(Name = "outputs", EmitDefaultValue = false)]
|
2023-05-01 08:33:03 -04:00
|
|
|
public Dictionary<string, VariableValue> Outputs { get; set; }
|
|
|
|
|
|
2023-02-07 15:10:53 -05:00
|
|
|
[DataMember(Name = "stepResults", EmitDefaultValue = false)]
|
|
|
|
|
public IList<StepResult> StepResults { get; set; }
|
2023-05-01 08:33:03 -04:00
|
|
|
|
|
|
|
|
[DataMember(Name = "annotations", EmitDefaultValue = false)]
|
|
|
|
|
public IList<Annotation> Annotations { get; set; }
|
2023-06-16 00:13:08 -04:00
|
|
|
|
|
|
|
|
[DataMember(Name = "environmentUrl", EmitDefaultValue = false)]
|
|
|
|
|
public string EnvironmentUrl { get; set; }
|
2023-02-07 15:10:53 -05:00
|
|
|
}
|
2023-05-01 08:33:03 -04:00
|
|
|
}
|