Constants
public class NotificationSettingsApi extends AbstractApi
Constants.ActionType, Constants.GroupOrderBy, Constants.ImpersonationState, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, 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 |
---|---|
NotificationSettingsApi(GitLabApi gitLabApi) |
Modifier and Type | Method | Description |
---|---|---|
NotificationSettings |
getGlobalNotificationSettings() |
Get the global notification settings.
|
NotificationSettings |
getGroupNotificationSettings(int groupId) |
Get the notification settings for a group.
|
NotificationSettings |
getProjectNotificationSettings(int projectId) |
Get the notification settings for a project.
|
NotificationSettings |
updateGlobalNotificationSettings(NotificationSettings settings) |
Update the global notification settings.
|
NotificationSettings |
updateGroupNotificationSettings(int groupId,
NotificationSettings settings) |
Update the notification settings for a group
PUT /groups/:id/notification_settings
|
NotificationSettings |
updateProjectNotificationSettings(int projectId,
NotificationSettings settings) |
Update the notification settings for a project
PUT /projects/:id/notification_settings
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getPageQueryParams, getWithAccepts, handle, isApiVersion, post, post, post, post, put, put, putWithFormData, urlEncode, validate
public NotificationSettingsApi(GitLabApi gitLabApi)
public NotificationSettings getGlobalNotificationSettings() throws GitLabApiException
GitLabApiException
- if any exception occurspublic NotificationSettings updateGlobalNotificationSettings(NotificationSettings settings) throws GitLabApiException
settings
- a NotificationSettings instance with the new settingsGitLabApiException
- if any exception occurspublic NotificationSettings getGroupNotificationSettings(int groupId) throws GitLabApiException
groupId
- the group ID to get the notification settings forGitLabApiException
- if any exception occurspublic NotificationSettings updateGroupNotificationSettings(int groupId, NotificationSettings settings) throws GitLabApiException
groupId
- the group ID to update the notification settings forsettings
- a NotificationSettings instance with the new settingsGitLabApiException
- if any exception occurspublic NotificationSettings getProjectNotificationSettings(int projectId) throws GitLabApiException
projectId
- the project ID to get the notification settings forGitLabApiException
- if any exception occurspublic NotificationSettings updateProjectNotificationSettings(int projectId, NotificationSettings settings) throws GitLabApiException
projectId
- the project ID to update the notification settings forsettings
- a NotificationSettings instance with the new settingsGitLabApiException
- if any exception occursCopyright © 2018. All rights reserved.