using System; using System.Diagnostics.CodeAnalysis; namespace Octokit.Reactive { /// /// A client for GitHub's Repository Pages API. /// /// /// See the Repository Pages API documentation for more information. /// public interface IObservableRepositoryPagesClient { /// /// Gets the page metadata for a given repository /// /// The owner of the repository /// The name of the repository /// /// See the API documentation for more information. /// [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] IObservable Get(string owner, string name); /// /// Gets the page metadata for a given repository /// /// The Id of the repository /// /// See the API documentation for more information. /// [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] IObservable Get(int repositoryId); /// /// Gets all build metadata for a given repository /// /// The owner of the repository /// The name of the repository /// /// See the API documentation for more information. /// IObservable GetAll(string owner, string name); /// /// Gets all build metadata for a given repository /// /// The Id of the repository /// /// See the API documentation for more information. /// IObservable GetAll(int repositoryId); /// /// Gets all build metadata for a given repository /// /// The owner of the repository /// The name of the repository /// Options to change the API response /// /// See the API documentation for more information. /// IObservable GetAll(string owner, string name, ApiOptions options); /// /// Gets all build metadata for a given repository /// /// The Id of the repository /// Options to change the API response /// /// See the API documentation for more information. /// IObservable GetAll(int repositoryId, ApiOptions options); /// /// Gets the build metadata for the last build for a given repository /// /// The owner of the repository /// The name of the repository /// /// See the API documentation for more information. /// IObservable GetLatest(string owner, string name); /// /// Gets the build metadata for the last build for a given repository /// /// The Id of the repository /// /// See the API documentation for more information. /// IObservable GetLatest(int repositoryId); /// /// Requests your site be built from the latest revision on the default branch for a given repository /// /// The owner of the repository /// The name of the repository /// /// See the API documentation for more information. /// IObservable RequestPageBuild(string owner, string name); /// /// Requests your site be built from the latest revision on the default branch for a given repository /// /// The Id of the repository /// /// See the API documentation for more information. /// IObservable RequestPageBuild(int repositoryId); } }