src/main/java/org/gitlab4j/api/ServicesApi.java
public HipChatService updateHipChatService(Object projectIdOrPath, HipChatService hipChat) throws GitLabApiException {
        GitLabApiForm formData = new GitLabApiForm()
                .withParam("push_events", hipChat.getPushEvents())
                .withParam("issues_events", hipChat.getIssuesEvents())
                .withParam("confidential_issues_events", hipChat.getConfidentialIssuesEvents())
                .withParam("merge_requests_events", hipChat.getMergeRequestsEvents())
                .withParam("tag_push_events", hipChat.getTagPushEvents())
                .withParam("note_events", hipChat.getNoteEvents())
                .withParam("confidential_note_events", hipChat.getConfidentialNoteEvents())
                .withParam("pipeline_events", hipChat.getPipelineEvents())
                .withParam("token", hipChat.getToken(), true)
                .withParam("color", hipChat.getColor())
                .withParam("notify", hipChat.getNotify())
                .withParam("room", hipChat.getRoom())
                .withParam("api_version", hipChat.getApiVersion())
                .withParam("server", hipChat.getServer())
                .withParam("notify_only_broken_pipelines", hipChat.getNotifyOnlyBrokenPipelines());
        Response response = put(Response.Status.OK, formData.asMap(), "projects", getProjectIdOrPath(projectIdOrPath), "services", "hipchat");
        return (response.readEntity(HipChatService.class));
    }
/**
     * Updates the HipChatService notification settings for a project.
     *
     * PUT /projects/:id/services/hipchat
     * 
     * The following properties on the HipChatService instance are utilized in the update of the settings:
     *
     * pushEvents (optional) - Enable notifications for push events
     * issuesEvents (optional) - Enable notifications for issue events
     * confidentialIssuesEvents (optional) - Enable notifications for confidential issue events
     * MergeRequestsEvents (optional) - Enable notifications for merge request events
     * tagPushEvents (optional) - Enable notifications for tag push events
     * noteEvents (optional) - Enable notifications for note events
     * confidentialNoteEvents (optional) - Enable notifications for confidential note events
     * pipelineEvents (optional) - Enable notifications for pipeline events
     * token (required) - The room token
     * color (optional) - The room color
     * notify (optional) - Enable notifications
     * room (optional) - Room name or ID
     * apiVersion (optional) - Leave blank for default (v2)
     * server (false) - Leave blank for default. https://hipchat.example.com
     * notifyOnlyBrokenPipelines (optional) - Send notifications for broken pipelines
     *
     * @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
     * @param hipChat the HipChatService instance holding the settings
     * @return a HipChatService instance holding the newly updated settings
     * @throws GitLabApiException if any exception occurs
     */
Updates the HipChatService notification settings for a project.
PUT /projects/:id/services/hipchat

The following properties on the HipChatService instance are utilized in the update of the settings.



@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
@param hipChat the HipChatService instance holding the settings
@return a HipChatService instance holding the newly updated settings
@throws GitLabApiException if any exception occurs
Updates the HipChatService notification settings for a project . PUT / projects / : id / services / hipchat The following properties on the HipChatService instance are utilized in the update of the settings . @param projectIdOrPath id path of the project or a Project instance holding the project ID or path @param hipChat the HipChatService instance holding the settings @return a HipChatService instance holding the newly updated settings @throws GitLabApiException if any exception occurs
public HipChatService updateHipChatService(Object projectIdOrPath, HipChatService hipChat) throws GitLabApiException {
        GitLabApiForm formData = new GitLabApiForm()
                .withParam("push_events", hipChat.getPushEvents())
                .withParam("issues_events", hipChat.getIssuesEvents())
                .withParam("confidential_issues_events", hipChat.getConfidentialIssuesEvents())
                .withParam("merge_requests_events", hipChat.getMergeRequestsEvents())
                .withParam("tag_push_events", hipChat.getTagPushEvents())
                .withParam("note_events", hipChat.getNoteEvents())
                .withParam("confidential_note_events", hipChat.getConfidentialNoteEvents())
                .withParam("pipeline_events", hipChat.getPipelineEvents())
                .withParam("token", hipChat.getToken(), true)
                .withParam("color", hipChat.getColor())
                .withParam("notify", hipChat.getNotify())
                .withParam("room", hipChat.getRoom())
                .withParam("api_version", hipChat.getApiVersion())
                .withParam("server", hipChat.getServer())
                .withParam("notify_only_broken_pipelines", hipChat.getNotifyOnlyBrokenPipelines());
        Response response = put(Response.Status.OK, formData.asMap(), "projects", getProjectIdOrPath(projectIdOrPath), "services", "hipchat");
        return (response.readEntity(HipChatService.class));
    }
public HipChatService updateHipChatService ( Object projectIdOrPath , HipChatService hipChat ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "push_events" , hipChat . getPushEvents ( ) ) . withParam ( "issues_events" , hipChat . getIssuesEvents ( ) ) . withParam ( "confidential_issues_events" , hipChat . getConfidentialIssuesEvents ( ) ) . withParam ( "merge_requests_events" , hipChat . getMergeRequestsEvents ( ) ) . withParam ( "tag_push_events" , hipChat . getTagPushEvents ( ) ) . withParam ( "note_events" , hipChat . getNoteEvents ( ) ) . withParam ( "confidential_note_events" , hipChat . getConfidentialNoteEvents ( ) ) . withParam ( "pipeline_events" , hipChat . getPipelineEvents ( ) ) . withParam ( "token" , hipChat . getToken ( ) , true ) . withParam ( "color" , hipChat . getColor ( ) ) . withParam ( "notify" , hipChat . getNotify ( ) ) . withParam ( "room" , hipChat . getRoom ( ) ) . withParam ( "api_version" , hipChat . getApiVersion ( ) ) . withParam ( "server" , hipChat . getServer ( ) ) . withParam ( "notify_only_broken_pipelines" , hipChat . getNotifyOnlyBrokenPipelines ( ) ) ; Response response = put ( Response . Status . OK , formData . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "services" , "hipchat" ) ; return ( response . readEntity ( HipChatService . class ) ) ; }
Updates the HipChatService notification settings for a project.
Updates the HipChatService notification settings for a project .