using System; namespace Octokit.Reactive { /// /// A client for GitHub's Repository Deployments API. /// Gets and creates Deployments. /// /// /// See the Repository Deployments API documentation for more information. /// public interface IObservableDeploymentsClient { /// /// 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 IObservable 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 IObservable GetAll(int 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 IObservable 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 IObservable GetAll(int 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 IObservable 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 IObservable Create(int repositoryId, NewDeployment newDeployment); /// /// Client for managing deployment status. /// IObservableDeploymentStatusClient Status { get; } } }