public class MilestonesApi extends AbstractApi
Constants.ActionType, Constants.ApplicationScope, Constants.ArchiveFormat, Constants.AutoDevopsDeployStrategy, Constants.BuildGitStrategy, Constants.CommitBuildState, Constants.ContributorOrderBy, Constants.DefaultBranchProtectionLevel, Constants.DeploymentOrderBy, Constants.DeploymentStatus, Constants.DeployTokenScope, Constants.Encoding, Constants.EpicOrderBy, Constants.EventScope, 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.PackageOrderBy, Constants.PackageStatus, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectAccessTokenScope, Constants.ProjectCreationLevel, Constants.ProjectOrderBy, Constants.ProjectSearchScope, Constants.SearchScope, Constants.SortOrder, Constants.SquashOption, Constants.StateEvent, Constants.SubgroupCreationLevel, 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(java.lang.Object groupIdOrPath,
java.lang.Long milestoneId)
Activate a group milestone.
|
Milestone |
activateMilestone(java.lang.Object projectIdOrPath,
java.lang.Long milestoneId)
Activate a milestone.
|
Milestone |
closeGroupMilestone(java.lang.Object groupIdOrPath,
java.lang.Long milestoneId)
Close a group milestone.
|
Milestone |
closeMilestone(java.lang.Object projectIdOrPath,
java.lang.Long milestoneId)
Close a milestone.
|
Milestone |
createGroupMilestone(java.lang.Object groupIdOrPath,
java.lang.String title,
java.lang.String description,
java.util.Date dueDate,
java.util.Date startDate)
Create a group milestone.
|
Milestone |
createMilestone(java.lang.Object projectIdOrPath,
java.lang.String title,
java.lang.String description,
java.util.Date dueDate,
java.util.Date startDate)
Create a milestone.
|
void |
deleteMilestone(java.lang.Object projectIdOrPath,
java.lang.Long milestoneId)
Delete a project milestone.
|
java.util.List<Issue> |
getGroupIssues(java.lang.Object groupIdOrPath,
java.lang.Long milestoneId)
Get the list of issues associated with the specified group milestone.
|
Pager<Issue> |
getGroupIssues(java.lang.Object groupIdOrPath,
java.lang.Long milestoneId,
int itemsPerPage)
Get the Pager of issues associated with the specified group milestone.
|
java.util.stream.Stream<Issue> |
getGroupIssuesStream(java.lang.Object groupIdOrPath,
java.lang.Long milestoneId)
Get a Stream of issues associated with the specified group milestone.
|
java.util.List<MergeRequest> |
getGroupMergeRequest(java.lang.Object groupIdOrPath,
java.lang.Long milestoneId)
Get the list of merge requests associated with the specified group milestone.
|
Milestone |
getGroupMilestone(java.lang.Object groupIdOrPath,
java.lang.Long milestoneId)
Get the specified group milestone.
|
java.util.List<Milestone> |
getGroupMilestones(java.lang.Object groupIdOrPath)
Get a list of group milestones.
|
java.util.List<Milestone> |
getGroupMilestones(java.lang.Object groupIdOrPath,
Constants.MilestoneState state)
Get a list of group milestones that have the specified state.
|
java.util.List<Milestone> |
getGroupMilestones(java.lang.Object groupIdOrPath,
Constants.MilestoneState state,
java.lang.String search)
Get a list of group milestones that have the specified state and match the search string.
|
Pager<Milestone> |
getGroupMilestones(java.lang.Object groupIdOrPath,
int itemsPerPage)
Get a Page of group milestones.
|
java.util.List<Milestone> |
getGroupMilestones(java.lang.Object groupIdOrPath,
int page,
int perPage)
Get a list of group milestones.
|
java.util.List<Milestone> |
getGroupMilestones(java.lang.Object groupIdOrPath,
java.lang.String search)
Get a list of group milestones that have match the search string.
|
java.util.stream.Stream<Milestone> |
getGroupMilestonesStream(java.lang.Object groupIdOrPath)
Get a Stream of group milestones.
|
java.util.List<Issue> |
getIssues(java.lang.Object projectIdOrPath,
java.lang.Long milestoneId)
Get the list of issues associated with the specified milestone.
|
Pager<Issue> |
getIssues(java.lang.Object projectIdOrPath,
java.lang.Long milestoneId,
int itemsPerPage)
Get a Pager of issues associated with the specified milestone.
|
java.util.stream.Stream<Issue> |
getIssuesStream(java.lang.Object projectIdOrPath,
java.lang.Long milestoneId)
Get a Stream of issues associated with the specified milestone.
|
java.util.List<MergeRequest> |
getMergeRequest(java.lang.Object projectIdOrPath,
java.lang.Long milestoneId)
Get the list of merge requests associated with the specified milestone.
|
Milestone |
getMilestone(java.lang.Object projectIdOrPath,
java.lang.Long milestoneId)
Get the specified milestone.
|
java.util.List<Milestone> |
getMilestones(java.lang.Object projectIdOrPath)
Get a list of project milestones.
|
java.util.List<Milestone> |
getMilestones(java.lang.Object projectIdOrPath,
Constants.MilestoneState state)
Get a list of project milestones that have the specified state.
|
java.util.List<Milestone> |
getMilestones(java.lang.Object projectIdOrPath,
Constants.MilestoneState state,
java.lang.String search)
Get a list of project milestones that have the specified state and match the search string.
|
Pager<Milestone> |
getMilestones(java.lang.Object projectIdOrPath,
int itemsPerPage)
Get a Pager of project milestones.
|
java.util.List<Milestone> |
getMilestones(java.lang.Object projectIdOrPath,
int page,
int perPage)
Get a list of project milestones.
|
java.util.List<Milestone> |
getMilestones(java.lang.Object projectIdOrPath,
java.lang.String search)
Get a list of project milestones that have match the search string.
|
java.util.stream.Stream<Milestone> |
getMilestonesStream(java.lang.Object projectIdOrPath)
Get a Stream of project milestones.
|
Milestone |
updateGroupMilestone(java.lang.Object groupIdOrPath,
java.lang.Long milestoneId,
java.lang.String title,
java.lang.String description,
java.util.Date dueDate,
java.util.Date startDate,
Constants.MilestoneState milestoneState)
Update the specified group milestone.
|
Milestone |
updateMilestone(java.lang.Object projectIdOrPath,
java.lang.Long milestoneId,
java.lang.String title,
java.lang.String description,
java.util.Date dueDate,
java.util.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, patch, patch, post, post, post, post, post, put, put, put, putUpload, putUpload, putWithFormData, upload, upload, upload, upload, urlEncode, validate
public MilestonesApi(GitLabApi gitLabApi)
public java.util.List<Milestone> getGroupMilestones(java.lang.Object groupIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/milestones
groupIdOrPath
- the group in the form of an Long(ID), String(path), or Group instanceGitLabApiException
- if any exception occurspublic java.util.List<Milestone> getGroupMilestones(java.lang.Object groupIdOrPath, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/milestones
groupIdOrPath
- the group in the form of an Long(ID), String(path), or Group instancepage
- the page number to getperPage
- how many milestones per pageGitLabApiException
- if any exception occurspublic Pager<Milestone> getGroupMilestones(java.lang.Object groupIdOrPath, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/milestones
groupIdOrPath
- the group in the form of an Long(ID), String(path), or Group instanceitemsPerPage
- The number of Milestone instances that will be fetched per pageGitLabApiException
- if any exception occurspublic java.util.stream.Stream<Milestone> getGroupMilestonesStream(java.lang.Object groupIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/milestones
groupIdOrPath
- the group in the form of an Long(ID), String(path), or Group instanceGitLabApiException
- if any exception occurspublic java.util.List<Milestone> getGroupMilestones(java.lang.Object groupIdOrPath, Constants.MilestoneState state) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/milestones
groupIdOrPath
- the group in the form of an Long(ID), String(path), or Group instancestate
- the milestone stateGitLabApiException
- if any exception occurspublic java.util.List<Milestone> getGroupMilestones(java.lang.Object groupIdOrPath, java.lang.String search) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/milestones
groupIdOrPath
- the group in the form of an Long(ID), String(path), or Group instancesearch
- the search stringGitLabApiException
- if any exception occurspublic java.util.List<Milestone> getGroupMilestones(java.lang.Object groupIdOrPath, Constants.MilestoneState state, java.lang.String search) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/milestones/:milestone_id
groupIdOrPath
- the group in the form of an Long(ID), String(path), or Group instancestate
- the milestone statesearch
- the search stringGitLabApiException
- if any exception occurspublic Milestone getGroupMilestone(java.lang.Object groupIdOrPath, java.lang.Long milestoneId) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/milestones/:milestone_id
groupIdOrPath
- the group in the form of an Long(ID), String(path), or Group instancemilestoneId
- the ID of the milestone tp getGitLabApiException
- if any exception occurspublic java.util.List<Issue> getGroupIssues(java.lang.Object groupIdOrPath, java.lang.Long milestoneId) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/milestones/:milestone_id/issues
groupIdOrPath
- the group in the form of an Long(ID), String(path), or Group instancemilestoneId
- the milestone ID to get the issues forGitLabApiException
- if any exception occurspublic Pager<Issue> getGroupIssues(java.lang.Object groupIdOrPath, java.lang.Long milestoneId, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/milestones/:milestone_id/issues
groupIdOrPath
- the group in the form of an Long(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 java.util.stream.Stream<Issue> getGroupIssuesStream(java.lang.Object groupIdOrPath, java.lang.Long milestoneId) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/milestones/:milestone_id/issues
groupIdOrPath
- the group in the form of an Long(ID), String(path), or Group instancemilestoneId
- the milestone ID to get the issues forGitLabApiException
- if any exception occurspublic java.util.List<MergeRequest> getGroupMergeRequest(java.lang.Object groupIdOrPath, java.lang.Long milestoneId) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/milestones/:milestone_id/merge_requests
groupIdOrPath
- the group in the form of an Long(ID), String(path), or Group instancemilestoneId
- the milestone ID to get the merge requests forGitLabApiException
- if any exception occurspublic Milestone createGroupMilestone(java.lang.Object groupIdOrPath, java.lang.String title, java.lang.String description, java.util.Date dueDate, java.util.Date startDate) throws GitLabApiException
GitLab Endpoint: POST /groups/:id/milestones
groupIdOrPath
- the group in the form of an Long(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(java.lang.Object groupIdOrPath, java.lang.Long milestoneId) throws GitLabApiException
GitLab Endpoint: PUT /groups/:id/milestones/:milestone_id
groupIdOrPath
- the group in the form of an Long(ID), String(path), or Group instancemilestoneId
- the milestone ID to closeGitLabApiException
- if any exception occurspublic Milestone activateGroupMilestone(java.lang.Object groupIdOrPath, java.lang.Long milestoneId) throws GitLabApiException
GitLab Endpoint: PUT /groups/:id/milestones/:milestone_id
groupIdOrPath
- the group in the form of an Long(ID), String(path), or Group instancemilestoneId
- the milestone ID to activateGitLabApiException
- if any exception occurspublic Milestone updateGroupMilestone(java.lang.Object groupIdOrPath, java.lang.Long milestoneId, java.lang.String title, java.lang.String description, java.util.Date dueDate, java.util.Date startDate, Constants.MilestoneState milestoneState) throws GitLabApiException
GitLab Endpoint: PUT /groups/:id/milestones/:milestone_id
groupIdOrPath
- the group in the form of an Long(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 java.util.List<Milestone> getMilestones(java.lang.Object projectIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/milestones
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceGitLabApiException
- if any exception occurspublic java.util.List<Milestone> getMilestones(java.lang.Object projectIdOrPath, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/milestones
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancepage
- the page number to getperPage
- how many milestones per pageGitLabApiException
- if any exception occurspublic Pager<Milestone> getMilestones(java.lang.Object projectIdOrPath, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/milestones
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceitemsPerPage
- The number of Milestone instances that will be fetched per pageGitLabApiException
- if any exception occurspublic java.util.stream.Stream<Milestone> getMilestonesStream(java.lang.Object projectIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/milestones
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceGitLabApiException
- if any exception occurspublic java.util.List<Milestone> getMilestones(java.lang.Object projectIdOrPath, Constants.MilestoneState state) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/milestones
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancestate
- the milestone stateGitLabApiException
- if any exception occurspublic java.util.List<Milestone> getMilestones(java.lang.Object projectIdOrPath, java.lang.String search) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/milestones
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancesearch
- the search stringGitLabApiException
- if any exception occurspublic java.util.List<Milestone> getMilestones(java.lang.Object projectIdOrPath, Constants.MilestoneState state, java.lang.String search) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/milestones
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancestate
- the milestone statesearch
- the search stringGitLabApiException
- if any exception occurspublic Milestone getMilestone(java.lang.Object projectIdOrPath, java.lang.Long milestoneId) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/milestones/:milestone_id
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemilestoneId
- the ID of the milestone tp getGitLabApiException
- if any exception occurspublic java.util.List<Issue> getIssues(java.lang.Object projectIdOrPath, java.lang.Long milestoneId) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/milestones/:milestone_id/issues
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemilestoneId
- the milestone ID to get the issues forGitLabApiException
- if any exception occurspublic Pager<Issue> getIssues(java.lang.Object projectIdOrPath, java.lang.Long milestoneId, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/milestones/:milestone_id/issues
projectIdOrPath
- the project in the form of an Long(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 java.util.stream.Stream<Issue> getIssuesStream(java.lang.Object projectIdOrPath, java.lang.Long milestoneId) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/milestones/:milestone_id/issues
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemilestoneId
- the milestone ID to get the issues forGitLabApiException
- if any exception occurspublic java.util.List<MergeRequest> getMergeRequest(java.lang.Object projectIdOrPath, java.lang.Long milestoneId) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/milestones/:milestone_id/merge_requests
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemilestoneId
- the milestone ID to get the merge requests forGitLabApiException
- if any exception occurspublic Milestone createMilestone(java.lang.Object projectIdOrPath, java.lang.String title, java.lang.String description, java.util.Date dueDate, java.util.Date startDate) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/milestones
projectIdOrPath
- the project in the form of an Long(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(java.lang.Object projectIdOrPath, java.lang.Long milestoneId) throws GitLabApiException
GitLab Endpoint: PUT /projects/:id/milestones/:milestone_id
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemilestoneId
- the milestone ID to closeGitLabApiException
- if any exception occurspublic Milestone activateMilestone(java.lang.Object projectIdOrPath, java.lang.Long milestoneId) throws GitLabApiException
GitLab Endpoint: PUT /projects/:id/milestones/:milestone_id
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemilestoneId
- the milestone ID to activateGitLabApiException
- if any exception occurspublic Milestone updateMilestone(java.lang.Object projectIdOrPath, java.lang.Long milestoneId, java.lang.String title, java.lang.String description, java.util.Date dueDate, java.util.Date startDate, Constants.MilestoneState milestoneState) throws GitLabApiException
GitLab Endpoint: PUT /projects/:id/milestones/:milestone_id
projectIdOrPath
- the project in the form of an Long(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(java.lang.Object projectIdOrPath, java.lang.Long milestoneId) throws GitLabApiException
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemilestoneId
- the milestone ID to deleteGitLabApiException
- if any exception occurs