public class GroupApi extends AbstractApi
Modifier and Type | Method and Description |
---|---|
void |
addGroup(String name,
String path)
Creates a new project group.
|
Member |
addMember(Integer groupId,
Integer userId,
Integer accessLevel)
Adds a user to the list of group members.
|
void |
deleteGroup(Group group)
Removes group with all projects inside.
|
void |
deleteGroup(Integer groupId)
Removes group with all projects inside.
|
Group |
getGroup(int groupId)
Get all details of a group.
|
List<Group> |
getGroups()
Get a list of groups.
|
List<Member> |
getMembers(int groupId)
Get a list of group members viewable by the authenticated user.
|
void |
removeMember(Integer projectId,
Integer userId)
Removes member from the group team.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, handle, post, post, post, put, put, validate
public List<Group> getGroups() throws GitLabApiException
GitLabApiException
public Group getGroup(int groupId) throws GitLabApiException
groupId
- GitLabApiException
public void addGroup(String name, String path) throws GitLabApiException
name
- path
- GitLabApiException
public void deleteGroup(Integer groupId) throws GitLabApiException
groupId
- GitLabApiException
public void deleteGroup(Group group) throws GitLabApiException
group
- GitLabApiException
public List<Member> getMembers(int groupId) throws GitLabApiException
GitLabApiException
public Member addMember(Integer groupId, Integer userId, Integer accessLevel) throws GitLabApiException
groupId
- userId
- accessLevel
- GitLabApiException
public void removeMember(Integer projectId, Integer userId) throws GitLabApiException
projectId
- userId
- GitLabApiException
Copyright © 2017. All rights reserved.