using System; using Newtonsoft.Json; namespace GitHub.DistributedTask.WebApi { public class Runner { public class Authorization { /// /// The url to refresh tokens /// [JsonProperty("authorization_url")] public Uri AuthorizationUrl { get; internal set; } /// /// The url to refresh tokens with legacy service /// [JsonProperty("legacy_authorization_url")] public Uri LegacyAuthorizationUrl { get; internal set; } /// /// The url to connect to poll for messages /// [JsonProperty("server_url")] public string ServerUrl { get; internal set; } /// /// The client id to use when connecting to the authorization_url /// [JsonProperty("client_id")] public string ClientId { get; internal set; } } [JsonProperty("name")] public string Name { get; internal set; } [JsonProperty("id")] public ulong Id { get; internal set; } [JsonProperty("authorization")] public Authorization RunnerAuthorization { get; internal set; } } }