mirror of
https://github.com/actions/runner.git
synced 2025-12-17 07:54:19 +00:00
GitHub Actions Runner
This commit is contained in:
66
src/Sdk/BuildWebApi/Api/Contracts/TaskAgentPoolReference.cs
Normal file
66
src/Sdk/BuildWebApi/Api/Contracts/TaskAgentPoolReference.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user