public List <Role> AllRolesByUserName(string userName) { var user = _caller.GetFormat <User>("/app/rest/users/username:{0}", userName); return(user.Roles.Role); }
public List <Build> ByBuildLocator(BuildLocator locator) { var buildWrapper = _caller.GetFormat <BuildWrapper>("/app/rest/builds?locator={0}", locator); if (int.Parse(buildWrapper.Count) > 0) { return(buildWrapper.Build); } return(new List <Build>()); }
public List <Change> ByChangeLocator(ChangeLocator locator) { var buildWrapper = _caller.GetFormat <ChangeWrapper>("/app/rest/changes?locator={0}", locator); // Some builds might not have any changes associated to it if (buildWrapper.Change != null && buildWrapper.Change.Count > 0) { return(buildWrapper.Change); } return(new List <Change>()); }
public BuildConfig ByConfigurationName(string buildConfigName) { var build = _caller.GetFormat <BuildConfig>("/app/rest/buildTypes/name:{0}", buildConfigName); return(build); }
public List <TestOccurrence> ByBuildId(string buildId, int count) { var testOccurenceWrapper = _caller.GetFormat <TestOccurrenceWrapper>("/app/rest/testOccurrences?locator=build:{0},count:{1}", buildId, count); return(testOccurenceWrapper.TestOccurrence); }
public Project ProjectByName(string projectLocatorName) { var project = _caller.GetFormat <Project>("/app/rest/projects/name:{0}", projectLocatorName); return(project); }
public Change ByChangeId(string id) { var change = _caller.GetFormat <Change>("/app/rest/changes/id:{0}", id); return(change); }
public List <Property> GetByBuildId(string buildId) { return(_caller.GetFormat <Properties>("/app/rest/builds/id:{0}/statistics", buildId).Property); }
public VcsRoot ById(string vcsRootId) { var vcsRoot = _caller.GetFormat <VcsRoot>("/app/rest/vcs-roots/id:{0}", vcsRootId); return(vcsRoot); }
public Build ByBuildInternalId(string buildInternalId) { var build = _caller.GetFormat <Build>("/app/rest/builds/id:{0}", buildInternalId); return(build); }