mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
197 lines
9.6 KiB
C#
197 lines
9.6 KiB
C#
using System;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using System.Reactive;
|
|
|
|
namespace Octokit.Reactive
|
|
{
|
|
/// <summary>
|
|
/// A client for GitHub's Issue Milestones API.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// See the <a href="http://developer.github.com/v3/issues/milestones/">Issue Milestones API documentation</a> for more information.
|
|
/// </remarks>
|
|
public interface IObservableMilestonesClient
|
|
{
|
|
/// <summary>
|
|
/// Gets a single Milestone by number.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// http://developer.github.com/v3/issues/milestones/#get-a-single-milestone
|
|
/// </remarks>
|
|
/// <returns></returns>
|
|
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
|
Justification = "Method makes a network request")]
|
|
IObservable<Milestone> Get(string owner, string name, int number);
|
|
|
|
/// <summary>
|
|
/// Gets a single Milestone by number.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// http://developer.github.com/v3/issues/milestones/#get-a-single-milestone
|
|
/// </remarks>
|
|
/// <returns></returns>
|
|
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
|
Justification = "Method makes a network request")]
|
|
IObservable<Milestone> Get(long repositoryId, int number);
|
|
|
|
/// <summary>
|
|
/// Gets all open milestones for the repository.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// http://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository
|
|
/// </remarks>
|
|
/// <param name="owner">The owner of the repository</param>
|
|
/// <param name="name">The name of the repository</param>
|
|
/// <returns></returns>
|
|
IObservable<Milestone> GetAllForRepository(string owner, string name);
|
|
|
|
/// <summary>
|
|
/// Gets all open milestones for the repository.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// http://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository
|
|
/// </remarks>
|
|
/// <param name="repositoryId">The Id of the repository</param>
|
|
/// <returns></returns>
|
|
IObservable<Milestone> GetAllForRepository(long repositoryId);
|
|
|
|
/// <summary>
|
|
/// Gets all open milestones for the repository.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// http://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository
|
|
/// </remarks>
|
|
/// <param name="owner">The owner of the repository</param>
|
|
/// <param name="name">The name of the repository</param>
|
|
/// <param name="options">Options for changing the API response</param>
|
|
/// <returns></returns>
|
|
IObservable<Milestone> GetAllForRepository(string owner, string name, ApiOptions options);
|
|
|
|
/// <summary>
|
|
/// Gets all open milestones for the repository.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// http://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository
|
|
/// </remarks>
|
|
/// <param name="repositoryId">The Id of the repository</param>
|
|
/// <param name="options">Options for changing the API response</param>
|
|
/// <returns></returns>
|
|
IObservable<Milestone> GetAllForRepository(long repositoryId, ApiOptions options);
|
|
|
|
/// <summary>
|
|
/// Gets all open milestones for the repository.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// http://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository
|
|
/// </remarks>
|
|
/// <param name="owner">The owner of the repository</param>
|
|
/// <param name="name">The name of the repository</param>
|
|
/// <param name="request">Used to filter and sort the list of Milestones returned</param>
|
|
/// <returns></returns>
|
|
IObservable<Milestone> GetAllForRepository(string owner, string name, MilestoneRequest request);
|
|
|
|
/// <summary>
|
|
/// Gets all open milestones for the repository.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// http://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository
|
|
/// </remarks>
|
|
/// <param name="repositoryId">The Id of the repository</param>
|
|
/// <param name="request">Used to filter and sort the list of Milestones returned</param>
|
|
/// <returns></returns>
|
|
IObservable<Milestone> GetAllForRepository(long repositoryId, MilestoneRequest request);
|
|
|
|
/// <summary>
|
|
/// Gets all open milestones for the repository.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// http://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository
|
|
/// </remarks>
|
|
/// <param name="owner">The owner of the repository</param>
|
|
/// <param name="name">The name of the repository</param>
|
|
/// <param name="request">Used to filter and sort the list of Milestones returned</param>
|
|
/// <param name="options">Options for changing the API response</param>
|
|
/// <returns></returns>
|
|
IObservable<Milestone> GetAllForRepository(string owner, string name, MilestoneRequest request, ApiOptions options);
|
|
|
|
/// <summary>
|
|
/// Gets all open milestones for the repository.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// http://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository
|
|
/// </remarks>
|
|
/// <param name="repositoryId">The Id of the repository</param>
|
|
/// <param name="request">Used to filter and sort the list of Milestones returned</param>
|
|
/// <param name="options">Options for changing the API response</param>
|
|
/// <returns></returns>
|
|
IObservable<Milestone> GetAllForRepository(long repositoryId, MilestoneRequest request, ApiOptions options);
|
|
|
|
/// <summary>
|
|
/// Creates a milestone for the specified repository. Any user with pull access to a repository can create a
|
|
/// Milestone.
|
|
/// </summary>
|
|
/// <remarks>http://developer.github.com/v3/issues/milestones/#create-a-milestone</remarks>
|
|
/// <param name="owner">The owner of the repository</param>
|
|
/// <param name="name">The name of the repository</param>
|
|
/// <param name="newMilestone">A <see cref="NewMilestone"/> instance describing the new Milestone to create</param>
|
|
/// <returns></returns>
|
|
IObservable<Milestone> Create(string owner, string name, NewMilestone newMilestone);
|
|
|
|
/// <summary>
|
|
/// Creates a milestone for the specified repository. Any user with pull access to a repository can create a
|
|
/// Milestone.
|
|
/// </summary>
|
|
/// <remarks>http://developer.github.com/v3/issues/milestones/#create-a-milestone</remarks>
|
|
/// <param name="repositoryId">The Id of the repository</param>
|
|
/// <param name="newMilestone">A <see cref="NewMilestone"/> instance describing the new Milestone to create</param>
|
|
/// <returns></returns>
|
|
IObservable<Milestone> Create(long repositoryId, NewMilestone newMilestone);
|
|
|
|
/// <summary>
|
|
/// Updates a milestone for the specified repository. Any user with pull access to a repository can create a
|
|
/// Milestone.
|
|
/// </summary>
|
|
/// <remarks>http://developer.github.com/v3/issues/milestones/#update-a-milestone</remarks>
|
|
/// <param name="owner">The owner of the repository</param>
|
|
/// <param name="name">The name of the repository</param>
|
|
/// <param name="number">The Milestone number</param>
|
|
/// <param name="milestoneUpdate">An <see cref="MilestoneUpdate"/> instance describing the changes to make to the Milestone
|
|
/// </param>
|
|
/// <returns></returns>
|
|
IObservable<Milestone> Update(string owner, string name, int number, MilestoneUpdate milestoneUpdate);
|
|
|
|
/// <summary>
|
|
/// Updates a milestone for the specified repository. Any user with pull access to a repository can create a
|
|
/// Milestone.
|
|
/// </summary>
|
|
/// <remarks>http://developer.github.com/v3/issues/milestones/#update-a-milestone</remarks>
|
|
/// <param name="repositoryId">The Id of the repository</param>
|
|
/// <param name="number">The Milestone number</param>
|
|
/// <param name="milestoneUpdate">An <see cref="MilestoneUpdate"/> instance describing the changes to make to the Milestone
|
|
/// </param>
|
|
/// <returns></returns>
|
|
IObservable<Milestone> Update(long repositoryId, int number, MilestoneUpdate milestoneUpdate);
|
|
|
|
/// <summary>
|
|
/// Deletes a milestone for the specified repository. Any user with pull access to a repository can create an
|
|
/// Milestone.
|
|
/// </summary>
|
|
/// <remarks>http://developer.github.com/v3/issues/milestones/#delete-a-milestone</remarks>
|
|
/// <param name="owner">The owner of the repository</param>
|
|
/// <param name="name">The name of the repository</param>
|
|
/// <param name="number">The milestone number</param>
|
|
/// <returns></returns>
|
|
IObservable<Unit> Delete(string owner, string name, int number);
|
|
|
|
/// <summary>
|
|
/// Deletes a milestone for the specified repository. Any user with pull access to a repository can create an
|
|
/// Milestone.
|
|
/// </summary>
|
|
/// <remarks>http://developer.github.com/v3/issues/milestones/#delete-a-milestone</remarks>
|
|
/// <param name="repositoryId">The Id of the repository</param>
|
|
/// <param name="number">The milestone number</param>
|
|
/// <returns></returns>
|
|
IObservable<Unit> Delete(long repositoryId, int number);
|
|
}
|
|
}
|