using System;
using System.Diagnostics.CodeAnalysis;
using System.Reactive;
namespace Octokit.Reactive
{
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
/// The list of labels
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
/// The list of labels
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
/// The list of labels
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
/// The list of labels
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
/// The list of labels
IObservable GetAllForRepository(string owner, string name);
///
/// Gets all labels for the repository.
///
///
/// See the API documentation for more information.
///
/// The ID of the repository
/// The list of labels
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
/// The list of labels
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
/// The list of labels
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
/// 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
/// 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
/// The created label
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
/// The created label
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
/// The updated label
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
/// The updated label
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);
}
}