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