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 .