public Task<SshKey> Update(int id, SshKeyUpdate key) { Ensure.ArgumentNotNull(key, "key"); var endpoint = "user/keys/{0}".FormatUri(id); return ApiConnection.Patch<SshKey>(endpoint, key); }
public Task <SshKey> Update(int id, SshKeyUpdate key) { Ensure.ArgumentNotNull(key, "key"); var endpoint = "user/keys/{0}".FormatUri(id); return(ApiConnection.Patch <SshKey>(endpoint, key)); }
public Task <SshKey> Update(int id, SshKeyUpdate key) { Ensure.ArgumentNotNull(key, "key"); return(ApiConnection.Patch <SshKey>(ApiUrls.Keys(id), key)); }
public Task <SshKey> Create(SshKeyUpdate key) { Ensure.ArgumentNotNull(key, "key"); return(ApiConnection.Post <SshKey>(ApiUrls.SshKeys(), key)); }
public Task<SshKey> Create(SshKeyUpdate key) { Ensure.ArgumentNotNull(key, "key"); return ApiConnection.Post<SshKey>(ApiUrls.SshKeys(), key); }
public Task<SshKey> Update(int id, SshKeyUpdate key) { Ensure.ArgumentNotNull(key, "key"); return ApiConnection.Patch<SshKey>(ApiUrls.Keys(id), key); }