public class ServicesApi extends AbstractApi
Constants.JobScope, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectOrderBy, Constants.SortOrder
NEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER
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, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getPageQueryParams, getWithAccepts, handle, isApiVersion, post, post, post, put, put, urlEncode, 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
- if any exception occurspublic void setGitLabCI(Project project, String token, String projectCIUrl) throws GitLabApiException
project
- the projecttoken
- for authenticationprojectCIUrl
- URL of the GitLab-CI projectGitLabApiException
- if any exception occurspublic void deleteGitLabCI(Integer projectId) throws GitLabApiException
projectId
- id of the projectGitLabApiException
- if any exception occurspublic void deleteGitLabCI(Project project) throws GitLabApiException
project
- to deleteGitLabApiException
- if any exception occurspublic void setHipChat(Integer projectId, String token, String room, String server) throws GitLabApiException
projectId
- id of the projecttoken
- for authenticationroom
- HipChat Roomserver
- HipChat Server URLGitLabApiException
- if any exception occurspublic void setHipChat(Project project, String token, String room, String server) throws GitLabApiException
project
- the Project instance to activate Hipchat fortoken
- for authenticationroom
- HipChat Roomserver
- HipChat Server URLGitLabApiException
- if any exception occurspublic void deleteHipChat(Integer projectId) throws GitLabApiException
projectId
- id of the projectGitLabApiException
- if any exception occurspublic void deleteHipChat(Project project) throws GitLabApiException
project
- the projectGitLabApiException
- if any exception occursCopyright © 2017. All rights reserved.