Class DiscussionsApi

java.lang.Object
org.gitlab4j.api.AbstractApi
org.gitlab4j.api.DiscussionsApi
All Implemented Interfaces:
Constants

public class DiscussionsApi extends AbstractApi
This class implements the client side API for the GitLab Discussions API. See Discussions API at GitLab for more information.
  • Constructor Details

    • DiscussionsApi

      public DiscussionsApi(GitLabApi gitLabApi)
  • Method Details

    • getIssueDiscussions

      public List<Discussion> getIssueDiscussions(Object projectIdOrPath, Long issueIid) throws GitLabApiException
      Get a list of all discussions for the specified issue.
      GitLab Endpoint: GET /projects/:id/issues/:issue_iid/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      issueIid - the internal ID of the issue
      Returns:
      a list containing all the discussions for the specified issue
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getIssueDiscussions

      public List<Discussion> getIssueDiscussions(Object projectIdOrPath, Long issueIid, int maxItems) throws GitLabApiException
      Get a list of discussions for the specified issue.
      GitLab Endpoint: GET /projects/:id/issues/:issue_iid/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      issueIid - the internal ID of the issue
      maxItems - the maximum number of Discussion instances to get, if < 1 will fetch all Discussion instances for the issue
      Returns:
      a list containing the discussions for the specified issue
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getIssueDiscussionsPager

      public Pager<Discussion> getIssueDiscussionsPager(Object projectIdOrPath, Long issueIid, int itemsPerPage) throws GitLabApiException
      Get a Pager of Discussion instances for the specified issue.
      GitLab Endpoint: GET /projects/:id/issues/:issue_iid/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      issueIid - the internal ID of the issue
      itemsPerPage - the number of Discussion instances that will be fetched per page
      Returns:
      a Pager containing the Discussion instances for the specified issue
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getIssueDiscussionsStream

      public Stream<Discussion> getIssueDiscussionsStream(Object projectIdOrPath, Long issueIid) throws GitLabApiException
      Get a Stream of Discussion instances for the specified issue.
      GitLab Endpoint: GET /projects/:id/issues/:issue_iid/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      issueIid - the internal ID of the issue
      Returns:
      a Stream instance containing the Discussion instances for the specified issue
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getSnippetDiscussions

      public List<Discussion> getSnippetDiscussions(Object projectIdOrPath, Long snippetId) throws GitLabApiException
      Get a list of all discussions for the specified snippet.
      GitLab Endpoint: GET /projects/:id/snippets/:snippet_id/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      snippetId - the ID of the snippet
      Returns:
      a list containing all the discussions for the specified snippet
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getSnippetDiscussions

      public List<Discussion> getSnippetDiscussions(Object projectIdOrPath, Long snippetId, int maxItems) throws GitLabApiException
      Get a list of discussions for the specified snippet.
      GitLab Endpoint: GET /projects/:id/snippets/:snippet_id/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      snippetId - the ID of the snippet
      maxItems - the maximum number of Discussion instances to get, if < 1 will fetch all Discussion instances for the snippet
      Returns:
      a list containing the discussions for the specified snippet
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getSnippetDiscussionsPager

      public Pager<Discussion> getSnippetDiscussionsPager(Object projectIdOrPath, Long snippetId, int itemsPerPage) throws GitLabApiException
      Get a Pager of Discussion instances for the specified snippet.
      GitLab Endpoint: GET /projects/:id/snippets/:snippet_id/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      snippetId - the ID of the snippet
      itemsPerPage - the number of Discussion instances that will be fetched per page
      Returns:
      a Pager containing the Discussion instances for the specified snippet
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getSnippetDiscussionsStream

      public Stream<Discussion> getSnippetDiscussionsStream(Object projectIdOrPath, Long snippetId) throws GitLabApiException
      Get a Stream of Discussion instances for the specified snippet.
      GitLab Endpoint: GET /projects/:id/snippets/:snippet_id/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      snippetId - the ID of the snippet
      Returns:
      a Stream instance containing the Discussion instances for the specified snippet
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getEpicDiscussions

      public List<Discussion> getEpicDiscussions(Object projectIdOrPath, Long epicId) throws GitLabApiException
      Get a list of all discussions for the specified epic.
      GitLab Endpoint: GET /projects/:id/epics/:epic_id/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      epicId - the internal ID of the epic
      Returns:
      a list containing all the discussions for the specified epic
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getEpicDiscussions

      public List<Discussion> getEpicDiscussions(Object projectIdOrPath, Long epicId, int maxItems) throws GitLabApiException
      Get a list of discussions for the specified epic.
      GitLab Endpoint: GET /projects/:id/epics/:epic_id/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      epicId - the internal ID of the epic
      maxItems - the maximum number of Discussion instances to get, if < 1 will fetch all Discussion instances for the epic
      Returns:
      a list containing the discussions for the specified epic
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getEpicDiscussionsPager

      public Pager<Discussion> getEpicDiscussionsPager(Object projectIdOrPath, Long epicId, int itemsPerPage) throws GitLabApiException
      Get a Pager of Discussion instances for the specified epic.
      GitLab Endpoint: GET /projects/:id/epics/:epic_id/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      epicId - the internal ID of the epic
      itemsPerPage - the number of Discussion instances that will be fetched per page
      Returns:
      a Pager containing the Discussion instances for the specified epic
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getEpicDiscussionsStream

      public Stream<Discussion> getEpicDiscussionsStream(Object projectIdOrPath, Long epicId) throws GitLabApiException
      Get a Stream of Discussion instances for the specified epic.
      GitLab Endpoint: GET /projects/:id/epics/:epic_id/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      epicId - the internal ID of the epic
      Returns:
      a Stream instance containing the Discussion instances for the specified epic
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getMergeRequestDiscussions

      public List<Discussion> getMergeRequestDiscussions(Object projectIdOrPath, Long mergeRequestIid) throws GitLabApiException
      Get a list of all discussions for the specified merge request.
      GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      mergeRequestIid - the internal ID of the merge request
      Returns:
      a list containing all the discussions for the specified merge request
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getMergeRequestDiscussions

      public List<Discussion> getMergeRequestDiscussions(Object projectIdOrPath, Long mergeRequestIid, int maxItems) throws GitLabApiException
      Get a list of discussions for the specified merge request.
      GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      mergeRequestIid - the internal ID of the merge request
      maxItems - the maximum number of Discussion instances to get, if < 1 will fetch all Discussion instances for the merge request
      Returns:
      a list containing the discussions for the specified merge request
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getMergeRequestDiscussionsPager

      public Pager<Discussion> getMergeRequestDiscussionsPager(Object projectIdOrPath, Long mergeRequestIid, int itemsPerPage) throws GitLabApiException
      Get a Pager of Discussion instances for the specified merge request.
      GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      mergeRequestIid - the internal ID of the merge request
      itemsPerPage - the number of Discussion instances that will be fetched per page
      Returns:
      a Pager containing the Discussion instances for the specified merge request
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getMergeRequestDiscussionsStream

      public Stream<Discussion> getMergeRequestDiscussionsStream(Object projectIdOrPath, Long mergeRequestIid) throws GitLabApiException
      Get a Stream of Discussion instances for the specified merge request.
      GitLab Endpoint: GET /projects/:id/issues/:issue_iid/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      mergeRequestIid - the internal ID of the merge request
      Returns:
      a Stream instance containing the Discussion instances for the specified issue
      Throws:
      GitLabApiException - if any exception occurs during execution
    • createMergeRequestDiscussion

      public Discussion createMergeRequestDiscussion(Object projectIdOrPath, Long mergeRequestIid, String body, Date createdAt, String positionHash, Position position) throws GitLabApiException
      Creates a new discussion to a single project merge request. This is similar to creating a note but other comments (replies) can be added to it later.
      GitLab Endpoint: POST /projects/:id/merge_requests/:merge_request_iid/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      mergeRequestIid - mergeRequestIid the internal ID of the merge request
      body - the content of a discussion
      createdAt - date the discussion was created (requires admin or project/group owner rights)
      positionHash - position when creating a diff note
      position - a Position instance holding the position attributes
      Returns:
      a Discussion instance containing the newly created discussion
      Throws:
      GitLabApiException - if any exception occurs during execution
    • resolveMergeRequestDiscussion

      public Discussion resolveMergeRequestDiscussion(Object projectIdOrPath, Long mergeRequestIid, String discussionId, Boolean resolved) throws GitLabApiException
      Resolve or unresolve whole discussion of a merge request.
      GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid/discussions/:discussion_id
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      mergeRequestIid - mergeRequestIid the internal ID of the merge request
      discussionId - the ID of a discussion
      resolved - resolve/unresolve the discussion
      Returns:
      the updated DIscussion instance
      Throws:
      GitLabApiException - if any exception occurs during execution
    • deleteMergeRequestDiscussionNote

      public void deleteMergeRequestDiscussionNote(Object projectIdOrPath, Long mergeRequestIid, String discussionId, Long noteId) throws GitLabApiException
      Deletes an existing discussion note of a merge request.
      GitLab Endpoint: DELETE /projects/:id/merge_requests/:merge_request_iid/discussions/:discussion_id/notes/:note_id
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      mergeRequestIid - mergeRequestIid the internal ID of the merge request
      discussionId - the ID of a discussion
      noteId - the note ID to delete
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getCommitDiscussions

      public List<Discussion> getCommitDiscussions(Object projectIdOrPath, String commitSha) throws GitLabApiException
      Get a list of all discussions for the specified commit.
      GitLab Endpoint: GET /projects/:id/repository/commits/:commit_sha/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      commitSha - the SHA of the commit to get discussions for
      Returns:
      a list containing all the discussions for the specified commit
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getCommitDiscussions

      public List<Discussion> getCommitDiscussions(Object projectIdOrPath, String commitSha, int maxItems) throws GitLabApiException
      Get a list of discussions for the specified commit.
      GitLab Endpoint: GET /projects/:id/repository/commits/:commit_sha/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      commitSha - the SHA of the commit to get discussions for
      maxItems - the maximum number of Discussion instances to get, if < 1 will fetch all Discussion instances for the commit
      Returns:
      a list containing the discussions for the specified commit
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getCommitDiscussionsPager

      public Pager<Discussion> getCommitDiscussionsPager(Object projectIdOrPath, String commitSha, int itemsPerPage) throws GitLabApiException
      Get a Pager of Discussion instances for the specified commit.
      GitLab Endpoint: GET /projects/:id/repository/commits/:commit_sha/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      commitSha - the SHA of the commit to get discussions for
      itemsPerPage - the number of Discussion instances that will be fetched per page
      Returns:
      a Pager containing the Discussion instances for the specified commit
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getCommitDiscussionsStream

      public Stream<Discussion> getCommitDiscussionsStream(Object projectIdOrPath, String commitSha) throws GitLabApiException
      Get a Stream of Discussion instances for the specified commit.
      GitLab Endpoint: GET /projects/:id/repository/commits/:commit_sha/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      commitSha - the SHA of the commit to get discussions for
      Returns:
      a Stream instance containing the Discussion instances for the specified commit
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getCommitDiscussion

      public Discussion getCommitDiscussion(Object projectIdOrPath, String commitSha, String discussionId) throws GitLabApiException
      Get a single discussion for the specified commit.
      GitLab Endpoint: GET /projects/:id/repository/commits/:commit_sha/discussions/:discussion_id
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      commitSha - the SHA of the commit to get discussions for
      discussionId - the ID of the discussion
      Returns:
      the Discussion instance specified by discussionId for the specified commit
      Throws:
      GitLabApiException - if any exception occurs during execution
    • getOptionalCommitDiscussion

      public Optional<Discussion> getOptionalCommitDiscussion(Object projectIdOrPath, String commitSha, String discussionId)
      Get an Optional instance of a single discussion for the specified commit.
      GitLab Endpoint: GET /projects/:id/repository/commits/:commit_sha/discussions/:discussion_id
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      commitSha - the SHA of the commit to get discussions for
      discussionId - the ID of the discussion
      Returns:
      an Optional instance with the specified Discussion instance as a value
    • createCommitDiscussion

      public Discussion createCommitDiscussion(Object projectIdOrPath, String commitSha, String body, Date createdAt, String positionHash, Position position) throws GitLabApiException
      Creates a new discussion to a single project commit. This is similar to creating a note but other comments (replies) can be added to it later.
      GitLab Endpoint: POST /projects/:id/repository/commits/:commit_sha/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      commitSha - the commit SHA to create the discussion for
      body - the content of a discussion
      createdAt - date the discussion was created (requires admin or project/group owner rights)
      positionHash - position when creating a diff note
      position - a Position instance holding the position attributes
      Returns:
      a Discussion instance containing the newly created discussion
      Throws:
      GitLabApiException - if any exception occurs during execution
    • addCommitDiscussionNote

      public Note addCommitDiscussionNote(Object projectIdOrPath, String commitSha, String discussionId, String body, Date createdAt) throws GitLabApiException
      Adds a note to an existing commit discussion.
      GitLab Endpoint: POST /projects/:id/repository/commits/:commit_sha/discussions/:discussion_id/notes
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      commitSha - the commit SHA to create the discussion for
      discussionId - the ID of a discussion
      body - the content of a discussion
      createdAt - date the discussion was created (requires admin or project/group owner rights)
      Returns:
      a Note instance containing the newly created discussion note
      Throws:
      GitLabApiException - if any exception occurs during execution
    • modifyCommitDiscussionNote

      public Note modifyCommitDiscussionNote(Object projectIdOrPath, String commitSha, String discussionId, Long noteId, String body) throws GitLabApiException
      Modify an existing discussion note of a commit.
      GitLab Endpoint: PUT /projects/:id/repository/commits/:commit_sha/discussions/:discussion_id/notes
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      commitSha - the commit SHA to delete the discussion from
      discussionId - the ID of a discussion
      noteId - the note ID to modify
      body - the content of a discussion
      Returns:
      a Note instance containing the updated discussion note
      Throws:
      GitLabApiException - if any exception occurs during execution
    • resolveCommitDiscussionNote

      public Note resolveCommitDiscussionNote(Object projectIdOrPath, String commitSha, String discussionId, Long noteId, Boolean resolved) throws GitLabApiException
      Resolve or unresolve an existing discussion note of a commit.
      GitLab Endpoint: PUT /projects/:id/repository/commits/:commit_sha/discussions/:discussion_id/notes
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      commitSha - the commit SHA to delete the discussion from
      discussionId - the ID of a discussion
      noteId - the note ID to resolve or unresolve
      resolved - if true will resolve the note, false will unresolve the note
      Returns:
      a Note instance containing the updated discussion note
      Throws:
      GitLabApiException - if any exception occurs during execution
    • deleteCommitDiscussionNote

      public void deleteCommitDiscussionNote(Object projectIdOrPath, String commitSha, String discussionId, Long noteId) throws GitLabApiException
      Deletes an existing discussion note of a commit.
      GitLab Endpoint: DELETE /projects/:id/repository/commits/:commit_sha/discussions/:discussion_id/notes/:note_id
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      commitSha - the commit SHA to delete the discussion from
      discussionId - the ID of a discussion
      noteId - the note ID to delete
      Throws:
      GitLabApiException - if any exception occurs during execution
    • addMergeRequestThreadNote

      public Note addMergeRequestThreadNote(Object projectIdOrPath, Long mergeRequestIid, String discussionId, String body, Date createdAt) throws GitLabApiException
      Adds a new note to the thread. This can also create a thread from a single comment.
      GitLab Endpoint: POST /projects/:id/merge_requests/:merge_request_iid/discussions/:discussion_id/notes
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      mergeRequestIid - mergeRequestIid the internal ID of the merge request
      discussionId - the ID of a discussion
      body - the content of a discussion
      createdAt - date the discussion was created (requires admin or project/group owner rights)
      Returns:
      a Note instance containing the newly created discussion note
      Throws:
      GitLabApiException - if any exception occurs during execution
    • modifyMergeRequestThreadNote

      public Note modifyMergeRequestThreadNote(Object projectIdOrPath, Long mergeRequestIid, String discussionId, Long noteId, String body, Boolean resolved) throws GitLabApiException
      Modify or resolve an existing thread note of a merge request.
      GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid/discussions/:discussion_id/notes/:note_id
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      mergeRequestIid - mergeRequestIid the internal ID of the merge request
      discussionId - the ID of a discussion
      noteId - the note ID to modify
      body - the content of a discussion
      resolved - if true will resolve the note, false will unresolve the note
      Returns:
      a Note instance containing the updated discussion note
      Throws:
      GitLabApiException - if any exception occurs during execution
    • deleteMergeRequestThreadNote

      public void deleteMergeRequestThreadNote(Object projectIdOrPath, Long mergeRequestIid, String discussionId, Long noteId) throws GitLabApiException
      Deletes an existing thread note of a merge request.
      GitLab Endpoint: DELETE /projects/:id/merge_requests/:merge_request_iid/discussions/:discussion_id/notes/:note_id
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      mergeRequestIid - mergeRequestIid the internal ID of the merge request
      discussionId - the ID of a discussion
      noteId - the note ID to delete
      Throws:
      GitLabApiException - if any exception occurs during execution
    • createIssueDiscussion

      public Discussion createIssueDiscussion(Object projectIdOrPath, Long issueIid, String body, Date createdAt) throws GitLabApiException
      Creates a new thread to a single project issue. This is similar to creating a note but other comments (replies) can be added to it later.
      GitLab Endpoint: POST /projects/:id/issues/:issue_iid/discussions
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      issueIid - The IID of an issue
      body - the content of the discussion
      createdAt - (optional) date the discussion was created (requires admin or project/group owner rights)
      Returns:
      a Discussion instance containing the newly created discussion
      Throws:
      GitLabApiException - if any exception occurs during execution
    • addIssueThreadNote

      public Note addIssueThreadNote(Object projectIdOrPath, Long issueIid, String discussionId, String body, Date createdAt) throws GitLabApiException
      Adds a new note to the thread.
      GitLab Endpoint: POST /projects/:id/issues/:issue_iid/discussions/:discussion_id/notes
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      issueIid - The IID of an issue
      discussionId - the id of discussion
      body - the content of the note
      createdAt - (optional) date the discussion was created (requires admin or project/group owner rights)
      Returns:
      a Note instance containing the newly created note
      Throws:
      GitLabApiException - if any exception occurs during execution
    • modifyIssueThreadNote

      public Note modifyIssueThreadNote(Object projectIdOrPath, Long issueIid, String discussionId, Long noteId, String body) throws GitLabApiException
      Modify existing thread note of an issue.
      GitLab Endpoint: PUT /projects/:id/issues/:issue_iid/discussions/:discussion_id/notes/:note_id
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      issueIid - The IID of an issue
      discussionId - the id of discussion
      noteId - the id of the note
      body - the content of the note
      Returns:
      a Note instance containing the modified note
      Throws:
      GitLabApiException - if any exception occurs during execution
    • deleteIssueThreadNote

      public void deleteIssueThreadNote(Object projectIdOrPath, Long issueIid, String discussionId, Long noteId) throws GitLabApiException
      Deletes an existing thread note of an issue.
      GitLab Endpoint: DELETE /projects/:id/issues/:issue_iid/discussions/:discussion_id/notes/:note_id
      Parameters:
      projectIdOrPath - projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
      issueIid - The IID of an issue
      discussionId - the id of discussion
      noteId - the id of the note
      Throws:
      GitLabApiException - if any exception occurs during execution