public class LabelsApi extends AbstractApi
Constants.ActionType, Constants.ApplicationScope, Constants.ArchiveFormat, Constants.CommitBuildState, Constants.Encoding, Constants.EpicOrderBy, Constants.GroupOrderBy, Constants.ImpersonationState, Constants.IssueOrderBy, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.MergeRequestOrderBy, Constants.MergeRequestScope, Constants.MergeRequestState, 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(Object projectIdOrPath,
String name,
String color)
Create a label
|
Label |
createLabel(Object projectIdOrPath,
String name,
String color,
Integer priority)
Create a label
|
Label |
createLabel(Object projectIdOrPath,
String name,
String color,
String description)
Create a label
|
Label |
createLabel(Object projectIdOrPath,
String name,
String color,
String description,
Integer priority)
Create a label
|
void |
deleteLabel(Object projectIdOrPath,
String name)
Delete the specified label
|
List<Label> |
getLabels(Object projectIdOrPath)
Get all labels of the specified project.
|
Pager<Label> |
getLabels(Object projectIdOrPath,
int itemsPerPage)
Get a Pager of all labels of the specified project.
|
List<Label> |
getLabels(Object projectIdOrPath,
int page,
int perPage)
Get all labels of the specified project to using the specified page and per page setting
|
Stream<Label> |
getLabelsStream(Object projectIdOrPath)
Get a Stream of all labels of the specified project.
|
Label |
subscribeLabel(Object projectIdOrPath,
Integer labelId)
Subscribe a specified label
|
Label |
unsubscribeLabel(Object projectIdOrPath,
Integer labelId)
Unsubscribe a specified label
|
Label |
updateLabel(Object projectIdOrPath,
String name,
String newName,
String color,
String description,
Integer priority)
Update the specified label
|
Label |
updateLabelColor(Object projectIdOrPath,
String name,
String color,
String description,
Integer priority)
Update the specified label
|
Label |
updateLabelName(Object projectIdOrPath,
String name,
String newName,
String description,
Integer priority)
Update the specified label
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getDefaultPerPageParam, getGroupIdOrPath, getPageQueryParams, getPageQueryParams, getPerPageQueryParam, getProjectIdOrPath, getUserIdOrUsername, getWithAccepts, handle, head, isApiVersion, post, post, post, post, post, put, put, putUpload, putUpload, putWithFormData, upload, upload, upload, urlEncode, validate
public LabelsApi(GitLabApi gitLabApi)
public List<Label> getLabels(Object projectIdOrPath) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceGitLabApiException
- if any exception occurspublic List<Label> getLabels(Object projectIdOrPath, int page, int perPage) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancepage
- the page to getperPage
- the number of items per pageGitLabApiException
- if any exception occurspublic Pager<Label> getLabels(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceitemsPerPage
- the number of items per pageGitLabApiException
- if any exception occurspublic Stream<Label> getLabelsStream(Object projectIdOrPath) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceGitLabApiException
- if any exception occurspublic Label createLabel(Object projectIdOrPath, String name, String color, String description) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancename
- the name for the labelcolor
- the color for the labeldescription
- the description for the labelGitLabApiException
- if any exception occurspublic Label createLabel(Object projectIdOrPath, String name, String color) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancename
- the name for the labelcolor
- the color for the labelGitLabApiException
- if any exception occurspublic Label createLabel(Object projectIdOrPath, String name, String color, Integer priority) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancename
- the name for the labelcolor
- the color for the labelpriority
- the priority for the labelGitLabApiException
- if any exception occurspublic Label createLabel(Object projectIdOrPath, String name, String color, String description, Integer priority) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancename
- the name for the labelcolor
- the color for the labeldescription
- the description for the labelpriority
- the priority for the labelGitLabApiException
- if any exception occurspublic Label updateLabelName(Object projectIdOrPath, String name, String newName, String description, Integer priority) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancename
- the name for the labelnewName
- the new name for the labeldescription
- the description for the labelpriority
- the priority for the labelGitLabApiException
- if any exception occurspublic Label updateLabelColor(Object projectIdOrPath, String name, String color, String description, Integer priority) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancename
- the name for the labelcolor
- the color for the labeldescription
- the description for the labelpriority
- the priority for the labelGitLabApiException
- if any exception occurspublic Label updateLabel(Object projectIdOrPath, String name, String newName, String color, String description, Integer priority) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancename
- the name for the labelnewName
- the new name for the labelcolor
- the color for the labeldescription
- the description for the labelpriority
- the priority for the labelGitLabApiException
- if any exception occurspublic void deleteLabel(Object projectIdOrPath, String name) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancename
- the name for the labelGitLabApiException
- if any exception occurspublic Label subscribeLabel(Object projectIdOrPath, Integer labelId) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancelabelId
- the label IDGitLabApiException
- if any exception occurspublic Label unsubscribeLabel(Object projectIdOrPath, Integer labelId) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancelabelId
- the label IDGitLabApiException
- if any exception occursCopyright © 2019. All rights reserved.