using System; 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")] [Obsolete("This method is obsolete. Please use User.Keys.Get(int) instead.")] IObservable Get(int id); /// /// Retrieves the for the specified id. /// /// The login of the user /// A of . [Obsolete("This method is obsolete. Please use User.Keys.GetAll(string) instead.")] 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")] [Obsolete("This method is obsolete. Please use User.Keys.GetAll() instead.")] IObservable GetAllForCurrent(); /// /// Update the specified . /// /// The SSH Key contents /// Thrown if the client is not authenticated. /// A [Obsolete("This method is obsolete. Please use User.Keys.Create(NewPublicKey) instead.")] IObservable Create(SshKeyUpdate key); /// /// Update the specified . /// /// The Id of the SSH key /// The SSH Key contents /// Thrown if the client is not authenticated. /// A [Obsolete("This method is no longer supported in the GitHub API. Delete and Create the key again instead.")] IObservable Update(int id, SshKeyUpdate key); /// /// Update the specified . /// /// The id of the SSH key /// Thrown if the client is not authenticated. /// A [Obsolete("This method is obsolete. Please use User.Keys.Delete(int) instead.")] IObservable Delete(int id); } }