RepositoryPageBuilds() public static method

Returns the Uri for getting all build metadata for a given repository
public static RepositoryPageBuilds ( long repositoryId ) : Uri
repositoryId long The Id of the repository
return Uri
        /// <summary>
        /// Requests your site be built from the latest revision on the default branch for a given repository
        /// </summary>
        /// <param name="owner">The owner of the repository</param>
        /// <param name="name">The name of the repository</param>
        ///  <remarks>
        /// See the <a href="https://developer.github.com/v3/repos/pages/#request-a-page-build">API documentation</a> for more information.
        /// </remarks>
        public Task <PagesBuild> RequestPageBuild(string owner, string name)
        {
            Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
            Ensure.ArgumentNotNullOrEmptyString(name, "name");

            return(ApiConnection.Post <PagesBuild>(ApiUrls.RepositoryPageBuilds(owner, name), AcceptHeaders.PagesApiPreview));
        }
        /// <summary>
        /// Gets all build metadata for a given repository
        /// </summary>
        /// <param name="owner">The owner of the repository</param>
        /// <param name="repositoryName">The name of the repository</param>
        ///  <remarks>
        /// See the <a href="https://developer.github.com/v3/repos/pages/#list-pages-builds">API documentation</a> for more information.
        /// </remarks>
        /// <returns></returns>
        public Task <IReadOnlyList <PagesBuild> > GetAll(string owner, string repositoryName)
        {
            Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
            Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName");

            return(ApiConnection.GetAll <PagesBuild>(ApiUrls.RepositoryPageBuilds(owner, repositoryName)));
        }
        public Task <PagesBuild> RequestPageBuild(string owner, string name)
        {
            Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
            Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));

            return(ApiConnection.Post <PagesBuild>(ApiUrls.RepositoryPageBuilds(owner, name)));
        }
        /// <summary>
        /// Gets all build metadata for a given repository
        /// </summary>
        /// <param name="repositoryId">The Id of the repository</param>
        /// <param name="options">Options to change the API response</param>
        /// <remarks>
        /// See the <a href="https://developer.github.com/v3/repos/pages/#list-pages-builds">API documentation</a> for more information.
        /// </remarks>
        public Task <IReadOnlyList <PagesBuild> > GetAll(int repositoryId, ApiOptions options)
        {
            Ensure.ArgumentNotNull(options, "options");

            var endpoint = ApiUrls.RepositoryPageBuilds(repositoryId);

            return(ApiConnection.GetAll <PagesBuild>(endpoint, options));
        }
        /// <summary>
        /// Gets all build metadata for a given repository
        /// </summary>
        /// <param name="owner">The owner of the repository</param>
        /// <param name="name">The name of the repository</param>
        /// <param name="options">Options to change the API response</param>
        /// <remarks>
        /// See the <a href="https://developer.github.com/v3/repos/pages/#list-pages-builds">API documentation</a> for more information.
        /// </remarks>
        public Task <IReadOnlyList <PagesBuild> > GetAll(string owner, string name, ApiOptions options)
        {
            Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
            Ensure.ArgumentNotNullOrEmptyString(name, "name");
            Ensure.ArgumentNotNull(options, "options");

            var endpoint = ApiUrls.RepositoryPageBuilds(owner, name);

            return(ApiConnection.GetAll <PagesBuild>(endpoint, options));
        }
 /// <summary>
 /// Requests your site be built from the latest revision on the default branch for a given repository
 /// </summary>
 /// <param name="repositoryId">The Id of the repository</param>
 ///  <remarks>
 /// See the <a href="https://developer.github.com/v3/repos/pages/#request-a-page-build">API documentation</a> for more information.
 /// </remarks>
 public Task <PagesBuild> RequestPageBuild(int repositoryId)
 {
     return(ApiConnection.Post <PagesBuild>(ApiUrls.RepositoryPageBuilds(repositoryId), AcceptHeaders.PagesApiPreview));
 }
 public Task <PagesBuild> RequestPageBuild(long repositoryId)
 {
     return(ApiConnection.Post <PagesBuild>(ApiUrls.RepositoryPageBuilds(repositoryId)));
 }