|
|
|
@ -0,0 +1,114 @@
|
|
|
|
|
#region Copyright
|
|
|
|
|
// /************************************************************************
|
|
|
|
|
// Copyright (c) 2017 Jamie Rees
|
|
|
|
|
// File: AppveyorProject.cs
|
|
|
|
|
// Created By: Jamie Rees
|
|
|
|
|
//
|
|
|
|
|
// Permission is hereby granted, free of charge, to any person obtaining
|
|
|
|
|
// a copy of this software and associated documentation files (the
|
|
|
|
|
// "Software"), to deal in the Software without restriction, including
|
|
|
|
|
// without limitation the rights to use, copy, modify, merge, publish,
|
|
|
|
|
// distribute, sublicense, and/or sell copies of the Software, and to
|
|
|
|
|
// permit persons to whom the Software is furnished to do so, subject to
|
|
|
|
|
// the following conditions:
|
|
|
|
|
//
|
|
|
|
|
// The above copyright notice and this permission notice shall be
|
|
|
|
|
// included in all copies or substantial portions of the Software.
|
|
|
|
|
//
|
|
|
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
|
|
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
|
|
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
|
|
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
|
|
|
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
|
|
|
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
|
|
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
|
// ************************************************************************/
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Ombi.Api.Models.Appveyor
|
|
|
|
|
{
|
|
|
|
|
public class AppveyorProjects
|
|
|
|
|
{
|
|
|
|
|
public Project project { get; set; }
|
|
|
|
|
public Build[] builds { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class Project
|
|
|
|
|
{
|
|
|
|
|
public int projectId { get; set; }
|
|
|
|
|
public int accountId { get; set; }
|
|
|
|
|
public string accountName { get; set; }
|
|
|
|
|
public object[] builds { get; set; }
|
|
|
|
|
public string name { get; set; }
|
|
|
|
|
public string slug { get; set; }
|
|
|
|
|
public string repositoryType { get; set; }
|
|
|
|
|
public string repositoryScm { get; set; }
|
|
|
|
|
public string repositoryName { get; set; }
|
|
|
|
|
public bool isPrivate { get; set; }
|
|
|
|
|
public bool skipBranchesWithoutAppveyorYml { get; set; }
|
|
|
|
|
public bool enableSecureVariablesInPullRequests { get; set; }
|
|
|
|
|
public bool enableSecureVariablesInPullRequestsFromSameRepo { get; set; }
|
|
|
|
|
public bool enableDeploymentInPullRequests { get; set; }
|
|
|
|
|
public bool rollingBuilds { get; set; }
|
|
|
|
|
public bool alwaysBuildClosedPullRequests { get; set; }
|
|
|
|
|
public string tags { get; set; }
|
|
|
|
|
public Securitydescriptor securityDescriptor { get; set; }
|
|
|
|
|
public DateTime created { get; set; }
|
|
|
|
|
public DateTime updated { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class Securitydescriptor
|
|
|
|
|
{
|
|
|
|
|
public Accessrightdefinition[] accessRightDefinitions { get; set; }
|
|
|
|
|
public Roleace[] roleAces { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class Accessrightdefinition
|
|
|
|
|
{
|
|
|
|
|
public string name { get; set; }
|
|
|
|
|
public string description { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class Roleace
|
|
|
|
|
{
|
|
|
|
|
public int roleId { get; set; }
|
|
|
|
|
public string name { get; set; }
|
|
|
|
|
public bool isAdmin { get; set; }
|
|
|
|
|
public Accessright[] accessRights { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class Accessright
|
|
|
|
|
{
|
|
|
|
|
public string name { get; set; }
|
|
|
|
|
public bool allowed { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class Build
|
|
|
|
|
{
|
|
|
|
|
public int buildId { get; set; }
|
|
|
|
|
public object[] jobs { get; set; }
|
|
|
|
|
public int buildNumber { get; set; }
|
|
|
|
|
public string version { get; set; }
|
|
|
|
|
public string message { get; set; }
|
|
|
|
|
public string messageExtended { get; set; }
|
|
|
|
|
public string branch { get; set; }
|
|
|
|
|
public bool isTag { get; set; }
|
|
|
|
|
public string commitId { get; set; }
|
|
|
|
|
public string authorName { get; set; }
|
|
|
|
|
public string authorUsername { get; set; }
|
|
|
|
|
public string committerName { get; set; }
|
|
|
|
|
public string committerUsername { get; set; }
|
|
|
|
|
public DateTime committed { get; set; }
|
|
|
|
|
public object[] messages { get; set; }
|
|
|
|
|
public string status { get; set; }
|
|
|
|
|
public DateTime started { get; set; }
|
|
|
|
|
public DateTime finished { get; set; }
|
|
|
|
|
public DateTime created { get; set; }
|
|
|
|
|
public DateTime updated { get; set; }
|
|
|
|
|
public string pullRequestId { get; set; }
|
|
|
|
|
public string pullRequestName { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|