/// <summary> /// Gathers deployments based on release /// </summary> /// <param name="client">The Repository this is tacked on to.</param> /// <param name="release">The release to get deployments of.</param> /// <returns>Enumerable of Deployment Resources.</returns> internal static IEnumerable <DeploymentResource> GetReleaseDeployments(this IOctopusClient client, ReleaseResource release) { List <DeploymentResource> deployments = new List <DeploymentResource>(); client.Paginate <DeploymentResource>(release.Link(ResourceStrings.DeploymentLink), new { }, page => { deployments.AddRange(page.Items); return(true); }); return(deployments); }
public void ResolveDefect(ReleaseResource release) { Client.Post(release.Link("ResolveDefect")); }
public void RaiseDefect(ReleaseResource release, string description) { Client.Post(release.Link("ReportDefect"), new DefectResource(description)); }
public ResourceCollection <DefectResource> GetDefects(ReleaseResource release) { return(Client.List <DefectResource>(release.Link("Defects"))); }
public Task ResolveDefect(ReleaseResource release) { return(Client.Post(release.Link("ResolveDefect"))); }
public Task RaiseDefect(ReleaseResource release, string description) { return(Client.Post(release.Link("ReportDefect"), new DefectResource(description))); }