public class GroupApi extends AbstractApi
Constants.ActionType, Constants.ApplicationScope, Constants.ArchiveFormat, Constants.CommitBuildState, Constants.Encoding, Constants.EpicOrderBy, Constants.GroupOrderBy, Constants.ImpersonationState, Constants.IssueOrderBy, 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
Modifier and Type | Method and Description |
---|---|
Group |
addGroup(Group group) |
Group |
addGroup(String name,
String path)
Creates a new project group.
|
Group |
addGroup(String name,
String path,
String description,
Boolean membershipLock,
Boolean shareWithGroupLock,
Visibility visibility,
Boolean lfsEnabled,
Boolean requestAccessEnabled,
Integer parentId,
Integer sharedRunnersMinutesLimit)
Deprecated.
Will be removed in version 5.0, replaced by
addGroup(String, String, String, Visibility,
Boolean, Boolean, Integer) |
Group |
addGroup(String name,
String path,
String description,
Visibility visibility,
Boolean lfsEnabled,
Boolean requestAccessEnabled,
Integer parentId)
Creates a new project group.
|
void |
addLdapGroupLink(Object groupIdOrPath,
String cn,
AccessLevel groupAccess,
String provider)
Adds an LDAP group link.
|
void |
addLdapGroupLink(Object groupIdOrPath,
String cn,
Integer groupAccess,
String provider)
Adds an LDAP group link.
|
Member |
addMember(Object groupIdOrPath,
Integer userId,
AccessLevel accessLevel)
Adds a user to the list of group members.
|
Member |
addMember(Object groupIdOrPath,
Integer userId,
AccessLevel accessLevel,
Date expiresAt)
Adds a user to the list of group members.
|
Member |
addMember(Object groupIdOrPath,
Integer userId,
Integer accessLevel)
Adds a user to the list of group members.
|
Member |
addMember(Object groupIdOrPath,
Integer userId,
Integer accessLevel,
Date expiresAt)
Adds a user to the list of group members.
|
Variable |
createVariable(Object groupIdOrPath,
String key,
String value,
Boolean isProtected)
Create a new group variable.
|
void |
deleteGroup(Object groupIdOrPath)
Removes group with all projects inside.
|
void |
deleteLdapGroupLink(Object groupIdOrPath,
String cn)
Deletes an LDAP group link.
|
void |
deleteLdapGroupLink(Object groupIdOrPath,
String cn,
String provider)
Deletes an LDAP group link for a specific LDAP provider.
|
void |
deleteVariable(Object groupIdOrPath,
String key)
Deletes a group variable.
|
Group |
getGroup(Object groupIdOrPath)
Get all details of a group.
|
List<Group> |
getGroups()
Get a list of groups.
|
List<Group> |
getGroups(GroupFilter filter)
Get a list of visible groups for the authenticated user using the provided filter.
|
Pager<Group> |
getGroups(GroupFilter filter,
int itemsPerPage)
Get a Pager of visible groups for the authenticated user using the provided filter.
|
Pager<Group> |
getGroups(int itemsPerPage)
Get a Pager of groups.
|
List<Group> |
getGroups(int page,
int perPage)
Get a list of groups (As user: my groups, as admin: all groups) and in the specified page range.
|
List<Group> |
getGroups(String search)
Get all groups that match your string in their name or path.
|
Pager<Group> |
getGroups(String search,
int itemsPerPage)
Get all groups that match your string in their name or path.
|
List<Group> |
getGroups(String search,
int page,
int perPage)
Get all groups that match your string in their name or path.
|
Stream<Group> |
getGroupsStream()
Get a Stream of groups.
|
Stream<Group> |
getGroupsStream(GroupFilter filter)
Get a Stream of visible groups for the authenticated user using the provided filter.
|
Stream<Group> |
getGroupsStream(String search)
Get all groups that match your string in their name or path as a Stream.
|
Member |
getMember(Object groupIdOrPath,
int userId)
Get a group member viewable by the authenticated user.
|
List<Member> |
getMembers(Object groupIdOrPath)
Get a list of group members viewable by the authenticated user.
|
Pager<Member> |
getMembers(Object groupIdOrPath,
int itemsPerPage)
Get a Pager of group members viewable by the authenticated user.
|
List<Member> |
getMembers(Object groupIdOrPath,
int page,
int perPage)
Get a list of group members viewable by the authenticated user in the specified page range.
|
Stream<Member> |
getMembersStream(Object groupIdOrPath)
Get a Stream of group members viewable by the authenticated user.
|
Optional<Group> |
getOptionalGroup(Object groupIdOrPath)
Get all details of a group as an Optional instance.
|
Optional<Member> |
getOptionalMember(Object groupIdOrPath,
int userId)
Get a group member viewable by the authenticated user as an Optional instance.
|
Optional<Variable> |
getOptionalVariable(Object groupIdOrPath,
String key)
Get the details of a group variable as an Optional instance.
|
List<Project> |
getProjects(Object groupIdOrPath)
Get a list of projects belonging to the specified group ID.
|
List<Project> |
getProjects(Object groupIdOrPath,
GroupProjectsFilter filter)
Get a list of projects belonging to the specified group ID and filter.
|
Pager<Project> |
getProjects(Object groupIdOrPath,
GroupProjectsFilter filter,
int itemsPerPage)
Get a Pager of projects belonging to the specified group ID and filter.
|
Pager<Project> |
getProjects(Object groupIdOrPath,
int itemsPerPage)
Get a Pager of projects belonging to the specified group ID.
|
List<Project> |
getProjects(Object groupIdOrPath,
int page,
int perPage)
Get a list of projects belonging to the specified group ID in the specified page range.
|
Stream<Project> |
getProjectsStream(Object groupIdOrPath)
Get a Stream of projects belonging to the specified group ID.
|
Stream<Project> |
getProjectsStream(Object groupIdOrPath,
GroupProjectsFilter filter)
Get a Stream of projects belonging to the specified group ID and filter.
|
List<Group> |
getSubGroups(Object groupIdOrPath)
Get a list of visible direct subgroups in this group.
|
Pager<Group> |
getSubGroups(Object groupIdOrPath,
int itemsPerPage)
Get a Pager of visible direct subgroups in this group.
|
List<Group> |
getSubGroups(Object groupIdOrPath,
List<Integer> skipGroups,
Boolean allAvailable,
String search,
Constants.GroupOrderBy orderBy,
Constants.SortOrder sortOrder,
Boolean statistics,
Boolean owned)
Get a list of visible direct subgroups in this group.
|
Pager<Group> |
getSubGroups(Object groupIdOrPath,
List<Integer> skipGroups,
Boolean allAvailable,
String search,
Constants.GroupOrderBy orderBy,
Constants.SortOrder sortOrder,
Boolean statistics,
Boolean owned,
int itemsPerPage)
Get a Pager of visible direct subgroups in this group.
|
List<Group> |
getSubGroups(Object groupIdOrPath,
List<Integer> skipGroups,
Boolean allAvailable,
String search,
Constants.GroupOrderBy orderBy,
Constants.SortOrder sortOrder,
Boolean statistics,
Boolean owned,
int page,
int perPage)
Get a list of visible direct subgroups in this group.
|
Stream<Group> |
getSubGroupsStream(Object groupIdOrPath)
Get a Stream of visible direct subgroups in this group.
|
Stream<Group> |
getSubGroupsStream(Object groupIdOrPath,
List<Integer> skipGroups,
Boolean allAvailable,
String search,
Constants.GroupOrderBy orderBy,
Constants.SortOrder sortOrder,
Boolean statistics,
Boolean owned)
Get a Stream of visible direct subgroups in this group.
|
Variable |
getVariable(Object groupIdOrPath,
String key)
Get the details of a group variable.
|
List<Variable> |
getVariables(Object groupIdOrPath)
Get list of a group’s variables.
|
Pager<Variable> |
getVariables(Object groupIdOrPath,
int itemsPerPage)
Get a Pager of variables belonging to the specified group.
|
List<Variable> |
getVariables(Object groupIdOrPath,
int page,
int perPage)
Get a list of variables for the specified group in the specified page range.
|
Stream<Variable> |
getVariablesStream(Object groupIdOrPath)
Get a Stream of variables belonging to the specified group.
|
void |
ldapSync(Object groupIdOrPath)
Syncs the group with its linked LDAP group.
|
void |
removeMember(Object groupIdOrPath,
Integer userId)
Removes member from the group.
|
Project |
transferProject(Object groupIdOrPath,
Object projectIdOrPath)
Transfer a project to the Group namespace.
|
Group |
updateGroup(Group group)
Updates a project group.
|
Group |
updateGroup(Object groupIdOrPath,
String name,
String path,
String description,
Boolean membershipLock,
Boolean shareWithGroupLock,
Visibility visibility,
Boolean lfsEnabled,
Boolean requestAccessEnabled,
Integer parentId,
Integer sharedRunnersMinutesLimit)
Deprecated.
Will be removed in version 5.0, replaced by
updateGroup(Object, String, String, String,
Visibility, Boolean, Boolean, Integer) |
Group |
updateGroup(Object groupIdOrPath,
String name,
String path,
String description,
Visibility visibility,
Boolean lfsEnabled,
Boolean requestAccessEnabled,
Integer parentId)
Updates a project group.
|
Member |
updateMember(Object groupIdOrPath,
Integer userId,
AccessLevel accessLevel)
Updates a member of a group.
|
Member |
updateMember(Object groupIdOrPath,
Integer userId,
AccessLevel accessLevel,
Date expiresAt)
Updates a member of a group.
|
Member |
updateMember(Object groupIdOrPath,
Integer userId,
Integer accessLevel)
Updates a member of a group.
|
Member |
updateMember(Object groupIdOrPath,
Integer userId,
Integer accessLevel,
Date expiresAt)
Updates a member of a group.
|
Variable |
updateVariable(Object groupIdOrPath,
String key,
String value,
Boolean isProtected)
Update a group variable.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getDefaultPerPageParam, getGroupIdOrPath, getPageQueryParams, getPageQueryParams, getPerPageQueryParam, getProjectIdOrPath, getUserIdOrUsername, getWithAccepts, handle, head, isApiVersion, post, post, post, post, post, put, put, putUpload, putUpload, putWithFormData, upload, upload, upload, urlEncode, validate
public GroupApi(GitLabApi gitLabApi)
public List<Group> getGroups() throws GitLabApiException
GitLab Endpoint: GET /groups
GitLabApiException
- if any exception occurspublic List<Group> getGroups(int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /groups
page
- the page to getperPage
- the number of Group instances per pageGitLabApiException
- if any exception occurspublic Pager<Group> getGroups(int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /groups
itemsPerPage
- the number of Group instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<Group> getGroupsStream() throws GitLabApiException
GitLab Endpoint: GET /groups
GitLabApiException
- if any exception occurspublic List<Group> getGroups(String search) throws GitLabApiException
search
- the group name or path search criteriaGitLabApiException
- if any exception occurspublic List<Group> getGroups(String search, int page, int perPage) throws GitLabApiException
search
- the group name or path search criteriapage
- the page to getperPage
- the number of Group instances per pageGitLabApiException
- if any exception occurspublic Pager<Group> getGroups(String search, int itemsPerPage) throws GitLabApiException
search
- the group name or path search criteriaitemsPerPage
- the number of Group instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<Group> getGroupsStream(String search) throws GitLabApiException
search
- the group name or path search criteriaGitLabApiException
- if any exception occurspublic List<Group> getGroups(GroupFilter filter) throws GitLabApiException
GitLab Endpoint: GET /groups
filter
- the GroupFilter to match againstGitLabApiException
- if any exception occurspublic Pager<Group> getGroups(GroupFilter filter, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /groups
filter
- the GroupFilter to match againstitemsPerPage
- the number of Group instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<Group> getGroupsStream(GroupFilter filter) throws GitLabApiException
GitLab Endpoint: GET /groups
filter
- the GroupFilter to match againstGitLabApiException
- if any exception occurspublic List<Group> getSubGroups(Object groupIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/subgroups
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requiredGitLabApiException
- if any exception occurspublic Pager<Group> getSubGroups(Object groupIdOrPath, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/subgroups
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requireditemsPerPage
- the number of Group instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<Group> getSubGroupsStream(Object groupIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/subgroups
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requiredGitLabApiException
- if any exception occurspublic List<Group> getSubGroups(Object groupIdOrPath, List<Integer> skipGroups, Boolean allAvailable, String search, Constants.GroupOrderBy orderBy, Constants.SortOrder sortOrder, Boolean statistics, Boolean owned) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/subgroups
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requiredskipGroups
- skip the group IDs passedallAvailable
- show all the groups you have access to (defaults to false for authenticated users)search
- return the list of authorized groups matching the search criteriaorderBy
- order groups by NAME or PATH. Default is NAMEsortOrder
- order groups in ASC or DESC order. Default is ASCstatistics
- include group statistics (admins only)owned
- limit to groups owned by the current userGitLabApiException
- if any exception occurspublic List<Group> getSubGroups(Object groupIdOrPath, List<Integer> skipGroups, Boolean allAvailable, String search, Constants.GroupOrderBy orderBy, Constants.SortOrder sortOrder, Boolean statistics, Boolean owned, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/subgroups
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requiredskipGroups
- skip the group IDs passedallAvailable
- show all the groups you have access to (defaults to false for authenticated users)search
- return the list of authorized groups matching the search criteriaorderBy
- order groups by NAME or PATH. Default is NAMEsortOrder
- order groups in ASC or DESC order. Default is ASCstatistics
- include group statistics (admins only)owned
- limit to groups owned by the current userpage
- the page to getperPage
- the number of Group instances per pageGitLabApiException
- if any exception occurspublic Pager<Group> getSubGroups(Object groupIdOrPath, List<Integer> skipGroups, Boolean allAvailable, String search, Constants.GroupOrderBy orderBy, Constants.SortOrder sortOrder, Boolean statistics, Boolean owned, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/subgroups
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requiredskipGroups
- skip the group IDs passedallAvailable
- show all the groups you have access to (defaults to false for authenticated users)search
- return the list of authorized groups matching the search criteriaorderBy
- order groups by NAME or PATH. Default is NAMEsortOrder
- order groups in ASC or DESC order. Default is ASCstatistics
- include group statistics (admins only)owned
- limit to groups owned by the current useritemsPerPage
- the number of Group instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<Group> getSubGroupsStream(Object groupIdOrPath, List<Integer> skipGroups, Boolean allAvailable, String search, Constants.GroupOrderBy orderBy, Constants.SortOrder sortOrder, Boolean statistics, Boolean owned) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/subgroups
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requiredskipGroups
- skip the group IDs passedallAvailable
- show all the groups you have access to (defaults to false for authenticated users)search
- return the list of authorized groups matching the search criteriaorderBy
- order groups by NAME or PATH. Default is NAMEsortOrder
- order groups in ASC or DESC order. Default is ASCstatistics
- include group statistics (admins only)owned
- limit to groups owned by the current userGitLabApiException
- if any exception occurspublic List<Project> getProjects(Object groupIdOrPath, GroupProjectsFilter filter) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/projects
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathfilter
- the GroupProjectsFilter instance holding the filter values for the queryGitLabApiException
- if any exception occurspublic Pager<Project> getProjects(Object groupIdOrPath, GroupProjectsFilter filter, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/projects
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathfilter
- the GroupProjectsFilter instance holding the filter values for the queryitemsPerPage
- the number of Project instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<Project> getProjectsStream(Object groupIdOrPath, GroupProjectsFilter filter) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/projects
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathfilter
- the GroupProjectsFilter instance holding the filter values for the queryGitLabApiException
- if any exception occurspublic List<Project> getProjects(Object groupIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/projects
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathGitLabApiException
- if any exception occurspublic List<Project> getProjects(Object groupIdOrPath, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/projects
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathpage
- the page to getperPage
- the number of Project instances per pageGitLabApiException
- if any exception occurspublic Pager<Project> getProjects(Object groupIdOrPath, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/projects
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathitemsPerPage
- the number of Project instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<Project> getProjectsStream(Object groupIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/projects
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathGitLabApiException
- if any exception occurspublic Group getGroup(Object groupIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /groups/:id
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathGitLabApiException
- if any exception occurspublic Optional<Group> getOptionalGroup(Object groupIdOrPath)
GitLab Endpoint: GET /groups/:id
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathpublic Group addGroup(String name, String path) throws GitLabApiException
GitLab Endpoint: POST /groups
name
- the name of the group to addpath
- the path for the groupGitLabApiException
- if any exception occurspublic Group addGroup(Group group) throws GitLabApiException
GitLabApiException
public Group addGroup(String name, String path, String description, Visibility visibility, Boolean lfsEnabled, Boolean requestAccessEnabled, Integer parentId) throws GitLabApiException
GitLab Endpoint: POST /groups
name
- the name of the group to addpath
- the path for the groupdescription
- (optional) - The group's descriptionvisibility
- (optional) - The group's visibility. Can be private, internal, or public.lfsEnabled
- (optional) - Enable/disable Large File Storage (LFS) for the projects in this grouprequestAccessEnabled
- (optional) - Allow users to request member accessparentId
- (optional) - The parent group id for creating nested groupGitLabApiException
- if any exception occurspublic Group updateGroup(Group group) throws GitLabApiException
GitLab Endpoint: PUT /groups
group
- to updateGitLabApiException
- at any exceptionpublic Group updateGroup(Object groupIdOrPath, String name, String path, String description, Visibility visibility, Boolean lfsEnabled, Boolean requestAccessEnabled, Integer parentId) throws GitLabApiException
GitLab Endpoint: PUT /groups
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathname
- the name of the group to addpath
- the path for the groupdescription
- (optional) - The group's descriptionvisibility
- (optional) - The group's visibility. Can be private, internal, or public.lfsEnabled
- (optional) - Enable/disable Large File Storage (LFS) for the projects in this grouprequestAccessEnabled
- (optional) - Allow users to request member accessparentId
- (optional) - The parent group id for creating nested groupGitLabApiException
- if any exception occurspublic Group addGroup(String name, String path, String description, Boolean membershipLock, Boolean shareWithGroupLock, Visibility visibility, Boolean lfsEnabled, Boolean requestAccessEnabled, Integer parentId, Integer sharedRunnersMinutesLimit) throws GitLabApiException
addGroup(String, String, String, Visibility,
Boolean, Boolean, Integer)
GitLab Endpoint: POST /groups
name
- the name of the group to addpath
- the path for the groupdescription
- (optional) - The group's descriptionmembershipLock
- (optional, boolean) - Prevent adding new members to project membership within this groupshareWithGroupLock
- (optional, boolean) - Prevent sharing a project with another group within this groupvisibility
- (optional) - The group's visibility. Can be private, internal, or public.lfsEnabled
- (optional) - Enable/disable Large File Storage (LFS) for the projects in this grouprequestAccessEnabled
- (optional) - Allow users to request member access.parentId
- (optional) - The parent group id for creating nested group.sharedRunnersMinutesLimit
- (optional) - (admin-only) Pipeline minutes quota for this groupGitLabApiException
- if any exception occurspublic Group updateGroup(Object groupIdOrPath, String name, String path, String description, Boolean membershipLock, Boolean shareWithGroupLock, Visibility visibility, Boolean lfsEnabled, Boolean requestAccessEnabled, Integer parentId, Integer sharedRunnersMinutesLimit) throws GitLabApiException
updateGroup(Object, String, String, String,
Visibility, Boolean, Boolean, Integer)
GitLab Endpoint: PUT /groups
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathname
- the name of the group to addpath
- the path for the groupdescription
- (optional) - The group's descriptionmembershipLock
- (optional, boolean) - Prevent adding new members to project membership within this groupshareWithGroupLock
- (optional, boolean) - Prevent sharing a project with another group within this groupvisibility
- (optional) - The group's visibility. Can be private, internal, or public.lfsEnabled
- (optional) - Enable/disable Large File Storage (LFS) for the projects in this grouprequestAccessEnabled
- (optional) - Allow users to request member accessparentId
- (optional) - The parent group id for creating nested groupsharedRunnersMinutesLimit
- (optional) - (admin-only) Pipeline minutes quota for this groupGitLabApiException
- if any exception occurspublic void deleteGroup(Object groupIdOrPath) throws GitLabApiException
GitLab Endpoint: DELETE /groups/:id
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathGitLabApiException
- if any exception occurspublic List<Member> getMembers(Object groupIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/members
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathGitLabApiException
- if any exception occurspublic List<Member> getMembers(Object groupIdOrPath, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/members
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathpage
- the page to getperPage
- the number of Member instances per pageGitLabApiException
- if any exception occurspublic Pager<Member> getMembers(Object groupIdOrPath, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/members
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathitemsPerPage
- the number of Member instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<Member> getMembersStream(Object groupIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/members
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathGitLabApiException
- if any exception occurspublic Member getMember(Object groupIdOrPath, int userId) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/members/:id
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathuserId
- the member ID of the member to getGitLabApiException
- if any exception occurspublic Optional<Member> getOptionalMember(Object groupIdOrPath, int userId)
GitLab Endpoint: GET /groups/:id/members/:id
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathuserId
- the member ID of the member to getpublic Member addMember(Object groupIdOrPath, Integer userId, Integer accessLevel) throws GitLabApiException
GitLab Endpoint: POST /groups/:id/members
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathuserId
- the user ID of the member to add, requiredaccessLevel
- the access level for the new member, requiredGitLabApiException
- if any exception occurspublic Member addMember(Object groupIdOrPath, Integer userId, AccessLevel accessLevel) throws GitLabApiException
GitLab Endpoint: POST /groups/:id/members
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathuserId
- the user ID of the member to add, requiredaccessLevel
- the access level for the new member, requiredGitLabApiException
- if any exception occurspublic Member addMember(Object groupIdOrPath, Integer userId, AccessLevel accessLevel, Date expiresAt) throws GitLabApiException
GitLab Endpoint: POST /groups/:id/members
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requireduserId
- the user ID of the member to add, requiredaccessLevel
- the access level for the new member, requiredexpiresAt
- the date the membership in the group will expire, optionalGitLabApiException
- if any exception occurspublic Member addMember(Object groupIdOrPath, Integer userId, Integer accessLevel, Date expiresAt) throws GitLabApiException
GitLab Endpoint: POST /groups/:id/members
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requireduserId
- the user ID of the member to add, requiredaccessLevel
- the access level for the new member, requiredexpiresAt
- the date the membership in the group will expire, optionalGitLabApiException
- if any exception occurspublic Member updateMember(Object groupIdOrPath, Integer userId, Integer accessLevel) throws GitLabApiException
GitLab Endpoint: PUT /groups/:groupId/members/:userId
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requireduserId
- the user ID of the member to update, requiredaccessLevel
- the new access level for the member, requiredGitLabApiException
- if any exception occurspublic Member updateMember(Object groupIdOrPath, Integer userId, AccessLevel accessLevel) throws GitLabApiException
GitLab Endpoint: PUT /groups/:groupId/members/:userId
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requireduserId
- the user ID of the member to update, requiredaccessLevel
- the new access level for the member, requiredGitLabApiException
- if any exception occurspublic Member updateMember(Object groupIdOrPath, Integer userId, AccessLevel accessLevel, Date expiresAt) throws GitLabApiException
GitLab Endpoint: PUT /groups/:groupId/members/:userId
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requireduserId
- the user ID of the member to update, requiredaccessLevel
- the new access level for the member, requiredexpiresAt
- the date the membership in the group will expire, optionalGitLabApiException
- if any exception occurspublic Member updateMember(Object groupIdOrPath, Integer userId, Integer accessLevel, Date expiresAt) throws GitLabApiException
GitLab Endpoint: PUT /groups/:groupId/members/:userId
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requireduserId
- the user ID of the member to update, requiredaccessLevel
- the new access level for the member, requiredexpiresAt
- the date the membership in the group will expire, optionalGitLabApiException
- if any exception occurspublic void removeMember(Object groupIdOrPath, Integer userId) throws GitLabApiException
GitLab Endpoint: DELETE /groups/:id/members/:user_id
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requireduserId
- the user ID of the member to removeGitLabApiException
- if any exception occurspublic void ldapSync(Object groupIdOrPath) throws GitLabApiException
GitLab Endpoint: POST /groups/:id/ldap_sync
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathGitLabApiException
- if any exception occurspublic void addLdapGroupLink(Object groupIdOrPath, String cn, AccessLevel groupAccess, String provider) throws GitLabApiException
GitLab Endpoint: POST /groups/:id/ldap_group_links
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathcn
- the CN of a LDAP groupgroupAccess
- the minimum access level for members of the LDAP groupprovider
- the LDAP provider for the LDAP groupGitLabApiException
- if any exception occurspublic void addLdapGroupLink(Object groupIdOrPath, String cn, Integer groupAccess, String provider) throws GitLabApiException
GitLab Endpoint: POST /groups/:id/ldap_group_links
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathcn
- the CN of a LDAP groupgroupAccess
- the minimum access level for members of the LDAP groupprovider
- the LDAP provider for the LDAP groupGitLabApiException
- if any exception occurspublic void deleteLdapGroupLink(Object groupIdOrPath, String cn) throws GitLabApiException
GitLab Endpoint: DELETE /groups/:id/ldap_group_links/:cn
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathcn
- the CN of the LDAP group link to deleteGitLabApiException
- if any exception occurspublic void deleteLdapGroupLink(Object groupIdOrPath, String cn, String provider) throws GitLabApiException
GitLab Endpoint: DELETE /groups/:id/ldap_group_links/:provider/:cn
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathcn
- the CN of the LDAP group link to deleteprovider
- the name of the LDAP providerGitLabApiException
- if any exception occurspublic List<Variable> getVariables(Object groupIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/variables
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathGitLabApiException
- if any exception occurspublic List<Variable> getVariables(Object groupIdOrPath, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/variables
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathpage
- the page to getperPage
- the number of Variable instances per pageGitLabApiException
- if any exception occurspublic Pager<Variable> getVariables(Object groupIdOrPath, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/variables
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathitemsPerPage
- the number of Variable instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<Variable> getVariablesStream(Object groupIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/variables
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathGitLabApiException
- if any exception occurspublic Variable getVariable(Object groupIdOrPath, String key) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/variables/:key
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathkey
- the key of an existing variable, requiredGitLabApiException
- if any exception occurspublic Optional<Variable> getOptionalVariable(Object groupIdOrPath, String key)
GitLab Endpoint: GET /groups/:id/variables/:key
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathkey
- the key of an existing variable, requiredpublic Variable createVariable(Object groupIdOrPath, String key, String value, Boolean isProtected) throws GitLabApiException
GitLab Endpoint: POST /groups/:id/variables
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requiredkey
- the key of a variable; must have no more than 255 characters; only A-Z, a-z, 0-9, and _ are allowed, requiredvalue
- the value for the variable, requiredisProtected
- whether the variable is protected, optionalGitLabApiException
- if any exception occurs during executionpublic Variable updateVariable(Object groupIdOrPath, String key, String value, Boolean isProtected) throws GitLabApiException
GitLab Endpoint: PUT /groups/:id/variables/:key
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requiredkey
- the key of an existing variable, requiredvalue
- the value for the variable, requiredisProtected
- whether the variable is protected, optionalGitLabApiException
- if any exception occurs during executionpublic void deleteVariable(Object groupIdOrPath, String key) throws GitLabApiException
GitLab Endpoint: DELETE /groups/:id/variables/:key
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requiredkey
- the key of an existing variable, requiredGitLabApiException
- if any exception occurspublic Project transferProject(Object groupIdOrPath, Object projectIdOrPath) throws GitLabApiException
GitLab Endpoint: POST /groups/:id/projects/:project_id
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requiredprojectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instance, requiredGitLabApiException
- if any exception occurs during executionCopyright © 2019. All rights reserved.