public class ReleaseLinksApi 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 |
---|
ReleaseLinksApi(GitLabApi gitLabApi) |
Modifier and Type | Method and Description |
---|---|
Link |
createLink(java.lang.Object projectIdOrPath,
ReleaseLinkParams params)
Create a Link.
|
void |
deleteLink(java.lang.Object projectIdOrPath,
java.lang.String tagName,
java.lang.Integer linkId)
Delete a Link.
|
Link |
getLink(java.lang.Object projectIdOrPath,
java.lang.String tagName,
java.lang.Integer linkId)
Get a Link for the given tag name and link id.
|
java.util.List<Link> |
getLinks(java.lang.Object projectIdOrPath,
java.lang.String tagName)
Get assets as Links from a Release.
|
Pager<Link> |
getLinks(java.lang.Object projectIdOrPath,
java.lang.String tagName,
int itemsPerPage)
Get assets as Links from a Release.
|
java.util.stream.Stream<Link> |
getLinksStream(java.lang.Object projectIdOrPath,
java.lang.String tagName)
Get a Stream of assets as Links from a Release.
|
java.util.Optional<Link> |
getOptionalLink(java.lang.Object projectIdOrPath,
java.lang.String tagName,
java.lang.Integer linkId)
Get an Optional instance holding a Link instance for the specific tag name and link id.
|
Link |
updateLink(java.lang.Object projectIdOrPath,
java.lang.Integer linkId,
ReleaseLinkParams params)
Updates the attributes of a given Link.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getDefaultPerPageParam, getGroupIdOrPath, getLabelIdOrName, getNamespaceIdOrPath, 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 ReleaseLinksApi(GitLabApi gitLabApi)
public java.util.List<Link> getLinks(java.lang.Object projectIdOrPath, java.lang.String tagName) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/releases/:tagName/assets/links
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathtagName
- the tag name that the release was created fromGitLabApiException
- if any exception occurspublic Pager<Link> getLinks(java.lang.Object projectIdOrPath, java.lang.String tagName, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/releases/:tagName/assets/links
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathtagName
- the tag name that the release was created fromitemsPerPage
- the number of Link instances that will be fetched per pageGitLabApiException
- if any exception occurspublic java.util.stream.Stream<Link> getLinksStream(java.lang.Object projectIdOrPath, java.lang.String tagName) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/releases/:tagName/assets/links
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathtagName
- the tag name that the release was created fromGitLabApiException
- if any exception occurspublic Link getLink(java.lang.Object projectIdOrPath, java.lang.String tagName, java.lang.Integer linkId) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/releases/:tagName/assets/links/:linkId
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathtagName
- the name of the tag to fetch the Link forlinkId
- the id of the Link to fetch forGitLabApiException
- if any exception occurspublic java.util.Optional<Link> getOptionalLink(java.lang.Object projectIdOrPath, java.lang.String tagName, java.lang.Integer linkId) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/releases/:tagName/assets/links/:linkId
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathtagName
- the name of the tag to fetch the Link forlinkId
- the id of the Link to fetch forGitLabApiException
- if any exception occurspublic Link createLink(java.lang.Object projectIdOrPath, ReleaseLinkParams params) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/releases/:tagName/assets/links
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathparams
- a ReleaseLinksParams instance holding the parameters for the linkGitLabApiException
- if any exception occurspublic Link updateLink(java.lang.Object projectIdOrPath, java.lang.Integer linkId, ReleaseLinkParams params) throws GitLabApiException
GitLab Endpoint: PUT /projects/:id/releases/:tagName/assets/links/:linkId
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathlinkId
- the id of the Link to fetch forparams
- a ReleaseLinksParams instance holding the parameters for the LinkGitLabApiException
- if any exception occurspublic void deleteLink(java.lang.Object projectIdOrPath, java.lang.String tagName, java.lang.Integer linkId) throws GitLabApiException
GitLab Endpoint: DELETE /projects/:id/releases/:tagName/assets/links/:linkId
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancetagName
- the tag name that the link was created fromlinkId
- the id of the Link to deleteGitLabApiException
- if any exception occurs