using System; namespace Octokit.Reactive { /// /// A client for GitHub's Git Trees API. /// /// /// See the Git Trees API documentation for more information. /// public interface IObservableTreesClient { /// /// Gets a Tree Response for a given SHA. /// /// /// http://developer.github.com/v3/git/trees/#get-a-tree /// /// The owner of the repository /// The name of the repository /// The SHA that references the tree [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] IObservable Get(string owner, string name, string reference); /// /// Gets a Tree Response for a given SHA. /// /// /// http://developer.github.com/v3/git/trees/#get-a-tree /// /// The Id of the repository /// The SHA that references the tree [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] IObservable Get(int repositoryId, string reference); /// /// Gets a Tree Response for a given SHA. /// /// /// https://developer.github.com/v3/git/trees/#get-a-tree-recursively /// /// The owner of the repository /// The name of the repository /// The SHA that references the tree IObservable GetRecursive(string owner, string name, string reference); /// /// Gets a Tree Response for a given SHA. /// /// /// https://developer.github.com/v3/git/trees/#get-a-tree-recursively /// /// The Id of the repository /// The SHA that references the tree IObservable GetRecursive(int repositoryId, string reference); /// /// Creates a new Tree in the specified repo /// /// /// http://developer.github.com/v3/git/trees/#create-a-tree /// /// The owner of the repository /// The name of the repository /// The value of the new tree IObservable Create(string owner, string name, NewTree newTree); /// /// Creates a new Tree in the specified repo /// /// /// http://developer.github.com/v3/git/trees/#create-a-tree /// /// The Id of the repository /// The value of the new tree IObservable Create(int repositoryId, NewTree newTree); } }