using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Reactive; namespace Octokit.Reactive { public interface IObservableSshKeysClient { /// /// Retrieves the for the specified id. /// /// The ID of the SSH key. /// A [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] IObservable Get(long id); /// /// Retrieves the for the specified id. /// /// The login of the user. /// A of . IObservable> GetAll(string user); /// /// Retrieves the for the specified id. /// /// Thrown if the client is not authenticated. /// A of . [SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "Makes a network request")] IObservable> GetAllForCurrent(); /// /// Update the specified . /// /// /// Thrown if the client is not authenticated. /// A IObservable Create(SshKeyUpdate key); /// /// Update the specified . /// /// /// /// Thrown if the client is not authenticated. /// A IObservable Update(long id, SshKeyUpdate key); /// /// Update the specified . /// /// The id of the SSH key /// Thrown if the client is not authenticated. /// A IObservable Delete(long id); } }