Class AwardEmojiApi

    • Constructor Detail

      • AwardEmojiApi

        public AwardEmojiApi​(GitLabApi gitLabApi)
    • Method Detail

      • getIssueAwardEmojis

        public List<AwardEmoji> getIssueAwardEmojis​(Object projectIdOrPath,
                                                    Integer issueIid)
                                             throws GitLabApiException
        Get a list of award emoji for the specified issue.
        GitLab Endpoint: GET /projects/:id/issues/:issue_iid/award_emoji
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        issueIid - the issue IID to get the award emojis for
        Returns:
        a list of AwardEmoji for the specified issue
        Throws:
        GitLabApiException - if any exception occurs
      • getMergeRequestAwardEmojis

        public List<AwardEmoji> getMergeRequestAwardEmojis​(Object projectIdOrPath,
                                                           Integer mergeRequestIid)
                                                    throws GitLabApiException
        Get a list of award emoji for the specified merge request.
        GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/award_emoji
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        mergeRequestIid - the merge request IID to get the award emojis for
        Returns:
        a list of AwardEmoji for the specified merge request
        Throws:
        GitLabApiException - if any exception occurs
      • getSnippetAwardEmojis

        public List<AwardEmoji> getSnippetAwardEmojis​(Object projectIdOrPath,
                                                      Integer snippetId)
                                               throws GitLabApiException
        Get a list of award emoji for the specified snippet.
        GitLab Endpoint: GET /projects/:id/snippets/:snippet_id/award_emoji
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        snippetId - the snippet ID to get the award emojis for
        Returns:
        a list of AwardEmoji for the specified snippet
        Throws:
        GitLabApiException - if any exception occurs
      • getNoteAwardEmojis

        public List<AwardEmoji> getNoteAwardEmojis​(Object projectIdOrPath,
                                                   Integer issueIid,
                                                   Integer noteId)
                                            throws GitLabApiException
        Get a list of award emoji for the specified note.
        GitLab Endpoint: GET /projects/:id/issues/:issue_iid/notes/:note_id/award_emoji
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        issueIid - the issue IID of the issue that owns the note
        noteId - the note ID to get the award emojis for
        Returns:
        a list of AwardEmoji for the specified note
        Throws:
        GitLabApiException - if any exception occurs
      • getIssueAwardEmoji

        public AwardEmoji getIssueAwardEmoji​(Object projectIdOrPath,
                                             Integer issueIid,
                                             Integer awardId)
                                      throws GitLabApiException
        Get the specified award emoji for the specified issue.
        GitLab Endpoint: GET /projects/:id/issues/:issue_iid/award_emoji/:award_id
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        issueIid - the issue IID to get the award emoji for
        awardId - the ID of the award emoji to get
        Returns:
        an AwardEmoji instance for the specified award emoji
        Throws:
        GitLabApiException - if any exception occurs
      • getMergeRequestAwardEmoji

        public AwardEmoji getMergeRequestAwardEmoji​(Object projectIdOrPath,
                                                    Integer mergeRequestIid,
                                                    Integer awardId)
                                             throws GitLabApiException
        Get the specified award emoji for the specified merge request.
        GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/award_emoji/:award_id
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        mergeRequestIid - the merge request IID to get the award emoji for
        awardId - the ID of the award emoji to get
        Returns:
        an AwardEmoji instance for the specified award emoji
        Throws:
        GitLabApiException - if any exception occurs
      • getSnippetAwardEmoji

        public AwardEmoji getSnippetAwardEmoji​(Object projectIdOrPath,
                                               Integer snippetId,
                                               Integer awardId)
                                        throws GitLabApiException
        Get the specified award emoji for the specified snippet.
        GitLab Endpoint: GET /projects/:id/snippets/:snippet_id/award_emoji/:award_id
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        snippetId - the snippet ID to get the award emoji for
        awardId - the ID of the award emoji to get
        Returns:
        an AwardEmoji instance for the specified award emoji
        Throws:
        GitLabApiException - if any exception occurs
      • getNoteAwardEmoji

        public AwardEmoji getNoteAwardEmoji​(Object projectIdOrPath,
                                            Integer issueIid,
                                            Integer noteId,
                                            Integer awardId)
                                     throws GitLabApiException
        Get the specified award emoji for the specified note.
        GitLab Endpoint: GET /projects/:id/issues/:issue_iid/notes/:note_id/award_emoji/:award_id
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        issueIid - the issue IID of the issue that owns the note
        noteId - the note ID to get the award emoji from
        awardId - the ID of the award emoji to get
        Returns:
        an AwardEmoji instance for the specified award emoji
        Throws:
        GitLabApiException - if any exception occurs
      • addIssueAwardEmoji

        public AwardEmoji addIssueAwardEmoji​(Object projectIdOrPath,
                                             Integer issueIid,
                                             String name)
                                      throws GitLabApiException
        Add an award emoji for the specified issue.
        GitLab Endpoint: POST /projects/:id/issues/:issue_iid/award_emoji
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        issueIid - the issue IID to add the award emoji to
        name - the name of the award emoji to add
        Returns:
        an AwardEmoji instance for the added award emoji
        Throws:
        GitLabApiException - if any exception occurs
      • addMergeRequestAwardEmoji

        public AwardEmoji addMergeRequestAwardEmoji​(Object projectIdOrPath,
                                                    Integer mergeRequestIid,
                                                    String name)
                                             throws GitLabApiException
        Add an award emoji to the specified merge request.
        GitLab Endpoint: POST /projects/:id/merge_requests/:merge_request_iid/award_emoji
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        mergeRequestIid - the merge request IID to add the award emoji to
        name - the name of the award emoji to add
        Returns:
        an AwardEmoji instance for the added award emoji
        Throws:
        GitLabApiException - if any exception occurs
      • addSnippetAwardEmoji

        public AwardEmoji addSnippetAwardEmoji​(Object projectIdOrPath,
                                               Integer snippetId,
                                               String name)
                                        throws GitLabApiException
        Add an award emoji to the specified snippet.
        GitLab Endpoint: POST /projects/:id/snippets/:snippet_id/award_emoji
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        snippetId - the snippet ID to add the award emoji to
        name - the name of the award emoji to add
        Returns:
        an AwardEmoji instance for the added award emoji
        Throws:
        GitLabApiException - if any exception occurs
      • addNoteAwardEmoji

        public AwardEmoji addNoteAwardEmoji​(Object projectIdOrPath,
                                            Integer issueIid,
                                            Integer noteId,
                                            String name)
                                     throws GitLabApiException
        Add an award emoji for the specified note.
        GitLab Endpoint: POST /projects/:id/issues/:issue_iid/notes/:noteId/award_emoji
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        issueIid - the issue IID of the issue that owns the note
        noteId - the note ID to add the award emoji to
        name - the name of the award emoji to add
        Returns:
        an AwardEmoji instance for the added award emoji
        Throws:
        GitLabApiException - if any exception occurs
      • deleteIssueAwardEmoji

        public void deleteIssueAwardEmoji​(Object projectIdOrPath,
                                          Integer issueIid,
                                          Integer awardId)
                                   throws GitLabApiException
        Delete an award emoji from the specified issue.
        GitLab Endpoint: DELETE /projects/:id/issues/:issue_iid/award_emoji/:award_id
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        issueIid - the issue IID to delete the award emoji from
        awardId - the ID of the award emoji to delete
        Throws:
        GitLabApiException - if any exception occurs
      • deleteMergeRequestAwardEmoji

        public void deleteMergeRequestAwardEmoji​(Object projectIdOrPath,
                                                 Integer mergeRequestIid,
                                                 Integer awardId)
                                          throws GitLabApiException
        Delete an award emoji from the specified merge request.
        GitLab Endpoint: DELETE /projects/:id/merge_requests/:merge_request_iid/award_emoji/:award_id
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        mergeRequestIid - the merge request IID to delete the award emoji from
        awardId - the ID of the award emoji to delete
        Throws:
        GitLabApiException - if any exception occurs
      • deleteSnippetAwardEmoji

        public void deleteSnippetAwardEmoji​(Object projectIdOrPath,
                                            Integer snippetId,
                                            Integer awardId)
                                     throws GitLabApiException
        Delete an award emoji from the specified snippet.
        GitLab Endpoint: DELETE /projects/:id/snippets/:snippet_id/award_emoji/:award_id
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        snippetId - the snippet ID to delete the award emoji from
        awardId - the ID of the award emoji to delete
        Throws:
        GitLabApiException - if any exception occurs
      • deleteNoteAwardEmoji

        public void deleteNoteAwardEmoji​(Object projectIdOrPath,
                                         Integer issueIid,
                                         Integer noteId,
                                         Integer awardId)
                                  throws GitLabApiException
        Delete an award emoji from the specified note.
        GitLab Endpoint: DELETE /projects/:id/issues/:issue_iid/notes/:note_id/award_emoji/:award_id
        Parameters:
        projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
        issueIid - the issue IID that owns the note
        noteId - the note ID of the note to delete the award emoji from
        awardId - the ID of the award emoji to delete
        Throws:
        GitLabApiException - if any exception occurs