Package org.gitlab4j.api
Class ResourceLabelEventsApi
- java.lang.Object
-
- org.gitlab4j.api.AbstractApi
-
- org.gitlab4j.api.ResourceLabelEventsApi
-
- All Implemented Interfaces:
Constants
public class ResourceLabelEventsApi extends AbstractApi
This class provides an entry point to all the GitLab Resource label events API- See Also:
- Resource label events API at GitLab
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.gitlab4j.api.Constants
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<T>, 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.PipelineSource, Constants.ProjectAccessTokenScope, Constants.ProjectCreationLevel, Constants.ProjectOrderBy, Constants.ProjectSearchScope<T>, Constants.SearchScope<T>, Constants.SortOrder, Constants.SquashOption, Constants.StateEvent, Constants.SubgroupCreationLevel, Constants.TagOrderBy, Constants.TargetType, Constants.TodoAction, Constants.TodoState, Constants.TodoType, Constants.TokenType
-
-
Field Summary
-
Fields inherited from class org.gitlab4j.api.AbstractApi
gitLabApi
-
Fields inherited from interface org.gitlab4j.api.Constants
NEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER
-
-
Constructor Summary
Constructors Constructor Description ResourceLabelEventsApi(GitLabApi gitLabApi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LabelEvent
getEpicLabelEvent(java.lang.Object projectIdOrPath, java.lang.Long epicId, java.lang.Long resourceLabelEventId)
Get a single label event for a specific epic label event.java.util.List<LabelEvent>
getEpicLabelEvents(java.lang.Object projectIdOrPath, java.lang.Long epicId)
Gets a list of all label events for an epic.Pager<LabelEvent>
getEpicLabelEvents(java.lang.Object projectIdOrPath, java.lang.Long epicId, int itemsPerPage)
Gets a Pager of all label events for the specified epic.java.util.stream.Stream<LabelEvent>
getEpicLabelEventsStream(java.lang.Object projectIdOrPath, java.lang.Long epicId)
Gets a Stream of all label events for he specified epic.LabelEvent
getIssueLabelEvent(java.lang.Object projectIdOrPath, java.lang.Long issueIid, java.lang.Long resourceLabelEventId)
Get a single label event for a specific project issue.java.util.List<LabelEvent>
getIssueLabelEvents(java.lang.Object projectIdOrPath, java.lang.Long issueIid)
Gets a list of all label events for a single issue.Pager<LabelEvent>
getIssueLabelEvents(java.lang.Object projectIdOrPath, java.lang.Long issueIid, int itemsPerPage)
Gets a Pager of all label events for a single issue.java.util.stream.Stream<LabelEvent>
getIssueLabelEventsStream(java.lang.Object projectIdOrPath, java.lang.Long issueIid)
Gets a Stream of all label events for a single issue.LabelEvent
getMergeRequestLabelEvent(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, java.lang.Long resourceLabelEventId)
Get a single label event for a specific merge request label event.java.util.List<LabelEvent>
getMergeRequestLabelEvents(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid)
Gets a list of all label events for a merge request.Pager<LabelEvent>
getMergeRequestLabelEvents(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, int itemsPerPage)
Gets a Pager of all label events for the specified merge request.java.util.stream.Stream<LabelEvent>
getMergeRequestLabelEventsStream(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid)
Gets a Stream of all label events for he specified merge request.java.util.Optional<LabelEvent>
getOptionalEpicLabelEvent(java.lang.Object projectIdOrPath, java.lang.Long epicId, java.lang.Long resourceLabelEventId)
Get an Optional instance holding a LabelEvent for a specific epic label event.java.util.Optional<LabelEvent>
getOptionalIssueLabelEvent(java.lang.Object projectIdOrPath, java.lang.Long issueIid, java.lang.Long resourceLabelEventId)
Get an Optional instance holding a LabelEvent for a specific project issuejava.util.Optional<LabelEvent>
getOptionalMergeRequestLabelEvent(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, java.lang.Long resourceLabelEventId)
Get an Optional instance holding a LabelEvent for a specific merge request label event.-
Methods inherited from class org.gitlab4j.api.AbstractApi
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
-
-
-
-
Constructor Detail
-
ResourceLabelEventsApi
public ResourceLabelEventsApi(GitLabApi gitLabApi)
-
-
Method Detail
-
getIssueLabelEvents
public java.util.List<LabelEvent> getIssueLabelEvents(java.lang.Object projectIdOrPath, java.lang.Long issueIid) throws GitLabApiException
Gets a list of all label events for a single issue.GitLab Endpoint: GET /projects/:id/issues/:issue_iid/resource_label_events
- Parameters:
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathissueIid
- the IID of the issue- Returns:
- a List of LabelEvent for the specified issue
- Throws:
GitLabApiException
- if any exception occurs
-
getIssueLabelEvents
public Pager<LabelEvent> getIssueLabelEvents(java.lang.Object projectIdOrPath, java.lang.Long issueIid, int itemsPerPage) throws GitLabApiException
Gets a Pager of all label events for a single issue.GitLab Endpoint: GET /projects/:id/issues/:issue_iid/resource_label_events
- Parameters:
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathissueIid
- the IID of the issueitemsPerPage
- the number of LabelEvent instances that will be fetched per page- Returns:
- the Pager of LabelEvent instances for the specified issue IID
- Throws:
GitLabApiException
- if any exception occurs
-
getIssueLabelEventsStream
public java.util.stream.Stream<LabelEvent> getIssueLabelEventsStream(java.lang.Object projectIdOrPath, java.lang.Long issueIid) throws GitLabApiException
Gets a Stream of all label events for a single issue.GitLab Endpoint: GET /projects/:id/issues/:issue_iid/resource_label_events
- Parameters:
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathissueIid
- the IID of the issue- Returns:
- a Stream of LabelEvent for the specified issue
- Throws:
GitLabApiException
- if any exception occurs
-
getIssueLabelEvent
public LabelEvent getIssueLabelEvent(java.lang.Object projectIdOrPath, java.lang.Long issueIid, java.lang.Long resourceLabelEventId) throws GitLabApiException
Get a single label event for a specific project issue.GitLab Endpoint: GET /projects/:id/issues/:issue_iid/resource_label_events/:resource_label_event_id
- Parameters:
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathissueIid
- the IID of the issueresourceLabelEventId
- the ID of a label event- Returns:
- LabelEvent instance for the specified project issue
- Throws:
GitLabApiException
- if any exception occurs
-
getOptionalIssueLabelEvent
public java.util.Optional<LabelEvent> getOptionalIssueLabelEvent(java.lang.Object projectIdOrPath, java.lang.Long issueIid, java.lang.Long resourceLabelEventId) throws GitLabApiException
Get an Optional instance holding a LabelEvent for a specific project issueGitLab Endpoint: GET /projects/:id/issues/:issue_iid/resource_label_events/:resource_label_event_id
- Parameters:
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathissueIid
- the IID of the issueresourceLabelEventId
- the ID of a label event- Returns:
- an Optional instance with the specified LabelEvent as the value
- Throws:
GitLabApiException
- if any exception occurs
-
getEpicLabelEvents
public java.util.List<LabelEvent> getEpicLabelEvents(java.lang.Object projectIdOrPath, java.lang.Long epicId) throws GitLabApiException
Gets a list of all label events for an epic.GitLab Endpoint: GET /projects/:id/epics/:epic_id/resource_label_events
- Parameters:
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathepicId
- the ID of the epic- Returns:
- a List of LabelEvent for the specified epic
- Throws:
GitLabApiException
- if any exception occurs
-
getEpicLabelEvents
public Pager<LabelEvent> getEpicLabelEvents(java.lang.Object projectIdOrPath, java.lang.Long epicId, int itemsPerPage) throws GitLabApiException
Gets a Pager of all label events for the specified epic.GitLab Endpoint: GET /projects/:id/epics/:epic_id/resource_label_events
- Parameters:
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathepicId
- the ID of the epicitemsPerPage
- the number of LabelEvent instances that will be fetched per page- Returns:
- the Pager of LabelEvent instances for the specified epic
- Throws:
GitLabApiException
- if any exception occurs
-
getEpicLabelEventsStream
public java.util.stream.Stream<LabelEvent> getEpicLabelEventsStream(java.lang.Object projectIdOrPath, java.lang.Long epicId) throws GitLabApiException
Gets a Stream of all label events for he specified epic.GitLab Endpoint: GET /projects/:id/epics/:epic_id/resource_label_events
- Parameters:
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathepicId
- the ID of the epic- Returns:
- a Stream of LabelEvent for the specified epic
- Throws:
GitLabApiException
- if any exception occurs
-
getEpicLabelEvent
public LabelEvent getEpicLabelEvent(java.lang.Object projectIdOrPath, java.lang.Long epicId, java.lang.Long resourceLabelEventId) throws GitLabApiException
Get a single label event for a specific epic label event.GitLab Endpoint: GET /projects/:id/epics/:epic_id/resource_label_events/:resource_label_event_id
- Parameters:
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathepicId
- the ID of the epicresourceLabelEventId
- the ID of a label event- Returns:
- LabelEvent instance for the specified epic label event
- Throws:
GitLabApiException
- if any exception occurs
-
getOptionalEpicLabelEvent
public java.util.Optional<LabelEvent> getOptionalEpicLabelEvent(java.lang.Object projectIdOrPath, java.lang.Long epicId, java.lang.Long resourceLabelEventId) throws GitLabApiException
Get an Optional instance holding a LabelEvent for a specific epic label event.GitLab Endpoint: GET /projects/:id/epics/:epic_id/resource_label_events/:resource_label_event_id
- Parameters:
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathepicId
- the ID of the epicresourceLabelEventId
- the ID of a label event- Returns:
- an Optional instance with the specified LabelEvent as the value
- Throws:
GitLabApiException
- if any exception occurs
-
getMergeRequestLabelEvents
public java.util.List<LabelEvent> getMergeRequestLabelEvents(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
Gets a list of all label events for a merge request.GitLab Endpoint: GET /projects/:id/merge_requests/:epic_id/resource_label_events
- Parameters:
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathmergeRequestIid
- the IID of the merge request- Returns:
- a List of LabelEvent for the specified merge request
- Throws:
GitLabApiException
- if any exception occurs
-
getMergeRequestLabelEvents
public Pager<LabelEvent> getMergeRequestLabelEvents(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, int itemsPerPage) throws GitLabApiException
Gets a Pager of all label events for the specified merge request.GitLab Endpoint: GET /projects/:id/merge_requests/:epic_id/resource_label_events
- Parameters:
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathmergeRequestIid
- the IID of the merge requestitemsPerPage
- the number of LabelEvent instances that will be fetched per page- Returns:
- the Pager of LabelEvent instances for the specified merge request
- Throws:
GitLabApiException
- if any exception occurs
-
getMergeRequestLabelEventsStream
public java.util.stream.Stream<LabelEvent> getMergeRequestLabelEventsStream(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
Gets a Stream of all label events for he specified merge request.GitLab Endpoint: GET /projects/:id/merge_requests/:issue_iid/resource_label_events
- Parameters:
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathmergeRequestIid
- the IID of the merge request- Returns:
- a Stream of LabelEvent for the specified merge request
- Throws:
GitLabApiException
- if any exception occurs
-
getMergeRequestLabelEvent
public LabelEvent getMergeRequestLabelEvent(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, java.lang.Long resourceLabelEventId) throws GitLabApiException
Get a single label event for a specific merge request label event.GitLab Endpoint: GET /projects/:id/merge_requests/:epic_id/resource_label_events/:resource_label_event_id
- Parameters:
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathmergeRequestIid
- the IID of the merge requestresourceLabelEventId
- the ID of a label event- Returns:
- LabelEvent instance for the specified epic label event
- Throws:
GitLabApiException
- if any exception occurs
-
getOptionalMergeRequestLabelEvent
public java.util.Optional<LabelEvent> getOptionalMergeRequestLabelEvent(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, java.lang.Long resourceLabelEventId) throws GitLabApiException
Get an Optional instance holding a LabelEvent for a specific merge request label event.GitLab Endpoint: GET /projects/:id/merge_requests/:issue_iid/resource_label_events/:resource_label_event_id
- Parameters:
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathmergeRequestIid
- the IID of the merge requestresourceLabelEventId
- the ID of a label event- Returns:
- an Optional instance with the specified LabelEvent as the value
- Throws:
GitLabApiException
- if any exception occurs
-
-