using System.Collections.Generic; using System.Threading.Tasks; namespace Octokit { /// /// A client for GitHub's Repository Deployment Statuses API. /// Gets and creates Deployment Statuses. /// /// /// See the Repository Deployment Statuses API documentation for more information. /// public interface IDeploymentStatusClient { /// /// Gets all the statuses for the given deployment. Any user with pull access to a repository can /// view deployments. /// /// /// http://developer.github.com/v3/repos/deployments/#list-deployment-statuses /// /// The owner of the repository. /// The name of the repository. /// The id of the deployment. Task> GetAll(string owner, string name, int deploymentId); /// /// Gets all the statuses for the given deployment. Any user with pull access to a repository can /// view deployments. /// /// /// http://developer.github.com/v3/repos/deployments/#list-deployment-statuses /// /// The Id of the repository. /// The id of the deployment. Task> GetAll(long repositoryId, int deploymentId); /// /// Gets all the statuses for the given deployment. Any user with pull access to a repository can /// view deployments. /// /// /// http://developer.github.com/v3/repos/deployments/#list-deployment-statuses /// /// The owner of the repository. /// The name of the repository. /// The id of the deployment. /// Options for changing the API response Task> GetAll(string owner, string name, int deploymentId, ApiOptions options); /// /// Gets all the statuses for the given deployment. Any user with pull access to a repository can /// view deployments. /// /// /// http://developer.github.com/v3/repos/deployments/#list-deployment-statuses /// /// The Id of the repository. /// The id of the deployment. /// Options for changing the API response Task> GetAll(long repositoryId, int deploymentId, ApiOptions options); /// /// Creates a new status for the given deployment. Users with push access can create deployment /// statuses for a given deployment. /// /// /// http://developer.github.com/v3/repos/deployments/#create-a-deployment-status /// /// The owner of the repository. /// The name of the repository. /// The id of the deployment. /// The new deployment status to create. Task Create(string owner, string name, int deploymentId, NewDeploymentStatus newDeploymentStatus); /// /// Creates a new status for the given deployment. Users with push access can create deployment /// statuses for a given deployment. /// /// /// http://developer.github.com/v3/repos/deployments/#create-a-deployment-status /// /// The Id of the repository. /// The id of the deployment. /// The new deployment status to create. Task Create(long repositoryId, int deploymentId, NewDeploymentStatus newDeploymentStatus); } }