public ProjectHook Update(int hookId, ProjectHookUpsert hook) { return(_api.Put().With(hook).To <ProjectHook>(_path + "/" + hookId)); }
public Branch Protect(string name) { return(_api.Put().To <Branch>(_repoPath + "/branches/" + name + "/protect")); }
public void Update(FileUpsert file) { _api.Put().With(file).Stream(_repoPath + "/files", s => { }); }
public Issue Edit(int projectId, IssueEdit issueEdit) { return(_api.Put().With(issueEdit).To <Issue>(string.Format(SingleIssueUrl, projectId, issueEdit.Id))); }
public User Update(int id, UserUpsert user) { return(_api.Put().With(user).To <User>(User.Url + "/" + id)); }
public MergeRequest Update(int mergeRequestId, MergeRequestUpdate mergeRequest) { return(_api .Put().With(mergeRequest) .To <MergeRequest>(_projectPath + "/merge_request/" + mergeRequestId)); }
public Label Edit(LabelEdit label) { return(_api.Put().With(label).To <Label>(string.Format(ProjectLabelUrl, label.Id))); }