GitHub Actions Runner

This commit is contained in:
Tingluo Huang
2019-10-10 00:52:42 -04:00
commit c8afc84840
1255 changed files with 198670 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
using System;
using System.Runtime.Serialization;
using GitHub.Services.WebApi;
namespace GitHub.Build.WebApi
{
/// <summary>
/// Represents a reference to an agent pool.
/// </summary>
[DataContract]
public class TaskAgentPoolReference : BaseSecuredObject
{
public TaskAgentPoolReference()
{
}
public TaskAgentPoolReference(Int32 id)
: this(id, null)
{
}
internal TaskAgentPoolReference(
ISecuredObject securedObject)
: base(securedObject)
{
}
internal TaskAgentPoolReference(
Int32 id,
ISecuredObject securedObject)
: base(securedObject)
{
this.Id = id;
}
/// <summary>
/// The pool ID.
/// </summary>
[DataMember(EmitDefaultValue = false)]
public Int32 Id
{
get;
set;
}
/// <summary>
/// The pool name.
/// </summary>
[DataMember(EmitDefaultValue = false)]
public String Name
{
get;
set;
}
/// <summary>
/// A value indicating whether or not this pool is managed by the service.
/// </summary>
[DataMember(EmitDefaultValue = false)]
public Boolean IsHosted
{
get;
set;
}
}
}