public class MilestonesApi extends AbstractApi
Constants.ActionType, Constants.ApplicationScope, Constants.ArchiveFormat, Constants.CommitBuildState, Constants.DeploymentStatus, Constants.Encoding, Constants.EpicOrderBy, Constants.GroupOrderBy, Constants.GroupSearchScope, Constants.ImpersonationState, Constants.IssueOrderBy, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.MergeRequestOrderBy, Constants.MergeRequestScope, Constants.MergeRequestSearchIn, Constants.MergeRequestState, Constants.MilestoneState, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectOrderBy, Constants.ProjectSearchScope, Constants.SearchScope, Constants.SortOrder, Constants.StateEvent, Constants.TagOrderBy, Constants.TargetType, Constants.TodoAction, Constants.TodoState, Constants.TodoType, Constants.TokenType
gitLabApi
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.
|
void |
deleteMilestone(Object projectIdOrPath,
Integer milestoneId)
Delete a project milestone.
|
List<Issue> |
getGroupIssues(Object groupIdOrPath,
Integer milestoneId)
Get the list of issues associated with the specified group milestone.
|
Pager<Issue> |
getGroupIssues(Object groupIdOrPath,
Integer milestoneId,
int itemsPerPage)
Get the Pager of issues associated with the specified group milestone.
|
Stream<Issue> |
getGroupIssuesStream(Object groupIdOrPath,
Integer milestoneId)
Get a Stream 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.
|
Pager<Issue> |
getIssues(Object projectIdOrPath,
Integer milestoneId,
int itemsPerPage)
Get a Pager of issues associated with the specified milestone.
|
Stream<Issue> |
getIssuesStream(Object projectIdOrPath,
Integer milestoneId)
Get a Stream 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 Pager 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, getLabelIdOrName, getPageQueryParams, getPageQueryParams, getPerPageQueryParam, getProjectIdOrPath, getUserIdOrUsername, getWithAccepts, handle, head, isApiVersion, post, post, post, post, post, put, put, put, putUpload, putUpload, putWithFormData, upload, upload, upload, urlEncode, validate
public MilestonesApi(GitLabApi gitLabApi)
public List<Milestone> getGroupMilestones(Object groupIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/milestones
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
GitLab Endpoint: GET /groups/:id/milestones
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
GitLab Endpoint: GET /groups/:id/milestones
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
GitLab Endpoint: GET /groups/:id/milestones
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
GitLab Endpoint: GET /groups/:id/milestones
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
GitLab Endpoint: GET /groups/:id/milestones
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
GitLab Endpoint: GET /groups/:id/milestones/:milestone_id
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
GitLab Endpoint: GET /groups/:id/milestones/:milestone_id
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
GitLab Endpoint: GET /groups/:id/milestones/:milestone_id/issues
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 Pager<Issue> getGroupIssues(Object groupIdOrPath, Integer milestoneId, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/milestones/:milestone_id/issues
groupIdOrPath
- the group in the form of an Integer(ID), String(path), or Group instancemilestoneId
- the milestone ID to get the issues foritemsPerPage
- The number of Milestone instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<Issue> getGroupIssuesStream(Object groupIdOrPath, Integer milestoneId) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/milestones/:milestone_id/issues
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
GitLab Endpoint: GET /groups/:id/milestones/:milestone_id/merge_requests
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
GitLab Endpoint: POST /groups/:id/milestones
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
GitLab Endpoint: PUT /groups/:id/milestones/:milestone_id
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
GitLab Endpoint: PUT /groups/:id/milestones/:milestone_id
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
GitLab Endpoint: PUT /groups/:id/milestones/:milestone_id
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
GitLab Endpoint: GET /projects/:id/milestones
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
GitLab Endpoint: GET /projects/:id/milestones
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
GitLab Endpoint: GET /projects/:id/milestones
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
GitLab Endpoint: GET /projects/:id/milestones
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
GitLab Endpoint: GET /projects/:id/milestones
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
GitLab Endpoint: GET /projects/:id/milestones
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
GitLab Endpoint: GET /projects/:id/milestones
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
GitLab Endpoint: GET /projects/:id/milestones/:milestone_id
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
GitLab Endpoint: GET /projects/:id/milestones/:milestone_id/issues
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 Pager<Issue> getIssues(Object projectIdOrPath, Integer milestoneId, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/milestones/:milestone_id/issues
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancemilestoneId
- the milestone ID to get the issues foritemsPerPage
- the number of Milestone instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<Issue> getIssuesStream(Object projectIdOrPath, Integer milestoneId) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/milestones/:milestone_id/issues
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
GitLab Endpoint: GET /projects/:id/milestones/:milestone_id/merge_requests
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
GitLab Endpoint: POST /projects/:id/milestones
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
GitLab Endpoint: PUT /projects/:id/milestones/:milestone_id
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
GitLab Endpoint: PUT /projects/:id/milestones/:milestone_id
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
GitLab Endpoint: PUT /projects/:id/milestones/:milestone_id
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 occurspublic void deleteMilestone(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 deleteGitLabApiException
- if any exception occursCopyright © 2020. All rights reserved.