/** * Creates a Group * * @param request An object that represents the parameters for the request. * @param sudoUser The user for whom we're creating the group * @return The GitLab Group * @throws IOException on gitlab api call error */ public GitlabGroup createGroup(CreateGroupRequest request, GitlabUser sudoUser) throws IOException { Query query = request.toQuery(); query.appendIf(PARAM_SUDO, sudoUser != null ? sudoUser.getId() : null); String tailUrl = GitlabGroup.URL + query.toString(); return dispatch().to(tailUrl, GitlabGroup.class); }
/** * Creates a Group * * @param request An object that represents the parameters for the request. * @param sudoUser The user for whom we're creating the group * @return The GitLab Group * @throws IOException on gitlab api call error */ public GitlabGroup createGroup(CreateGroupRequest request, GitlabUser sudoUser) throws IOException { Query query = request.toQuery(); query.appendIf(PARAM_SUDO, sudoUser != null ? sudoUser.getId() : null); String tailUrl = GitlabGroup.URL + query.toString(); return dispatch().to(tailUrl, GitlabGroup.class); }
/** * Creates a Group * * @param request An object that represents the parameters for the request. * @param sudoUser The user for whom we're creating the group * @return The GitLab Group * @throws IOException on gitlab api call error */ public GitlabGroup createGroup(CreateGroupRequest request, GitlabUser sudoUser) throws IOException { Query query = request.toQuery(); query.appendIf(PARAM_SUDO, sudoUser != null ? sudoUser.getId() : null); String tailUrl = GitlabGroup.URL + query.toString(); return dispatch().to(tailUrl, GitlabGroup.class); }