public class TagsApi extends AbstractApi
Constants.ActionType, Constants.ApplicationScope, Constants.ArchiveFormat, Constants.AutoDevopsDeployStrategy, Constants.BuildGitStrategy, Constants.CommitBuildState, Constants.DeploymentOrderBy, 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.PackageOrderBy, Constants.PackageStatus, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectOrderBy, Constants.ProjectSearchScope, Constants.SearchScope, Constants.SortOrder, Constants.SquashOption, Constants.StateEvent, Constants.TagOrderBy, Constants.TargetType, Constants.TodoAction, Constants.TodoState, Constants.TodoType, Constants.TokenTypegitLabApiNEXT_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 |
|---|---|
Release |
createRelease(Object projectIdOrPath,
String tagName,
String releaseNotes)
Add release notes to the existing git tag.
|
Tag |
createTag(Object projectIdOrPath,
String tagName,
String ref)
Creates a tag on a particular ref of the given project.
|
Tag |
createTag(Object projectIdOrPath,
String tagName,
String ref,
String message,
File releaseNotesFile)
Creates a tag on a particular ref of a given project.
|
Tag |
createTag(Object projectIdOrPath,
String tagName,
String ref,
String message,
String releaseNotes)
Creates a tag on a particular ref of the given project with optional message and release notes.
|
void |
deleteTag(Object projectIdOrPath,
String tagName)
Deletes the tag from a project with the specified tag name.
|
Optional<ProtectedTag> |
getOptionalProtectedTag(Object projectIdOrPath,
String name)
Get an Optional instance holding a protected tag or wildcard protected tag.
|
Optional<Tag> |
getOptionalTag(Object projectIdOrPath,
String tagName)
Get an Optional instance holding a Tag instance of a specific repository tag determined by its name.
|
ProtectedTag |
getProtectedTag(Object projectIdOrPath,
String name)
Gets a single protected tag or wildcard protected tag
GitLab Endpoint: GET /projects/:id/protected_tags/:name |
List<ProtectedTag> |
getProtectedTags(Object projectIdOrPath)
Gets a list of protected tags from a project.
|
Pager<ProtectedTag> |
getProtectedTags(Object projectIdOrPath,
int itemsPerPage)
Get a Pager of protected tags for a project.
|
List<ProtectedTag> |
getProtectedTags(Object projectIdOrPath,
int page,
int perPage)
Gets a list of protected tags from a project and in the specified page range.
|
Stream<ProtectedTag> |
getProtectedTagsStream(Object projectIdOrPath)
Get a Stream of protected tags for a project.
|
Tag |
getTag(Object projectIdOrPath,
String tagName)
Get a specific repository tag determined by its name.
|
List<Tag> |
getTags(Object projectIdOrPath)
Get a list of repository tags from a project, sorted by name in reverse alphabetical order.
|
List<Tag> |
getTags(Object projectIdOrPath,
Constants.TagOrderBy orderBy,
Constants.SortOrder sortOrder,
String search)
Get a list of repository tags from a project, sorted by name in reverse alphabetical order.
|
Pager<Tag> |
getTags(Object projectIdOrPath,
Constants.TagOrderBy orderBy,
Constants.SortOrder sortOrder,
String search,
int itemsPerPage)
Get a list of repository tags from a project, sorted by name in reverse alphabetical order.
|
List<Tag> |
getTags(Object projectIdOrPath,
Constants.TagOrderBy orderBy,
Constants.SortOrder sortOrder,
String search,
int page,
int perPage)
Get a list of repository tags from a project, sorted by name in reverse alphabetical order and in the specified page range.
|
Pager<Tag> |
getTags(Object projectIdOrPath,
int itemsPerPage)
Get a list of repository tags from a project, sorted by name in reverse alphabetical order.
|
List<Tag> |
getTags(Object projectIdOrPath,
int page,
int perPage)
Get a list of repository tags from a project, sorted by name in reverse alphabetical order and in the specified page range.
|
Stream<Tag> |
getTagsStream(Object projectIdOrPath)
Get a Stream of repository tags from a project, sorted by name in reverse alphabetical order.
|
Stream<Tag> |
getTagsStream(Object projectIdOrPath,
Constants.TagOrderBy orderBy,
Constants.SortOrder sortOrder,
String search)
Get a Stream of repository tags from a project, sorted by name in reverse alphabetical order.
|
ProtectedTag |
protectTag(Object projectIdOrPath,
String name,
AccessLevel createAccessLevel)
Protects a single repository tag or several project repository tags using a wildcard protected tag.
|
void |
unprotectTag(Object projectIdOrPath,
String name)
Unprotects the given protected tag or wildcard protected tag.
|
Release |
updateRelease(Object projectIdOrPath,
String tagName,
String releaseNotes)
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, validatepublic TagsApi(GitLabApi gitLabApi)
public List<Tag> getTags(Object projectIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/repository/tagsprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathGitLabApiException - if any exception occurspublic List<Tag> getTags(Object projectIdOrPath, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/repository/tagsprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathpage - the page to getperPage - the number of Tag instances per pageGitLabApiException - if any exception occurspublic Pager<Tag> getTags(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/repository/tagsprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathitemsPerPage - the number of Project instances that will be fetched per pageGitLabApiException - if any exception occurspublic Stream<Tag> getTagsStream(Object projectIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/repository/tagsprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathGitLabApiException - if any exception occurspublic List<Tag> getTags(Object projectIdOrPath, Constants.TagOrderBy orderBy, Constants.SortOrder sortOrder, String search) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/repository/tagsprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathorderBy - return tags ordered by name or updated fields. Default is updatedsortOrder - return tags sorted in asc or desc order. Default is descsearch - return list of tags matching the search criteriaGitLabApiException - if any exception occurspublic List<Tag> getTags(Object projectIdOrPath, Constants.TagOrderBy orderBy, Constants.SortOrder sortOrder, String search, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/repository/tagsprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathorderBy - return tags ordered by name or updated fields. Default is updatedsortOrder - return tags sorted in asc or desc order. Default is descsearch - return list of tags matching the search criteriapage - the page to getperPage - the number of Tag instances per pageGitLabApiException - if any exception occurspublic Pager<Tag> getTags(Object projectIdOrPath, Constants.TagOrderBy orderBy, Constants.SortOrder sortOrder, String search, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/repository/tagsprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathorderBy - return tags ordered by name or updated fields. Default is updatedsortOrder - return tags sorted in asc or desc order. Default is descsearch - return list of tags matching the search criteriaitemsPerPage - the number of Project instances that will be fetched per pageGitLabApiException - if any exception occurspublic Stream<Tag> getTagsStream(Object projectIdOrPath, Constants.TagOrderBy orderBy, Constants.SortOrder sortOrder, String search) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/repository/tagsprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathorderBy - return tags ordered by name or updated fields. Default is updatedsortOrder - return tags sorted in asc or desc order. Default is descsearch - return list of tags matching the search criteriaGitLabApiException - if any exception occurspublic Tag getTag(Object projectIdOrPath, String tagName) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/repository/tags/:tagNameprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathtagName - the name of the tag to fetch the info forGitLabApiException - if any exception occurspublic Optional<Tag> getOptionalTag(Object projectIdOrPath, String tagName) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/repository/tags/:tagNameprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathtagName - the name of the tag to fetch the info forGitLabApiException - if any exception occurspublic Tag createTag(Object projectIdOrPath, String tagName, String ref) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/repository/tagsprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathtagName - The name of the tag Must be unique for the projectref - the git ref to place the tag onGitLabApiException - if any exception occurspublic Tag createTag(Object projectIdOrPath, String tagName, String ref, String message, String releaseNotes) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/repository/tagsprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathtagName - The name of the tag Must be unique for the projectref - the git ref to place the tag onmessage - the message to included with the tag (optional)releaseNotes - the release notes for the tag (optional)GitLabApiException - if any exception occurspublic Tag createTag(Object projectIdOrPath, String tagName, String ref, String message, File releaseNotesFile) throws GitLabApiException
createTag(Object, String, String, String, String),
but instead allows the release notes to be supplied in a file.
GitLab Endpoint: POST /projects/:id/repository/tagsprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathtagName - the name of the tag, must be unique for the projectref - the git ref to place the tag onmessage - the message to included with the tag (optional)releaseNotesFile - a whose contents are the release notes (optional)GitLabApiException - if any exception occurspublic void deleteTag(Object projectIdOrPath, String tagName) throws GitLabApiException
GitLab Endpoint: DELETE /projects/:id/repository/tags/:tag_nameprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathtagName - The name of the tag to deleteGitLabApiException - if any exception occurspublic Release createRelease(Object projectIdOrPath, String tagName, String releaseNotes) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/repository/tags/:tagName/releaseprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathtagName - the name of a tagreleaseNotes - release notes with markdown supportGitLabApiException - if any exception occurspublic Release updateRelease(Object projectIdOrPath, String tagName, String releaseNotes) throws GitLabApiException
GitLab Endpoint: PUT /projects/:id/repository/tags/:tagName/releaseprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathtagName - the name of a tagreleaseNotes - release notes with markdown supportGitLabApiException - if any exception occurspublic List<ProtectedTag> getProtectedTags(Object projectIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/protected_tagsprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathGitLabApiException - if any exception occurspublic List<ProtectedTag> getProtectedTags(Object projectIdOrPath, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/protected_tagsprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathpage - the page to getperPage - the number of Tag instances per pageGitLabApiException - if any exception occurspublic Pager<ProtectedTag> getProtectedTags(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/protected_tagsprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathitemsPerPage - the number of Project instances that will be fetched per pageGitLabApiException - if any exception occurspublic Stream<ProtectedTag> getProtectedTagsStream(Object projectIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/protected_tags/:nameprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathGitLabApiException - if any exception occurspublic ProtectedTag getProtectedTag(Object projectIdOrPath, String name) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/protected_tags/:nameprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathname - the name of the tag or wildcardGitLabApiException - if any exception occurspublic Optional<ProtectedTag> getOptionalProtectedTag(Object projectIdOrPath, String name) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/protected_tags/:nameprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathname - the name of the tag or wildcardGitLabApiException - if any exception occurspublic ProtectedTag protectTag(Object projectIdOrPath, String name, AccessLevel createAccessLevel) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/protected_tagsprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathname - the name of the tag or wildcardcreateAccessLevel - the access level allowed to createGitLabApiException - if any exception occurspublic void unprotectTag(Object projectIdOrPath, String name) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/protected_tags/:nameprojectIdOrPath - id, path of the project, or a Project instance holding the project ID or pathname - the name of the tag or wildcardGitLabApiException - if any exception occursCopyright © 2021. All rights reserved.