using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; namespace Octokit { /// /// A client for GitHub's Repository Pages API. /// /// /// See the Repository Pages API documentation for more information. /// public interface IRepositoryPagesClient { /// /// 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")] Task 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")] Task Get(long 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. /// Task> 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. /// Task> GetAll(long 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. /// Task> 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. /// Task> GetAll(long 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. /// Task 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. /// Task GetLatest(long 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. /// Task 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. /// Task RequestPageBuild(long repositoryId); } }