Commit 8d854753 authored by Tim Olshansky's avatar Tim Olshansky Committed by GitHub

Merge pull request #159 from caguilar187/deprecate

Deprecating the parameter versions of the createProject, updateProject and createUserProject calls
parents 4c95ef10 f0a80b4b
...@@ -699,6 +699,7 @@ public class GitlabAPI { ...@@ -699,6 +699,7 @@ public class GitlabAPI {
* @return the Gitlab Project * @return the Gitlab Project
* @throws IOException on gitlab api call error * @throws IOException on gitlab api call error
*/ */
@Deprecated
public GitlabProject createProject(String name, Integer namespaceId, String description, Boolean issuesEnabled, Boolean wallEnabled, Boolean mergeRequestsEnabled, Boolean wikiEnabled, Boolean snippetsEnabled, Boolean publik, Integer visibilityLevel, String importUrl) throws IOException { public GitlabProject createProject(String name, Integer namespaceId, String description, Boolean issuesEnabled, Boolean wallEnabled, Boolean mergeRequestsEnabled, Boolean wikiEnabled, Boolean snippetsEnabled, Boolean publik, Integer visibilityLevel, String importUrl) throws IOException {
Query query = new Query() Query query = new Query()
.append("name", name) .append("name", name)
...@@ -748,6 +749,7 @@ public class GitlabAPI { ...@@ -748,6 +749,7 @@ public class GitlabAPI {
* @return The GitLab Project * @return The GitLab Project
* @throws IOException on gitlab api call error * @throws IOException on gitlab api call error
*/ */
@Deprecated
public GitlabProject createUserProject(Integer userId, String name, String description, String defaultBranch, Boolean issuesEnabled, Boolean wallEnabled, Boolean mergeRequestsEnabled, Boolean wikiEnabled, Boolean snippetsEnabled, Boolean publik, Integer visibilityLevel, String importUrl) throws IOException { public GitlabProject createUserProject(Integer userId, String name, String description, String defaultBranch, Boolean issuesEnabled, Boolean wallEnabled, Boolean mergeRequestsEnabled, Boolean wikiEnabled, Boolean snippetsEnabled, Boolean publik, Integer visibilityLevel, String importUrl) throws IOException {
Query query = new Query() Query query = new Query()
.append("name", name) .append("name", name)
...@@ -784,6 +786,7 @@ public class GitlabAPI { ...@@ -784,6 +786,7 @@ public class GitlabAPI {
* @return the Gitlab Project * @return the Gitlab Project
* @throws IOException on gitlab api call error * @throws IOException on gitlab api call error
*/ */
@Deprecated
public GitlabProject updateProject( public GitlabProject updateProject(
Integer projectId, Integer projectId,
String name, String name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment