public IList <ApiApplicationStage> GetApplicationStages(params string[] jobIds)
        {
            var results = new List <GhApplicationStage>();

            foreach (var jobId in jobIds)
            {
                var stagesOfJob = GetAll <GhApplicationStage>(GhApiConfig.GetApplicationStagesEndpoint(jobId));
                foreach (var stage in stagesOfJob)
                {
                    stage.JobId = jobId;
                }

                results.AddRange(stagesOfJob);
            }
            return(results.ToList <ApiApplicationStage>());
        }
        public ApiJob GetJobById(string id)
        {
            var request = new RestRequest(GhApiConfig.GetJobByIdEndpoint(id), Method.GET);

            return(Execute <GhJob>(request));
        }