Пример #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);
        }
Пример #2
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));
        }
Пример #3
0
        public Task <SshKey> Update(int id, SshKeyUpdate key)
        {
            Ensure.ArgumentNotNull(key, "key");

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

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

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

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