Constants
public class ServicesApi extends AbstractApi
Constants.ActionType, Constants.EpicOrderBy, Constants.GroupOrderBy, Constants.ImpersonationState, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.MergeRequestOrderBy, Constants.MergeRequestScope, Constants.MergeRequestState, Constants.MilestoneState, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectOrderBy, Constants.SortOrder, Constants.StateEvent, Constants.TargetType, Constants.TokenType
NEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER
Constructor | Description |
---|---|
ServicesApi(GitLabApi gitLabApi) |
Modifier and Type | Method | Description |
---|---|---|
void |
deleteGitLabCI(Object projectIdOrPath) |
Deprecated.
No longer supported
|
void |
deleteHipChat(Object projectIdOrPath) |
Deprecated.
replaced with
updateHipChat method |
void |
deleteHipChatService(Object projectIdOrPath) |
Deletes the HipChatService service for a project.
|
void |
deleteJiraService(Object projectIdOrPath) |
Deletes the JIRA service for a project.
|
void |
deleteSlackService(Object projectIdOrPath) |
Deletes the Slack notifications service for a project.
|
HipChatService |
getHipChatService(Object projectIdOrPath) |
Get the HipChatService notification configuration for a project.
|
JiraService |
getJiraService(Object projectIdOrPath) |
Get the JIRA service settings for a project.
|
SlackService |
getSlackService(Object projectIdOrPath) |
Get the Slack notification settings for a project.
|
void |
setGitLabCI(Object projectIdOrPath,
String token,
String projectCIUrl) |
Deprecated.
No longer supported
|
void |
setHipChat(Object projectIdOrPath,
String token,
String room,
String server) |
Deprecated.
replaced with
updateHipChat method |
HipChatService |
updateHipChatService(Object projectIdOrPath,
HipChatService hipChat) |
Updates the HipChatService notification settings for a project.
|
JiraService |
updateJiraService(Object projectIdOrPath,
JiraService jira) |
Updates the JIRA service settings for a project.
|
SlackService |
updateSlackService(Object projectIdOrPath,
SlackService slackNotifications) |
Updates the Slack notification settings for a project.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getGroupIdOrPath, getPageQueryParams, getProjectIdOrPath, getWithAccepts, handle, isApiVersion, post, post, post, post, post, put, put, putWithFormData, upload, upload, urlEncode, validate
public ServicesApi(GitLabApi gitLabApi)
public void setGitLabCI(Object projectIdOrPath, String token, String projectCIUrl) throws GitLabApiException
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathtoken
- for authenticationprojectCIUrl
- URL of the GitLab-CI projectGitLabApiException
- if any exception occurspublic void deleteGitLabCI(Object projectIdOrPath) throws GitLabApiException
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathGitLabApiException
- if any exception occurspublic HipChatService getHipChatService(Object projectIdOrPath) throws GitLabApiException
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathGitLabApiException
- if any exception occurspublic HipChatService updateHipChatService(Object projectIdOrPath, HipChatService hipChat) throws GitLabApiException
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathhipChat
- the HipChatService instance holding the settingsGitLabApiException
- if any exception occurspublic void setHipChat(Object projectIdOrPath, String token, String room, String server) throws GitLabApiException
updateHipChat
methodprojectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathtoken
- for authenticationroom
- HipChatService Roomserver
- HipChatService Server URLGitLabApiException
- if any exception occurspublic void deleteHipChat(Object projectIdOrPath) throws GitLabApiException
updateHipChat
methodprojectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathGitLabApiException
- if any exception occurspublic void deleteHipChatService(Object projectIdOrPath) throws GitLabApiException
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathGitLabApiException
- if any exception occurspublic SlackService getSlackService(Object projectIdOrPath) throws GitLabApiException
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathGitLabApiException
- if any exception occurspublic SlackService updateSlackService(Object projectIdOrPath, SlackService slackNotifications) throws GitLabApiException
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathslackNotifications
- the SlackService instance holding the settingsGitLabApiException
- if any exception occurspublic void deleteSlackService(Object projectIdOrPath) throws GitLabApiException
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathGitLabApiException
- if any exception occurspublic JiraService getJiraService(Object projectIdOrPath) throws GitLabApiException
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathGitLabApiException
- if any exception occurspublic JiraService updateJiraService(Object projectIdOrPath, JiraService jira) throws GitLabApiException
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathjira
- the JiraService instance holding the settingsGitLabApiException
- if any exception occurspublic void deleteJiraService(Object projectIdOrPath) throws GitLabApiException
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathGitLabApiException
- if any exception occursCopyright © 2018. All rights reserved.