using System;
using System.Diagnostics.CodeAnalysis;
using System.Reactive;
namespace Octokit.Reactive
{
///
/// A client for GitHub's Issue Labels API.
///
///
/// See the Issue Labels API documentation for more information.
///
public interface IObservableIssuesLabelsClient
{
///
/// Gets all labels for the issue.
///
///
/// See the API documentation for more information.
///
/// The owner of the repository
/// The name of the repository
/// The number of the issue
IObservable GetAllForIssue(string owner, string name, int number);
///
/// Gets all labels for the issue.
///
///
/// See the API documentation for more information.
///
/// The ID of the repository
/// The number of the issue
IObservable GetAllForIssue(int repositoryId, int number);
///
/// Gets all labels for the issue.
///
///
/// See the API documentation for more information.
///
/// The owner of the repository
/// The name of the repository
/// The number of the issue
/// Options for changing the API response
IObservable GetAllForIssue(string owner, string name, int number, ApiOptions options);
///
/// Gets all labels for the issue.
///
///
/// See the API documentation for more information.
///
/// The ID of the repository
/// The number of the issue
/// Options for changing the API response
IObservable GetAllForIssue(int repositoryId, int number, ApiOptions options);
///
/// Gets all labels for the repository.
///
///
/// See the API documentation for more information.
///
/// The owner of the repository
/// The name of the repository
IObservable GetAllForRepository(string owner, string name);
///
/// Gets all labels for the repository.
///
///
/// See the API documentation for more information.
///
/// The ID of the repository
IObservable GetAllForRepository(int repositoryId);
///
/// Gets all labels for the repository.
///
///
/// See the API documentation for more information.
///
/// The owner of the repository
/// The name of the repository
/// Options for changing the API response
IObservable GetAllForRepository(string owner, string name, ApiOptions options);
///
/// Gets all labels for the repository.
///
///
/// See the API documentation for more information.
///
/// The ID of the repository
/// Options for changing the API response
IObservable GetAllForRepository(int repositoryId, ApiOptions options);
///
/// Gets labels for every issue in a milestone
///
///
/// See the API documentation for more information.
///
/// The owner of the repository
/// The name of the repository
/// The number of the milestone
IObservable GetAllForMilestone(string owner, string name, int number);
///
/// Gets labels for every issue in a milestone
///
///
/// See the API documentation for more information.
///
/// The ID of the repository
/// The number of the milestone
IObservable GetAllForMilestone(int repositoryId, int number);
///
/// Gets labels for every issue in a milestone
///
///
/// See the API documentation for more information.
///
/// The owner of the repository
/// The name of the repository
/// The number of the milestone
/// Options for changing the API response
IObservable GetAllForMilestone(string owner, string name, int number, ApiOptions options);
///
/// Gets labels for every issue in a milestone
///
///
/// See the API documentation for more information.
///
/// The ID of the repository
/// The number of the milestone
/// Options for changing the API response
IObservable GetAllForMilestone(int repositoryId, int number, ApiOptions options);
///
/// Gets a single Label by name.
///
///
/// See the API documentation for more information.
///
/// The owner of the repository
/// The name of the repository
/// The name of the label
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")]
IObservable Get(string owner, string name, string labelName);
///
/// Gets a single Label by name.
///
///
/// See the API documentation for more information.
///
/// The ID of the repository
/// The name of the label
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")]
IObservable Get(int repositoryId, string labelName);
///
/// Deletes a label.
///
///
/// See the API documentation for more information.
///
/// The owner of the repository
/// The name of the repository
/// The name of the label
IObservable Delete(string owner, string name, string labelName);
///
/// Deletes a label.
///
///
/// See the API documentation for more information.
///
/// The ID of the repository
/// The name of the label
IObservable Delete(int repositoryId, string labelName);
///
/// Creates a label.
///
///
/// See the API documentation for more information.
///
/// The owner of the repository
/// The name of the repository
/// The data for the label to be created
IObservable Create(string owner, string name, NewLabel newLabel);
///
/// Creates a label.
///
///
/// See the API documentation for more information.
///
/// The ID of the repository
/// The data for the label to be created
IObservable Create(int repositoryId, NewLabel newLabel);
///
/// Updates a label.
///
///
/// See the API documentation for more information.
///
/// The owner of the repository
/// The name of the repository
/// The name of the label
/// The data for the label to be updated
IObservable Update(string owner, string name, string labelName, LabelUpdate labelUpdate);
///
/// Updates a label.
///
///
/// See the API documentation for more information.
///
/// The ID of the repository
/// The name of the label
/// The data for the label to be updated
IObservable Update(int repositoryId, string labelName, LabelUpdate labelUpdate);
///
/// Adds a label to an issue
///
///
/// See the API documentation for more information.
///
/// The owner of the repository
/// The name of the repository
/// The number of the issue
/// The names of the labels to add
IObservable AddToIssue(string owner, string name, int number, string[] labels);
///
/// Adds a label to an issue
///
///
/// See the API documentation for more information.
///
/// The ID of the repository
/// The number of the issue
/// The names of the labels to add
IObservable AddToIssue(int repositoryId, int number, string[] labels);
///
/// Removes a label from an issue
///
///
/// See the API documentation for more information.
///
/// The owner of the repository
/// The name of the repository
/// The number of the issue
/// The name of the label to remove
IObservable RemoveFromIssue(string owner, string name, int number, string labelName);
///
/// Removes a label from an issue
///
///
/// See the API documentation for more information.
///
/// The ID of the repository
/// The number of the issue
/// The name of the label to remove
IObservable RemoveFromIssue(int repositoryId, int number, string labelName);
///
/// Replaces all labels on the specified issues with the provided labels
///
///
/// See the API documentation for more information.
///
/// The owner of the repository
/// The name of the repository
/// The number of the issue
/// The names of the labels to set
IObservable ReplaceAllForIssue(string owner, string name, int number, string[] labels);
///
/// Replaces all labels on the specified issues with the provided labels
///
///
/// See the API documentation for more information.
///
/// The ID of the repository
/// The number of the issue
/// The names of the labels to set
IObservable ReplaceAllForIssue(int repositoryId, int number, string[] labels);
///
/// Removes all labels from an issue
///
///
/// See the API documentation for more information.
///
/// The owner of the repository
/// The name of the repository
/// The number of the issue
IObservable RemoveAllFromIssue(string owner, string name, int number);
///
/// Removes all labels from an issue
///
///
/// See the API documentation for more information.
///
/// The ID of the repository
/// The number of the issue
IObservable RemoveAllFromIssue(int repositoryId, int number);
}
}