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
  • Constructor Details

    • ResourceLabelEventsApi

      public ResourceLabelEventsApi​(GitLabApi gitLabApi)
  • Method Details

    • getIssueLabelEvents

      public List<LabelEvent> getIssueLabelEvents​(Object projectIdOrPath, 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 path
      issueIid - 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​(Object projectIdOrPath, 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 path
      issueIid - the IID of the issue
      itemsPerPage - 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 Stream<LabelEvent> getIssueLabelEventsStream​(Object projectIdOrPath, 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 path
      issueIid - the IID of the issue
      Returns:
      a Stream of LabelEvent for the specified issue
      Throws:
      GitLabApiException - if any exception occurs
    • getIssueLabelEvent

      public LabelEvent getIssueLabelEvent​(Object projectIdOrPath, Long issueIid, 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 path
      issueIid - the IID of the issue
      resourceLabelEventId - the ID of a label event
      Returns:
      LabelEvent instance for the specified project issue
      Throws:
      GitLabApiException - if any exception occurs
    • getOptionalIssueLabelEvent

      public Optional<LabelEvent> getOptionalIssueLabelEvent​(Object projectIdOrPath, Long issueIid, Long resourceLabelEventId) throws GitLabApiException
      Get an Optional instance holding a LabelEvent 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 path
      issueIid - the IID of the issue
      resourceLabelEventId - 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 List<LabelEvent> getEpicLabelEvents​(Object projectIdOrPath, 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 path
      epicId - 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​(Object projectIdOrPath, 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 path
      epicId - the ID of the epic
      itemsPerPage - 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 Stream<LabelEvent> getEpicLabelEventsStream​(Object projectIdOrPath, 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 path
      epicId - the ID of the epic
      Returns:
      a Stream of LabelEvent for the specified epic
      Throws:
      GitLabApiException - if any exception occurs
    • getEpicLabelEvent

      public LabelEvent getEpicLabelEvent​(Object projectIdOrPath, Long epicId, 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 path
      epicId - the ID of the epic
      resourceLabelEventId - the ID of a label event
      Returns:
      LabelEvent instance for the specified epic label event
      Throws:
      GitLabApiException - if any exception occurs
    • getOptionalEpicLabelEvent

      public Optional<LabelEvent> getOptionalEpicLabelEvent​(Object projectIdOrPath, Long epicId, 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 path
      epicId - the ID of the epic
      resourceLabelEventId - 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 List<LabelEvent> getMergeRequestLabelEvents​(Object projectIdOrPath, 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 path
      mergeRequestIid - 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​(Object projectIdOrPath, 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 path
      mergeRequestIid - the IID of the merge request
      itemsPerPage - 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 Stream<LabelEvent> getMergeRequestLabelEventsStream​(Object projectIdOrPath, 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 path
      mergeRequestIid - 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​(Object projectIdOrPath, Long mergeRequestIid, 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 path
      mergeRequestIid - the IID of the merge request
      resourceLabelEventId - the ID of a label event
      Returns:
      LabelEvent instance for the specified epic label event
      Throws:
      GitLabApiException - if any exception occurs
    • getOptionalMergeRequestLabelEvent

      public Optional<LabelEvent> getOptionalMergeRequestLabelEvent​(Object projectIdOrPath, Long mergeRequestIid, 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 path
      mergeRequestIid - the IID of the merge request
      resourceLabelEventId - the ID of a label event
      Returns:
      an Optional instance with the specified LabelEvent as the value
      Throws:
      GitLabApiException - if any exception occurs