public class LabelsApi extends AbstractApi
Constants.ActionType, Constants.ImpersonationState, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.MilestoneState, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectOrderBy, Constants.SortOrder, Constants.StateEvent, Constants.TargetType, Constants.TokenType
NEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER
Modifier and Type | Method and Description |
---|---|
Label |
createLabel(Integer projectId,
String name,
String color) |
Label |
createLabel(Integer projectId,
String name,
String color,
Integer priority) |
Label |
createLabel(Integer projectId,
String name,
String color,
String description) |
Label |
createLabel(Integer projectId,
String name,
String color,
String description,
Integer priority) |
void |
deleteLabel(Integer projectId,
String name) |
List<Label> |
getLabels(Integer projectId) |
List<Label> |
getLabels(Integer projectId,
int page,
int perPage) |
Label |
subscribeLabel(Integer projectId,
Integer labelId) |
Label |
unsubscribeLabel(Integer projectId,
Integer labelId) |
Label |
updateLabel(Integer projectId,
String name,
String newName,
String color,
String description,
Integer priority) |
Label |
updateLabelColor(Integer projectId,
String name,
String color,
String description,
Integer priority) |
Label |
updateLabelName(Integer projectId,
String name,
String newName,
String description,
Integer priority) |
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getPageQueryParams, getWithAccepts, handle, isApiVersion, post, post, post, put, put, putWithFormData, urlEncode, validate
public LabelsApi(GitLabApi gitLabApi)
public List<Label> getLabels(Integer projectId) throws GitLabApiException
GitLabApiException
public List<Label> getLabels(Integer projectId, int page, int perPage) throws GitLabApiException
GitLabApiException
public Label createLabel(Integer projectId, String name, String color, String description) throws GitLabApiException
GitLabApiException
public Label createLabel(Integer projectId, String name, String color) throws GitLabApiException
GitLabApiException
public Label createLabel(Integer projectId, String name, String color, Integer priority) throws GitLabApiException
GitLabApiException
public Label createLabel(Integer projectId, String name, String color, String description, Integer priority) throws GitLabApiException
GitLabApiException
public Label updateLabelName(Integer projectId, String name, String newName, String description, Integer priority) throws GitLabApiException
GitLabApiException
public Label updateLabelColor(Integer projectId, String name, String color, String description, Integer priority) throws GitLabApiException
GitLabApiException
public Label updateLabel(Integer projectId, String name, String newName, String color, String description, Integer priority) throws GitLabApiException
GitLabApiException
public void deleteLabel(Integer projectId, String name) throws GitLabApiException
GitLabApiException
public Label subscribeLabel(Integer projectId, Integer labelId) throws GitLabApiException
GitLabApiException
public Label unsubscribeLabel(Integer projectId, Integer labelId) throws GitLabApiException
GitLabApiException
Copyright © 2017. All rights reserved.