public class ServicesApi extends AbstractApi
Constructor and Description |
---|
ServicesApi(GitLabApi gitLabApi) |
Modifier and Type | Method and Description |
---|---|
void |
deleteGitLabCI(Integer projectId)
Deletes the gitlab-ci service.
|
void |
deleteGitLabCI(Project project)
DELETE /projects/:id/services/gitlab-ci
|
void |
deleteHipChat(Integer projectId)
Deletes the gitlab-ci service.
|
void |
deleteHipChat(Project project)
Deletes the gitlab-ci service.
|
void |
setGitLabCI(Integer projectId,
String token,
String projectCIUrl)
Activates the gitlab-ci service.
|
void |
setGitLabCI(Project project,
String token,
String projectCIUrl)
Activates the gitlab-ci service.
|
void |
setHipChat(Integer projectId,
String token,
String room,
String server)
Activates HipChat notifications.
|
void |
setHipChat(Project project,
String token,
String room,
String server)
Activates HipChat notifications.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, handle, post, post, post, put, put, validate
public ServicesApi(GitLabApi gitLabApi)
public void setGitLabCI(Integer projectId, String token, String projectCIUrl) throws GitLabApiException
projectId
- id of the projecttoken
- for authenticationprojectCIUrl
- URL of the GitLab-CI projectGitLabApiException
public void setGitLabCI(Project project, String token, String projectCIUrl) throws GitLabApiException
project
- the projecttoken
- for authenticationprojectCIUrl
- URL of the GitLab-CI projectGitLabApiException
public void deleteGitLabCI(Integer projectId) throws GitLabApiException
projectId
- id of the projectGitLabApiException
public void deleteGitLabCI(Project project) throws GitLabApiException
project
- to deleteGitLabApiException
public void setHipChat(Integer projectId, String token, String room, String server) throws GitLabApiException
projectId
- id of the projecttoken
- for authenticationroom
- HipChat Roomserver
- HipChat Server URLGitLabApiException
public void setHipChat(Project project, String token, String room, String server) throws GitLabApiException
project
- token
- room
- server
- GitLabApiException
public void deleteHipChat(Integer projectId) throws GitLabApiException
projectId
- id of the projectGitLabApiException
public void deleteHipChat(Project project) throws GitLabApiException
project
- the projectGitLabApiException
Copyright © 2017. All rights reserved.