public Task <IReadOnlyList <SshKey> > GetAllForCurrent() { return(ApiConnection.GetAll <SshKey>(ApiUrls.SshKeys())); }
public Task <SshKey> Create(SshKeyUpdate key) { Ensure.ArgumentNotNull(key, "key"); return(ApiConnection.Post <SshKey>(ApiUrls.SshKeys(), key)); }
public Task <IReadOnlyList <SshKey> > GetAll(string user) { Ensure.ArgumentNotNullOrEmptyString(user, "user"); return(ApiConnection.GetAll <SshKey>(ApiUrls.SshKeys(user))); }