public class MilestonesApi extends AbstractApi
Constants.ActionType, Constants.ArchiveFormat, Constants.CommitBuildState, 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
Constructor and Description |
---|
MilestonesApi(GitLabApi gitLabApi) |
Modifier and Type | Method and Description |
---|---|
Milestone |
activateGroupMilestone(Object groupIdOrPath,
Integer milestoneId)
Activate a group milestone.
|
Milestone |
activateMilestone(Object projectIdOrPath,
Integer milestoneId)
Activate a milestone.
|
Milestone |
closeGroupMilestone(Object groupIdOrPath,
Integer milestoneId)
Close a group milestone.
|
Milestone |
closeMilestone(Object projectIdOrPath,
Integer milestoneId)
Close a milestone.
|
Milestone |
createGroupMilestone(Object groupIdOrPath,
String title,
String description,
Date dueDate,
Date startDate)
Create a group milestone.
|
Milestone |
createMilestone(Object projectIdOrPath,
String title,
String description,
Date dueDate,
Date startDate)
Create a milestone.
|
List<Issue> |
getGroupIssues(Object groupIdOrPath,
Integer milestoneId)
Get the list of issues associated with the specified group milestone.
|
List<MergeRequest> |
getGroupMergeRequest(Object groupIdOrPath,
Integer milestoneId)
Get the list of merge requests associated with the specified group milestone.
|
Milestone |
getGroupMilestone(Object groupIdOrPath,
Integer milestoneId)
Get the specified group milestone.
|
List<Milestone> |
getGroupMilestones(Object groupIdOrPath)
Get a list of group milestones.
|
List<Milestone> |
getGroupMilestones(Object groupIdOrPath,
Constants.MilestoneState state)
Get a list of group milestones that have the specified state.
|
List<Milestone> |
getGroupMilestones(Object groupIdOrPath,
Constants.MilestoneState state,
String search)
Get a list of group milestones that have the specified state and match the search string.
|
Pager<Milestone> |
getGroupMilestones(Object groupIdOrPath,
int itemsPerPage)
Get a Page of group milestones.
|
List<Milestone> |
getGroupMilestones(Object groupIdOrPath,
int page,
int perPage)
Get a list of group milestones.
|
List<Milestone> |
getGroupMilestones(Object groupIdOrPath,
String search)
Get a list of group milestones that have match the search string.
|
Stream<Milestone> |
getGroupMilestonesStream(Object groupIdOrPath)
Get a Stream of group milestones.
|
List<Issue> |
getIssues(Object projectIdOrPath,
Integer milestoneId)
Get the list of issues associated with the specified milestone.
|
List<MergeRequest> |
getMergeRequest(Object projectIdOrPath,
Integer milestoneId)
Get the list of merge requests associated with the specified milestone.
|
Milestone |
getMilestone(Object projectIdOrPath,
Integer milestoneId)
Get the specified milestone.
|
List<Milestone> |
getMilestones(Object projectIdOrPath)
Get a list of project milestones.
|
List<Milestone> |
getMilestones(Object projectIdOrPath,
Constants.MilestoneState state)
Get a list of project milestones that have the specified state.
|
List<Milestone> |
getMilestones(Object projectIdOrPath,
Constants.MilestoneState state,
String search)
Get a list of project milestones that have the specified state and match the search string.
|
Pager<Milestone> |
getMilestones(Object projectIdOrPath,
int itemsPerPage)
Get a Page of project milestones.
|
List<Milestone> |
getMilestones(Object projectIdOrPath,
int page,
int perPage)
Get a list of project milestones.
|
List<Milestone> |
getMilestones(Object projectIdOrPath,
String search)
Get a list of project milestones that have match the search string.
|
Stream<Milestone> |
getMilestonesStream(Object projectIdOrPath)
Get a Stream of project milestones.
|
Milestone |
updateGroupMilestone(Object groupIdOrPath,
Integer milestoneId,
String title,
String description,
Date dueDate,
Date startDate,
Constants.MilestoneState milestoneState)
Update the specified group milestone.
|
Milestone |
updateMilestone(Object projectIdOrPath,
Integer milestoneId,
String title,
String description,
Date dueDate,
Date startDate,
Constants.MilestoneState milestoneState)
Update the specified milestone.
|
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 MilestonesApi(GitLabApi gitLabApi)
public List<Milestone> getGroupMilestones(Object groupIdOrPath) throws GitLabApiException
groupIdOrPath
- the group in the form of an Integer(ID), String(path), or Group instanceGitLabApiException
- if any exception occurspublic List<Milestone> getGroupMilestones(Object groupIdOrPath, int page, int perPage) throws GitLabApiException
groupIdOrPath
- the group in the form of an Integer(ID), String(path), or Group instancepage
- the page number to getperPage
- how many milestones per pageGitLabApiException
- if any exception occurspublic Pager<Milestone> getGroupMilestones(Object groupIdOrPath, int itemsPerPage) throws GitLabApiException
groupIdOrPath
- the group in the form of an Integer(ID), String(path), or Group instanceitemsPerPage
- The number of Milestone instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<Milestone> getGroupMilestonesStream(Object groupIdOrPath) throws GitLabApiException
groupIdOrPath
- the group in the form of an Integer(ID), String(path), or Group instanceGitLabApiException
- if any exception occurspublic List<Milestone> getGroupMilestones(Object groupIdOrPath, Constants.MilestoneState state) throws GitLabApiException
groupIdOrPath
- the group in the form of an Integer(ID), String(path), or Group instancestate
- the milestone stateGitLabApiException
- if any exception occurspublic List<Milestone> getGroupMilestones(Object groupIdOrPath, String search) throws GitLabApiException
groupIdOrPath
- the group in the form of an Integer(ID), String(path), or Group instancesearch
- the search stringGitLabApiException
- if any exception occurspublic List<Milestone> getGroupMilestones(Object groupIdOrPath, Constants.MilestoneState state, String search) throws GitLabApiException
groupIdOrPath
- the group in the form of an Integer(ID), String(path), or Group instancestate
- the milestone statesearch
- the search stringGitLabApiException
- if any exception occurspublic Milestone getGroupMilestone(Object groupIdOrPath, Integer milestoneId) throws GitLabApiException
groupIdOrPath
- the group in the form of an Integer(ID), String(path), or Group instancemilestoneId
- the ID of the milestone tp getGitLabApiException
- if any exception occurspublic List<Issue> getGroupIssues(Object groupIdOrPath, Integer milestoneId) throws GitLabApiException
groupIdOrPath
- the group in the form of an Integer(ID), String(path), or Group instancemilestoneId
- the milestone ID to get the issues forGitLabApiException
- if any exception occurspublic List<MergeRequest> getGroupMergeRequest(Object groupIdOrPath, Integer milestoneId) throws GitLabApiException
groupIdOrPath
- the group in the form of an Integer(ID), String(path), or Group instancemilestoneId
- the milestone ID to get the merge requests forGitLabApiException
- if any exception occurspublic Milestone createGroupMilestone(Object groupIdOrPath, String title, String description, Date dueDate, Date startDate) throws GitLabApiException
groupIdOrPath
- the group in the form of an Integer(ID), String(path), or Group instancetitle
- the title for the milestonedescription
- the description for the milestonedueDate
- the due date for the milestonestartDate
- the start date for the milestoneGitLabApiException
- if any exception occurspublic Milestone closeGroupMilestone(Object groupIdOrPath, Integer milestoneId) throws GitLabApiException
groupIdOrPath
- the group in the form of an Integer(ID), String(path), or Group instancemilestoneId
- the milestone ID to closeGitLabApiException
- if any exception occurspublic Milestone activateGroupMilestone(Object groupIdOrPath, Integer milestoneId) throws GitLabApiException
groupIdOrPath
- the group in the form of an Integer(ID), String(path), or Group instancemilestoneId
- the milestone ID to activateGitLabApiException
- if any exception occurspublic Milestone updateGroupMilestone(Object groupIdOrPath, Integer milestoneId, String title, String description, Date dueDate, Date startDate, Constants.MilestoneState milestoneState) throws GitLabApiException
groupIdOrPath
- the group in the form of an Integer(ID), String(path), or Group instancemilestoneId
- the milestone ID to updatetitle
- the updated title for the milestonedescription
- the updated description for the milestonedueDate
- the updated due date for the milestonestartDate
- the updated start date for the milestonemilestoneState
- the updated milestone stateGitLabApiException
- if any exception occurspublic List<Milestone> getMilestones(Object projectIdOrPath) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceGitLabApiException
- if any exception occurspublic List<Milestone> getMilestones(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 number to getperPage
- how many milestones per pageGitLabApiException
- if any exception occurspublic Pager<Milestone> getMilestones(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceitemsPerPage
- The number of Milestone instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<Milestone> getMilestonesStream(Object projectIdOrPath) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceGitLabApiException
- if any exception occurspublic List<Milestone> getMilestones(Object projectIdOrPath, Constants.MilestoneState state) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancestate
- the milestone stateGitLabApiException
- if any exception occurspublic List<Milestone> getMilestones(Object projectIdOrPath, String search) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancesearch
- the search stringGitLabApiException
- if any exception occurspublic List<Milestone> getMilestones(Object projectIdOrPath, Constants.MilestoneState state, String search) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancestate
- the milestone statesearch
- the search stringGitLabApiException
- if any exception occurspublic Milestone getMilestone(Object projectIdOrPath, Integer milestoneId) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancemilestoneId
- the ID of the milestone tp getGitLabApiException
- if any exception occurspublic List<Issue> getIssues(Object projectIdOrPath, Integer milestoneId) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancemilestoneId
- the milestone ID to get the issues forGitLabApiException
- if any exception occurspublic List<MergeRequest> getMergeRequest(Object projectIdOrPath, Integer milestoneId) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancemilestoneId
- the milestone ID to get the merge requests forGitLabApiException
- if any exception occurspublic Milestone createMilestone(Object projectIdOrPath, String title, String description, Date dueDate, Date startDate) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancetitle
- the title for the milestonedescription
- the description for the milestonedueDate
- the due date for the milestonestartDate
- the start date for the milestoneGitLabApiException
- if any exception occurspublic Milestone closeMilestone(Object projectIdOrPath, Integer milestoneId) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancemilestoneId
- the milestone ID to closeGitLabApiException
- if any exception occurspublic Milestone activateMilestone(Object projectIdOrPath, Integer milestoneId) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancemilestoneId
- the milestone ID to activateGitLabApiException
- if any exception occurspublic Milestone updateMilestone(Object projectIdOrPath, Integer milestoneId, String title, String description, Date dueDate, Date startDate, Constants.MilestoneState milestoneState) throws GitLabApiException
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancemilestoneId
- the milestone ID to updatetitle
- the updated title for the milestonedescription
- the updated description for the milestonedueDate
- the updated due date for the milestonestartDate
- the updated start date for the milestonemilestoneState
- the updated milestone stateGitLabApiException
- if any exception occursCopyright © 2019. All rights reserved.