2023-03-28 15:45:00 -04:00
|
|
|
using System;
|
2023-03-21 16:05:32 +01:00
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace GitHub.DistributedTask.WebApi
|
|
|
|
|
{
|
|
|
|
|
public class Runner
|
|
|
|
|
{
|
2023-03-28 15:45:00 -04:00
|
|
|
|
|
|
|
|
public class Authorization
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The url to refresh tokens
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty("authorization_url")]
|
|
|
|
|
public Uri AuthorizationUrl
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
internal set;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The url to connect to to poll for messages
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty("server_url")]
|
|
|
|
|
public string ServerUrl
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
internal set;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The client id to use when connecting to the authorization_url
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty("client_id")]
|
|
|
|
|
public string ClientId
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
internal set;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-21 16:05:32 +01:00
|
|
|
[JsonProperty("name")]
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
internal set;
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-28 15:45:00 -04:00
|
|
|
[JsonProperty("id")]
|
|
|
|
|
public Int32 Id
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
internal set;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[JsonProperty("authorization")]
|
|
|
|
|
public Authorization RunnerAuthorization
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
internal set;
|
|
|
|
|
}
|
2023-03-21 16:05:32 +01:00
|
|
|
}
|
|
|
|
|
}
|