mirror of
https://github.com/actions/runner.git
synced 2025-12-27 03:48:56 +08:00
GitHub Actions Runner
This commit is contained in:
48
src/Sdk/BuildWebApi/Api/Contracts/DesignerProcess.cs
Normal file
48
src/Sdk/BuildWebApi/Api/Contracts/DesignerProcess.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.Serialization;
|
||||
using GitHub.Services.WebApi;
|
||||
|
||||
namespace GitHub.Build.WebApi
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a build process supported by the build definition designer.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public class DesignerProcess : BuildProcess
|
||||
{
|
||||
public DesignerProcess()
|
||||
:this(null)
|
||||
{
|
||||
}
|
||||
|
||||
internal DesignerProcess(
|
||||
ISecuredObject securedObject)
|
||||
: base(ProcessType.Designer, securedObject)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The list of phases.
|
||||
/// </summary>
|
||||
public List<Phase> Phases
|
||||
{
|
||||
get
|
||||
{
|
||||
if (m_phases == null)
|
||||
{
|
||||
m_phases = new List<Phase>();
|
||||
}
|
||||
return m_phases;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Name = "Phases", EmitDefaultValue = false)]
|
||||
private List<Phase> m_phases;
|
||||
|
||||
/// <summary>
|
||||
/// The target for the build process.
|
||||
/// </summary>
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public DesignerProcessTarget Target { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user