Example #1
0
        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));
        }
Example #3
0
        public Task <SshKey> Update(int id, SshKeyUpdate key)
        {
            Ensure.ArgumentNotNull(key, "key");

            return(ApiConnection.Patch <SshKey>(ApiUrls.Keys(id), key));
        }
Example #4
0
        public Task <SshKey> Create(SshKeyUpdate key)
        {
            Ensure.ArgumentNotNull(key, "key");

            return(ApiConnection.Post <SshKey>(ApiUrls.SshKeys(), key));
        }
Example #5
0
        public Task<SshKey> Create(SshKeyUpdate key)
        {
            Ensure.ArgumentNotNull(key, "key");

            return ApiConnection.Post<SshKey>(ApiUrls.SshKeys(), key);
        }
Example #6
0
        public Task<SshKey> Update(int id, SshKeyUpdate key)
        {
            Ensure.ArgumentNotNull(key, "key");

            return ApiConnection.Patch<SshKey>(ApiUrls.Keys(id), key);
        }