public class ReleasesApi extends AbstractApi
Constants.ActionType, Constants.ApplicationScope, Constants.ArchiveFormat, Constants.CommitBuildState, Constants.DeploymentStatus, Constants.DeployTokenScope, 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 |
---|
ReleasesApi(GitLabApi gitLabApi) |
Modifier and Type | Method and Description |
---|---|
Release |
createRelease(Object projectIdOrPath,
ReleaseParams params)
Create a Release.
|
void |
deleteRelease(Object projectIdOrPath,
String tagName)
Delete a Release.
|
Optional<Release> |
getOptionalRelease(Object projectIdOrPath,
String tagName)
Get an Optional instance holding a Release instance for the specific tag name.
|
Release |
getRelease(Object projectIdOrPath,
String tagName)
Get a Release for the given tag name.
|
List<Release> |
getReleases(Object projectIdOrPath)
Get a list of releases for a project, sorted by release date.
|
Pager<Release> |
getReleases(Object projectIdOrPath,
int itemsPerPage)
Get a Pager of releases for a project, sorted by release date.
|
Stream<Release> |
getReleasesStream(Object projectIdOrPath)
Get a Stream of releases for a project, sorted by release date.
|
Release |
updateRelease(Object projectIdOrPath,
ReleaseParams params)
Updates the release notes of a given release.
|
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 ReleasesApi(GitLabApi gitLabApi)
public List<Release> getReleases(Object projectIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/releases
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathGitLabApiException
- if any exception occurspublic Pager<Release> getReleases(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/releases
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathitemsPerPage
- the number of Release instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<Release> getReleasesStream(Object projectIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/releases
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathGitLabApiException
- if any exception occurspublic Release getRelease(Object projectIdOrPath, String tagName) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/releases/:tagName
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathtagName
- the name of the tag to fetch the Release forGitLabApiException
- if any exception occurspublic Optional<Release> getOptionalRelease(Object projectIdOrPath, String tagName) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/releases/:tagName
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathtagName
- the name of the tag to fetch the Release forGitLabApiException
- if any exception occurspublic Release createRelease(Object projectIdOrPath, ReleaseParams params) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/releases
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathparams
- a ReleaseParams instance holding the parameters for the releaseGitLabApiException
- if any exception occurspublic Release updateRelease(Object projectIdOrPath, ReleaseParams params) throws GitLabApiException
GitLab Endpoint: PUT /projects/:id/releases/:tag_name
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathparams
- a ReleaseParams instance holding the parameters for the releaseGitLabApiException
- if any exception occurspublic void deleteRelease(Object projectIdOrPath, String tagName) throws GitLabApiException
GitLab Endpoint: DELETE /projects/:id/releases/:tag_name
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancetagName
- the tag name that the release was created fromGitLabApiException
- if any exception occursCopyright © 2020. All rights reserved.