diff --git a/src/main/java/org/gitlab4j/api/AbstractApi.java b/src/main/java/org/gitlab4j/api/AbstractApi.java index b337f50d69f999dff792ebd1c27063e5098398ed..868199c0a72344061692f42e78ef5c07b6e146d0 100644 --- a/src/main/java/org/gitlab4j/api/AbstractApi.java +++ b/src/main/java/org/gitlab4j/api/AbstractApi.java @@ -46,8 +46,8 @@ public abstract class AbstractApi implements Constants { return (urlEncode(((String) obj).trim())); } else if (obj instanceof Project) { - Integer id = ((Project) obj).getId(); - if (id != null && id.intValue() > 0) { + Long id = ((Project) obj).getId(); + if (id != null && id.longValue() > 0) { return (id); } @@ -81,8 +81,8 @@ public abstract class AbstractApi implements Constants { return (urlEncode(((String) obj).trim())); } else if (obj instanceof Group) { - Integer id = ((Group) obj).getId(); - if (id != null && id.intValue() > 0) { + Long id = ((Group) obj).getId(); + if (id != null && id.longValue() > 0) { return (id); } @@ -116,8 +116,8 @@ public abstract class AbstractApi implements Constants { return (urlEncode(((String) obj).trim())); } else if (obj instanceof User) { - Integer id = ((User) obj).getId(); - if (id != null && id.intValue() > 0) { + Long id = ((User) obj).getId(); + if (id != null && id.longValue() > 0) { return (id); } @@ -151,8 +151,8 @@ public abstract class AbstractApi implements Constants { return (urlEncode(((String) obj).trim())); } else if (obj instanceof Label) { - Integer id = ((Label) obj).getId(); - if (id != null && id.intValue() > 0) { + Long id = ((Label) obj).getId(); + if (id != null && id.longValue() > 0) { return (id); } diff --git a/src/main/java/org/gitlab4j/api/ApplicationSettingsApi.java b/src/main/java/org/gitlab4j/api/ApplicationSettingsApi.java index 131ee3d0506c3b54cbf045e0ea52f7e56c6f0dd7..28ff1d7165ef40dbbbb997ef011bac676b8985d0 100644 --- a/src/main/java/org/gitlab4j/api/ApplicationSettingsApi.java +++ b/src/main/java/org/gitlab4j/api/ApplicationSettingsApi.java @@ -37,7 +37,7 @@ public class ApplicationSettingsApi extends AbstractApi { } /** - * Update the application settings of the GitLab instance with the settings in the + * Update the application settings of the GitLab instance with the settings in the * provided ApplicationSettings instance. * *
GitLab Endpoint: PUT /api/v4/application/settings
@@ -117,7 +117,7 @@ public class ApplicationSettingsApi extends AbstractApi {
String fieldName = fieldNames.next();
switch (fieldName) {
case "id":
- appSettings.setId(root.path(fieldName).asInt());
+ appSettings.setId(root.path(fieldName).asLong());
break;
case "created_at":
diff --git a/src/main/java/org/gitlab4j/api/ApplicationsApi.java b/src/main/java/org/gitlab4j/api/ApplicationsApi.java
index b8053cadbff16419667cb42a51363f89dbeb41de..b5c793702d5ab3ce88e5cbe773446b890697af49 100644
--- a/src/main/java/org/gitlab4j/api/ApplicationsApi.java
+++ b/src/main/java/org/gitlab4j/api/ApplicationsApi.java
@@ -126,7 +126,7 @@ public class ApplicationsApi extends AbstractApi {
* @param applicationId the ID of the OUAUTH Application to delete
* @throws GitLabApiException if any exception occurs
*/
- public void deleteApplication(Integer applicationId) throws GitLabApiException {
+ public void deleteApplication(Long applicationId) throws GitLabApiException {
delete(Response.Status.NO_CONTENT, null, "applications", applicationId);
}
}
diff --git a/src/main/java/org/gitlab4j/api/AuditEventApi.java b/src/main/java/org/gitlab4j/api/AuditEventApi.java
index ec79760573ac0ffd0e81974f42ddb763b416d8f1..eebfb6173a1953eaa3fe9d8f1654c1c9fa706588 100644
--- a/src/main/java/org/gitlab4j/api/AuditEventApi.java
+++ b/src/main/java/org/gitlab4j/api/AuditEventApi.java
@@ -32,7 +32,7 @@ public class AuditEventApi extends AbstractApi {
* @return a List of group Audit events
* @throws GitLabApiException if any exception occurs
*/
- public ListGitLab Endpoint: GET /projects/:id/boards
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return a list of project's issue boards
* @throws GitLabApiException if any exception occurs
*/
@@ -42,7 +42,7 @@ public class BoardsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/boards
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param page the page to get
* @param perPage the number of items per page
* @return a list of project's Boards in the specified range
@@ -59,7 +59,7 @@ public class BoardsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/boards
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param itemsPerPage the number of items per page
* @return a Pager of project's issue boards
* @throws GitLabApiException if any exception occurs
@@ -74,7 +74,7 @@ public class BoardsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/boards
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return a Stream of project's issue boards
* @throws GitLabApiException if any exception occurs
*/
@@ -87,13 +87,13 @@ public class BoardsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/boards/:board_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param boardId the ID of the board
* @return a Board instance for the specified board ID
* @throws GitLabApiException if any exception occurs
*/
- public Board getBoard(Object projectIdOrPath, Integer boardId) throws GitLabApiException {
- Response response = get(Response.Status.OK, null,
+ public Board getBoard(Object projectIdOrPath, Long boardId) throws GitLabApiException {
+ Response response = get(Response.Status.OK, null,
"projects", getProjectIdOrPath(projectIdOrPath), "boards", boardId);
return (response.readEntity(Board.class));
}
@@ -101,13 +101,13 @@ public class BoardsApi extends AbstractApi {
/**
* Get an issue board as an Optional instance.
*
- * GitLab Endpoint: GET /projects/:id/boards/:board_id
+ * GitLab Endpoint: GET /projects/:id/boards/:board_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param boardId the ID of the board
* @return the Board instance for the specified board ID as an Optional instance
*/
- public OptionalGitLab Endpoint: POST /projects/:id/boards
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param name the name for the new board
* @return the created Board instance
* @throws GitLabApiException if any exception occurs
@@ -140,7 +140,7 @@ public class BoardsApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/boards/:board_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, required
* @param boardId the ID of the board, required
* @param name the new name of the board, optional (can be null)
* @param assigneeId the assignee the board should be scoped to, optional (can be null)
@@ -150,8 +150,8 @@ public class BoardsApi extends AbstractApi {
* @return the updated Board instance
* @throws GitLabApiException if any exception occurs
*/
- public BoardList updateBoard(Object projectIdOrPath, Integer boardId, String name,
- Integer assigneeId, Integer milestoneId, String labels, Integer weight) throws GitLabApiException {
+ public BoardList updateBoard(Object projectIdOrPath, Long boardId, String name,
+ Long assigneeId, Long milestoneId, String labels, Integer weight) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("name", name)
.withParam("assignee_id", assigneeId)
@@ -170,11 +170,11 @@ public class BoardsApi extends AbstractApi {
*
* GitLab Endpoint: DELETE /projects/:id/boards/:board_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param boardId the ID of the board
* @throws GitLabApiException if any exception occurs
*/
- public void deleteBoard(Object projectIdOrPath, Integer boardId) throws GitLabApiException {
+ public void deleteBoard(Object projectIdOrPath, Long boardId) throws GitLabApiException {
delete(Response.Status.NO_CONTENT, null, "projects", getProjectIdOrPath(projectIdOrPath), "boards", boardId);
}
@@ -183,12 +183,12 @@ public class BoardsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/boards/:board_id/lists
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param boardId the ID of the board
* @return a list of the issue board's lists
* @throws GitLabApiException if any exception occurs
*/
- public ListGitLab Endpoint: GET /projects/:id/boards/:board_id/lists
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param boardId the ID of the board
* @param page the page to get
* @param perPage the number of Boards per page
* @return a list of the issue board's lists in the specified range
* @throws GitLabApiException if any exception occurs
*/
- public ListGitLab Endpoint: GET /projects/:id/boards/:board_id/lists
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param boardId the ID of the board
* @param itemsPerPage the number of Board instances that will be fetched per page
* @return a Pager of the issue board's lists
* @throws GitLabApiException if any exception occurs
*/
- public PagerGitLab Endpoint: GET /projects/:id/boards/:board_id/lists
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param boardId the ID of the board
* @return a Stream of the issue board's lists
* @throws GitLabApiException if any exception occurs
*/
- public StreamGitLab Endpoint: GET /projects/:id/boards/:board_id/lists/:list_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param boardId the ID of the board
* @param listId the ID of the board lists to get
* @return a BoardList instance for the specified board ID and list ID
* @throws GitLabApiException if any exception occurs
*/
- public BoardList getBoardList(Object projectIdOrPath, Integer boardId, Integer listId) throws GitLabApiException {
- Response response = get(Response.Status.OK, null,
+ public BoardList getBoardList(Object projectIdOrPath, Long boardId, Long listId) throws GitLabApiException {
+ Response response = get(Response.Status.OK, null,
"projects", getProjectIdOrPath(projectIdOrPath), "boards", boardId, "lists", listId);
return (response.readEntity(BoardList.class));
}
@@ -261,14 +261,14 @@ public class BoardsApi extends AbstractApi {
/**
* Get a single issue board list as an Optional instance.
*
- * GitLab Endpoint: GET /projects/:id/boards/:board_id/lists/:list_id
+ * GitLab Endpoint: GET /projects/:id/boards/:board_id/lists/:list_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param boardId the ID of the board
* @param listId the ID of the board lists to get
* @return a BoardList instance for the specified board ID and list ID as an Optional instance
*/
- public OptionalGitLab Endpoint: POST /projects/:id/boards/:board_id/lists
+ * GitLab Endpoint: POST /projects/:id/boards/:board_id/lists
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param boardId the ID of the board
* @param labelId the ID of the label
* @return the created BoardList instance
* @throws GitLabApiException if any exception occurs
*/
- public BoardList createBoardList(Object projectIdOrPath, Integer boardId, Integer labelId) throws GitLabApiException {
+ public BoardList createBoardList(Object projectIdOrPath, Long boardId, Long labelId) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("label_id", labelId, true);
Response response = post(Response.Status.CREATED, formData, "projects", getProjectIdOrPath(projectIdOrPath), "boards", boardId, "lists");
@@ -297,16 +297,16 @@ public class BoardsApi extends AbstractApi {
/**
* Updates an existing Issue Board list. This call is used to change list position.
*
- * GitLab Endpoint: PUT /projects/:id/boards/:board_id/lists/:list_id
+ * GitLab Endpoint: PUT /projects/:id/boards/:board_id/lists/:list_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param boardId the ID of the board
* @param listId the ID of the list
* @param position the new position for the list
* @return the updated BoardList instance
* @throws GitLabApiException if any exception occurs
*/
- public BoardList updateBoardList(Object projectIdOrPath, Integer boardId, Integer listId, Integer position) throws GitLabApiException {
+ public BoardList updateBoardList(Object projectIdOrPath, Long boardId, Long listId, Integer position) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("position", position, true);
Response response = putWithFormData(Response.Status.OK, formData,
"projects", getProjectIdOrPath(projectIdOrPath), "boards", boardId, "lists", listId);
@@ -316,14 +316,14 @@ public class BoardsApi extends AbstractApi {
/**
* Soft deletes an existing Issue Board list. Only for admins and project owners.
*
- * GitLab Endpoint: DELETE /projects/:id/boards/:board_id/lists/:list_id
+ * GitLab Endpoint: DELETE /projects/:id/boards/:board_id/lists/:list_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param boardId the ID of the board
* @param listId the ID of the list
* @throws GitLabApiException if any exception occurs
*/
- public void deleteBoardList(Object projectIdOrPath, Integer boardId, Integer listId) throws GitLabApiException {
+ public void deleteBoardList(Object projectIdOrPath, Long boardId, Long listId) throws GitLabApiException {
delete(Response.Status.NO_CONTENT, null, "projects", getProjectIdOrPath(projectIdOrPath), "boards", boardId, "lists", listId);
}
}
diff --git a/src/main/java/org/gitlab4j/api/CommitsApi.java b/src/main/java/org/gitlab4j/api/CommitsApi.java
index eaaaaa05d6fa6d8eee2b11a3965067e746bb3663..c6cffde7d15a358787af7c5c66eb3373c1c20cdc 100644
--- a/src/main/java/org/gitlab4j/api/CommitsApi.java
+++ b/src/main/java/org/gitlab4j/api/CommitsApi.java
@@ -40,7 +40,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return a list containing the commits for the specified project ID
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
*/
@@ -53,7 +53,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param page the page to get
* @param perPage the number of commits per page
* @return a list containing the commits for the specified project ID
@@ -70,7 +70,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param itemsPerPage the number of Commit instances that will be fetched per page
* @return a Pager containing the commits for the specified project ID
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
@@ -84,7 +84,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return a Stream containing the commits for the specified project ID
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
*/
@@ -97,7 +97,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param ref the name of a repository branch or tag or if not given the default branch
* @param since only commits after or on this date will be returned
* @param until only commits before or on this date will be returned
@@ -114,7 +114,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits?path=:file_path
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param ref the name of a repository branch or tag or if not given the default branch
* @param path the path to file of a project
* @return a list containing the commits for the specified project ID and file
@@ -129,7 +129,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param ref the name of a repository branch or tag or if not given the default branch
* @param since only commits after or on this date will be returned
* @param until only commits before or on this date will be returned
@@ -145,7 +145,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param ref the name of a repository branch or tag or if not given the default branch
* @param since only commits after or on this date will be returned
* @param until only commits before or on this date will be returned
@@ -165,7 +165,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param ref the name of a repository branch or tag or if not given the default branch
* @param since only commits after or on this date will be returned
* @param until only commits before or on this date will be returned
@@ -181,7 +181,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param ref the name of a repository branch or tag or if not given the default branch
* @param since only commits after or on this date will be returned
* @param until only commits before or on this date will be returned
@@ -198,7 +198,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param ref the name of a repository branch or tag or if not given the default branch
* @param since only commits after or on this date will be returned
* @param until only commits before or on this date will be returned
@@ -227,7 +227,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param ref the name of a repository branch or tag or if not given the default branch
* @param since only commits after or on this date will be returned
* @param until only commits before or on this date will be returned
@@ -244,7 +244,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param ref the name of a repository branch or tag or if not given the default branch
* @param since only commits after or on this date will be returned
* @param until only commits before or on this date will be returned
@@ -262,7 +262,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param ref the name of a repository branch or tag or if not given the default branch
* @param since only commits after or on this date will be returned
* @param until only commits before or on this date will be returned
@@ -283,7 +283,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param ref the name of a repository branch or tag or if not given the default branch
* @param since only commits after or on this date will be returned
* @param until only commits before or on this date will be returned
@@ -313,7 +313,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param ref the name of a repository branch or tag or if not given the default branch
* @param since only commits after or on this date will be returned
* @param until only commits before or on this date will be returned
@@ -334,7 +334,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha a commit hash or name of a branch or tag
* @return the Commit instance for the specified project ID/sha pair
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
@@ -349,7 +349,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha a commit hash or name of a branch or tag
* @return the Commit for the specified project ID/sha pair as an Optional instance
*/
@@ -366,7 +366,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/refs
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha a commit hash or name of a branch or tag
* @return a List of all references (from branches or tags) a commit is pushed to
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
@@ -381,7 +381,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/refs?type=:refType
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha a commit hash or name of a branch or tag
* @param itemsPerPage the number of Commit instances that will be fetched per page
* @return a Pager of references (from branches or tags) a commit is pushed to
@@ -397,7 +397,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/refs
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha a commit hash or name of a branch or tag
* @return a Stream of all references (from branches or tags) a commit is pushed to
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
@@ -412,7 +412,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/refs?type=:refType
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha a commit hash or name of a branch or tag
* @param refType the scope of commits. Possible values branch, tag, all. Default is all.
* @return a List of all references (from branches or tags) a commit is pushed to
@@ -428,7 +428,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/refs?type=:refType
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha a commit hash or name of a branch or tag
* @param refType the scope of commits. Possible values branch, tag, all. Default is all.
* @param itemsPerPage the number of Commit instances that will be fetched per page
@@ -446,7 +446,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/refs?type=:refType
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha a commit hash or name of a branch or tag
* @param refType the scope of commits. Possible values branch, tag, all. Default is all.
* @return a Stream of all references (from branches or tags) a commit is pushed to
@@ -462,7 +462,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/statuses
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha the commit SHA
* @param filter the commit statuses file, contains ref, stage, name, all
* @return a List containing the commit statuses for the specified project and sha that meet the provided filter
@@ -477,7 +477,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/statuses
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha the commit SHA
* @param filter the commit statuses file, contains ref, stage, name, all
* @param page the page to get
@@ -508,7 +508,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/statuses
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha the commit SHA
* @param filter the commit statuses file, contains ref, stage, name, all
* @param itemsPerPage the number of CommitStatus instances that will be fetched per page
@@ -536,7 +536,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/statuses
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha the commit SHA
* @param filter the commit statuses file, contains ref, stage, name, all
* @return a Stream containing the commit statuses for the specified project and sha that meet the provided filter
@@ -559,7 +559,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/statuses/:sha
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance (required)
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance (required)
* @param sha a commit SHA (required)
* @param state the state of the status. Can be one of the following: PENDING, RUNNING, SUCCESS, FAILED, CANCELED (required)
* @param status the CommitSatus instance hoilding the optional parms: ref, name, target_url, description, and coverage
@@ -583,7 +583,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/statuses/:sha
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance (required)
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance (required)
* @param sha a commit SHA (required)
* @param state the state of the status. Can be one of the following: PENDING, RUNNING, SUCCESS, FAILED, CANCELED (required)
* @param pipelineId The ID of the pipeline to set status. Use in case of several pipeline on same SHA (optional)
@@ -591,7 +591,7 @@ public class CommitsApi extends AbstractApi {
* @return a CommitStatus instance with the updated info
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
*/
- public CommitStatus addCommitStatus(Object projectIdOrPath, String sha, CommitBuildState state, Integer pipelineId, CommitStatus status) throws GitLabApiException {
+ public CommitStatus addCommitStatus(Object projectIdOrPath, String sha, CommitBuildState state, Long pipelineId, CommitStatus status) throws GitLabApiException {
if (projectIdOrPath == null) {
throw new RuntimeException("projectIdOrPath cannot be null");
@@ -623,7 +623,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/diff
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha a commit hash or name of a branch or tag
* @return a List of Diff instances for the specified project ID/sha pair
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
@@ -637,7 +637,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/diff
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha a commit hash or name of a branch or tag
* @param itemsPerPage the number of Diff instances that will be fetched per page
* @return a Pager of Diff instances for the specified project ID/sha pair
@@ -662,7 +662,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/diff
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha a commit hash or name of a branch or tag
* @return a Stream of Diff instances for the specified project ID/sha pair
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
@@ -676,7 +676,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/comments
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha a commit hash or name of a branch or tag
* @return a List of Comment instances for the specified project ID/sha pair
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
@@ -690,7 +690,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/comments
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha a commit hash or name of a branch or tag
* @param itemsPerPage the number of Comment instances that will be fetched per page
* @return a List of Comment instances for the specified project ID/sha pair
@@ -705,7 +705,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/comments
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha a commit hash or name of a branch or tag
* @return a Stream of Comment instances for the specified project ID/sha pair
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
@@ -720,7 +720,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/repository/commits/:sha/comments
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha a commit hash or name of a branch or tag
* @param note the text of the comment, required
* @param path the file path relative to the repository, optional
@@ -744,7 +744,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/repository/commits/:sha/comments
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha a commit hash or name of a branch or tag
* @param note the text of the comment, required
* @return a Comment instance for the posted comment
@@ -759,7 +759,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/repository/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param branch tame of the branch to commit into. To create a new branch, also provide startBranch
* @param commitMessage the commit message
* @param startBranch the name of the branch to start the new commit from
@@ -786,7 +786,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/repository/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param branch tame of the branch to commit into. To create a new branch, also provide startBranch
* @param commitMessage the commit message
* @param startBranch the name of the branch to start the new commit from
@@ -814,7 +814,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/repository/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param payload a CommitPayload instance holding the parameters for the commit
* @return the created Commit instance
* @throws GitLabApiException if any exception occurs during execution
@@ -854,7 +854,7 @@ public class CommitsApi extends AbstractApi {
* GitLab Endpoint: POST /projects/:id/repository/commits/:sha/revert
*
* @since GitLab 11.5
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha the commit SHA to revert
* @param branch the target branch to revert the commit on
* @return a Commit instance holding the reverted commit
@@ -873,7 +873,7 @@ public class CommitsApi extends AbstractApi {
* GitLab Endpoint: POST /projects/:id/repository/commits/:sha/cherry_pick
*
* @since GitLab 8.15
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha the commit SHA to cherry pick
* @param branch the target branch to cherry pick the commit on
* @return a Commit instance holding the cherry picked commit
@@ -891,7 +891,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/merge_requests
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha the commit SHA to get merge requests for
* @return a list containing the MergeRequest instances for the specified project/SHA
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
@@ -905,7 +905,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/merge_requests
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha the commit SHA to get merge requests for
* @param itemsPerPage the number of Commit instances that will be fetched per page
* @return a Pager containing the MergeRequest instances for the specified project/SHA
@@ -921,7 +921,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/merge_requests
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha the commit SHA to get merge requests for
* @return a Stream containing the MergeRequest instances for the specified project/SHA
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
@@ -935,7 +935,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/signature
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha a commit hash or name of a branch or tag
* @return the GpgSignature instance for the specified project ID/sha pair
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
@@ -951,7 +951,7 @@ public class CommitsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:sha/signature
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sha a commit hash or name of a branch or tag
* @return the GpgSignature for the specified project ID/sha pair as an Optional instance
*/
diff --git a/src/main/java/org/gitlab4j/api/ContainerRegistryApi.java b/src/main/java/org/gitlab4j/api/ContainerRegistryApi.java
index 91eb47afb859db0146e52e502e2382b6efb777f5..87fc628928b5d30d5142f9f8d0b53464e27aa476 100644
--- a/src/main/java/org/gitlab4j/api/ContainerRegistryApi.java
+++ b/src/main/java/org/gitlab4j/api/ContainerRegistryApi.java
@@ -49,7 +49,7 @@ public class ContainerRegistryApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/registry/repositories
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return a list of pages in the project's registry repositories
* @throws GitLabApiException if any exception occurs
*/
@@ -62,7 +62,7 @@ public class ContainerRegistryApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/registry/repositories
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param page the page to get
* @param perPage the number of Package instances per page
* @return a list of registry repositories for the specified range
@@ -80,7 +80,7 @@ public class ContainerRegistryApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/registry/repositories
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param itemsPerPage the number of RegistryRepository instances per page
* @return a Pager of registry repositories for the specified range
* @throws GitLabApiException if any exception occurs
@@ -95,7 +95,7 @@ public class ContainerRegistryApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/registry/repositories
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return a Stream of pages in the project's registry repositories
* @throws GitLabApiException if any exception occurs
*/
@@ -110,11 +110,11 @@ public class ContainerRegistryApi extends AbstractApi {
*
* GitLab Endpoint: DELETE /projects/:id/registry/repositories/:repository_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param repositoryId the ID of registry repository
* @throws GitLabApiException if any exception occurs
*/
- public void deleteRepository(Object projectIdOrPath, Integer repositoryId) throws GitLabApiException {
+ public void deleteRepository(Object projectIdOrPath, Long repositoryId) throws GitLabApiException {
if (repositoryId == null) {
throw new RuntimeException("repositoryId cannot be null");
@@ -128,12 +128,12 @@ public class ContainerRegistryApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/registry/repositories/:repository_id/tags
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param repositoryId the ID of registry repository
* @return a list of Repository Tags for the specified repository ID
* @throws GitLabApiException if any exception occurs
*/
- public ListGitLab Endpoint: GET /projects/:id/registry/repositories/:repository_id/tags
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param repositoryId the ID of registry repository
* @param itemsPerPage the number of RegistryRepositoryTag instances per page
* @return a Pager of Repository Tags for the specified repository ID
* @throws GitLabApiException if any exception occurs
*/
- public PagerGitLab Endpoint: GET /projects/:id/registry/repositories/:repository_id/tags
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param repositoryId the ID of registry repository
* @return a list of Repository Tags for the specified repository ID
* @throws GitLabApiException if any exception occurs
*/
- public StreamGitLab Endpoint: GET /projects/:id/registry/repositories/:repository_id/tags/:tag_name
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param repositoryId the ID of registry repository
* @param tagName the name of tag
* @return the Repository Tag for the specified repository ID
* @throws GitLabApiException if any exception occurs
*/
- public RegistryRepositoryTag getRepositoryTag(Object projectIdOrPath, Integer repositoryId, String tagName) throws GitLabApiException {
+ public RegistryRepositoryTag getRepositoryTag(Object projectIdOrPath, Long repositoryId, String tagName) throws GitLabApiException {
Response response = get(Response.Status.OK, null,
"projects", getProjectIdOrPath(projectIdOrPath), "registry", "repositories", repositoryId, "tags", tagName);
return response.readEntity(new GenericTypeGitLab Endpoint: GET /projects/:id/registry/repositories/:repository_id/tags/:tag_name
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param repositoryId the ID of registry repository
* @param tagName the name of tag
* @return the Repository Tag for the specified repository ID as the value of the Optional
*/
- public OptionalGitLab Endpoint: DELETE /projects/:id/registry/repositories/:repository_id/tags/:tag_name
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param repositoryId the ID of registry repository
* @param tagName the name of the tag to delete
* @throws GitLabApiException if any exception occurs
*/
- public void deleteRepositoryTag(Object projectIdOrPath, Integer repositoryId, String tagName) throws GitLabApiException {
+ public void deleteRepositoryTag(Object projectIdOrPath, Long repositoryId, String tagName) throws GitLabApiException {
if (repositoryId == null) {
throw new RuntimeException("repositoryId cannot be null");
@@ -241,7 +241,7 @@ public class ContainerRegistryApi extends AbstractApi {
* These operations are executed asynchronously and it might take time to get executed. You can run this at most
* once an hour for a given container repository.
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param repositoryId the ID of registry repository
* @param nameRegex the regex of the name to delete. To delete all tags specify .*
.
* @param keepN the amount of latest tags of given name to keep.
@@ -249,7 +249,7 @@ public class ContainerRegistryApi extends AbstractApi {
* 1h
, 1d
, 1month
.
* @throws GitLabApiException if any exception occurs
*/
- public void deleteRepositoryTags(Object projectIdOrPath, Integer repositoryId, String nameRegex, Integer keepN, String olderThan) throws GitLabApiException {
+ public void deleteRepositoryTags(Object projectIdOrPath, Long repositoryId, String nameRegex, Integer keepN, String olderThan) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("name_regex", nameRegex, true)
diff --git a/src/main/java/org/gitlab4j/api/DeployKeysApi.java b/src/main/java/org/gitlab4j/api/DeployKeysApi.java
index c310c3c5b7469b559d456933e9a26742ed35a5e8..c8525956dde7cb7a51fd882b49e5358fe743c723 100644
--- a/src/main/java/org/gitlab4j/api/DeployKeysApi.java
+++ b/src/main/java/org/gitlab4j/api/DeployKeysApi.java
@@ -77,7 +77,7 @@ public class DeployKeysApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/deploy_keys
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return a list of DeployKey
* @throws GitLabApiException if any exception occurs
*/
@@ -91,7 +91,7 @@ public class DeployKeysApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/deploy_keys
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param page the page to get
* @param perPage the number of deploy keys per page
* @return the list of DeployKey in the specified range
@@ -108,7 +108,7 @@ public class DeployKeysApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/deploy_keys
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance@param projectId the ID of the project
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance@param projectId the ID of the project
* @param itemsPerPage the number of DeployKey instances that will be fetched per page
* @return a Pager of DeployKey
* @throws GitLabApiException if any exception occurs
@@ -123,7 +123,7 @@ public class DeployKeysApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/deploy_keys
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return a list of DeployKey
* @throws GitLabApiException if any exception occurs
*/
@@ -136,12 +136,12 @@ public class DeployKeysApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/deploy_keys/:key_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param keyId the ID of the deploy key to delete
* @return the DeployKey instance for the specified project ID and key ID
* @throws GitLabApiException if any exception occurs
*/
- public DeployKey getDeployKey(Object projectIdOrPath, Integer keyId) throws GitLabApiException {
+ public DeployKey getDeployKey(Object projectIdOrPath, Long keyId) throws GitLabApiException {
if (keyId == null) {
throw new RuntimeException("keyId cannot be null");
@@ -157,11 +157,11 @@ public class DeployKeysApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/deploy_keys/:key_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param keyId the ID of the deploy key to delete
* @return the DeployKey for the specified project ID and key ID as an Optional instance
*/
- public OptionalGitLab Endpoint: POST /projects/:id/deploy_keys
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param title the new deploy key's title, required
* @param key the new deploy key, required
* @param canPush can deploy key push to the project's repository, optional
@@ -197,14 +197,14 @@ public class DeployKeysApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/deploy_keys/:key_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param deployKeyId the ID of the deploy key to update, required
* @param title the title for the deploy key, optional
* @param canPush can deploy key push to the project's repository, optional
* @return an updated DeployKey instance
* @throws GitLabApiException if any exception occurs
*/
- public DeployKey updateDeployKey(Object projectIdOrPath, Integer deployKeyId, String title, Boolean canPush) throws GitLabApiException {
+ public DeployKey updateDeployKey(Object projectIdOrPath, Long deployKeyId, String title, Boolean canPush) throws GitLabApiException {
if (deployKeyId == null) {
throw new RuntimeException("deployKeyId cannot be null");
@@ -224,11 +224,11 @@ public class DeployKeysApi extends AbstractApi {
*
* GitLab Endpoint: DELETE /projects/:id/deploy_keys/:key_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param keyId the ID of the deploy key to delete
* @throws GitLabApiException if any exception occurs
*/
- public void deleteDeployKey(Object projectIdOrPath, Integer keyId) throws GitLabApiException {
+ public void deleteDeployKey(Object projectIdOrPath, Long keyId) throws GitLabApiException {
if (keyId == null) {
throw new RuntimeException("keyId cannot be null");
@@ -242,12 +242,12 @@ public class DeployKeysApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/deploy_keys/:key_id/enable
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param keyId the ID of the deploy key to enable
* @return an DeployKey instance with info on the enabled deploy key
* @throws GitLabApiException if any exception occurs
*/
- public DeployKey enableDeployKey(Object projectIdOrPath, Integer keyId) throws GitLabApiException {
+ public DeployKey enableDeployKey(Object projectIdOrPath, Long keyId) throws GitLabApiException {
if (keyId == null) {
throw new RuntimeException("keyId cannot be null");
diff --git a/src/main/java/org/gitlab4j/api/DeployTokensApi.java b/src/main/java/org/gitlab4j/api/DeployTokensApi.java
index a5995eb1235d4a3d06376cc3ddcc16e45e593ddb..214089f1a5d33a9bb27252e55d4f7a806f3b2334 100644
--- a/src/main/java/org/gitlab4j/api/DeployTokensApi.java
+++ b/src/main/java/org/gitlab4j/api/DeployTokensApi.java
@@ -26,7 +26,7 @@ public class DeployTokensApi extends AbstractApi {
/**
* Get a list of all deploy tokens across the GitLab instance. This endpoint requires admin access.
- *
+ *
* GitLab Endpoint: GET /deploy_tokens
*
* @return a list of DeployToken
@@ -70,7 +70,7 @@ public class DeployTokensApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/deploy_tokens
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return a list of DeployToken
* @throws GitLabApiException if any exception occurs
*/
@@ -83,7 +83,7 @@ public class DeployTokensApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/deploy_tokens
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance@param projectId the ID of the project
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance@param projectId the ID of the project
* @param itemsPerPage the number of DeployToken instances that will be fetched per page
* @return a Pager of DeployToken
* @throws GitLabApiException if any exception occurs
@@ -98,7 +98,7 @@ public class DeployTokensApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/deploy_tokens
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return a list of DeployToken
* @throws GitLabApiException if any exception occurs
*/
@@ -111,7 +111,7 @@ public class DeployTokensApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/deploy_tokens
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param name the new deploy token’s name, required
* @param expiresAt expiration date for the deploy token. Currently documented as not required but api fails if not provided. Does not expire if no value is provided.
* @param username the username for deploy token. Currently documented as not required but api fails if not provided. Default is gitlab+deploy-token-{n}
@@ -132,14 +132,14 @@ public class DeployTokensApi extends AbstractApi {
/**
* Removes a deploy token from the group.
- *
+ *
* GitLab Endpoint: DELETE /projects/:id/deploy_tokens/:token_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param tokenId the ID of the deploy token to delete
* @throws GitLabApiException if any exception occurs
*/
- public void deleteProjectDeployToken(Object projectIdOrPath, Integer tokenId) throws GitLabApiException {
+ public void deleteProjectDeployToken(Object projectIdOrPath, Long tokenId) throws GitLabApiException {
if (tokenId == null) {
throw new RuntimeException("tokenId cannot be null");
@@ -157,7 +157,7 @@ public class DeployTokensApi extends AbstractApi {
*
* GitLab Endpoint: GET /groups/:id/deploy_tokens
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @return a list of DeployToken
* @throws GitLabApiException if any exception occurs
*/
@@ -170,7 +170,7 @@ public class DeployTokensApi extends AbstractApi {
*
* GitLab Endpoint: GET /groups/:id/deploy_tokens
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance@param groupId the ID of the group
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance@param groupId the ID of the group
* @param itemsPerPage the number of DeployToken instances that will be fetched per page
* @return a Pager of DeployToken
* @throws GitLabApiException if any exception occurs
@@ -185,7 +185,7 @@ public class DeployTokensApi extends AbstractApi {
*
* GitLab Endpoint: GET /groups/:id/deploy_tokens
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @return a list of DeployToken
* @throws GitLabApiException if any exception occurs
*/
@@ -198,7 +198,7 @@ public class DeployTokensApi extends AbstractApi {
*
* GitLab Endpoint: POST /groups/:id/deploy_tokens
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param name the new deploy token’s name, required
* @param expiresAt expiration date for the deploy token. Currently documented as not required but api fails if not provided. Does not expire if no value is provided.
* @param username the username for deploy token. Currently documented as not required but api fails if not provided. Default is gitlab+deploy-token-{n}
@@ -222,11 +222,11 @@ public class DeployTokensApi extends AbstractApi {
*
* GitLab Endpoint: DELETE /groups/:id/deploy_tokens/:token_id
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param tokenId the ID of the deploy token to delete
* @throws GitLabApiException if any exception occurs
*/
- public void deleteGroupDeployToken(Object groupIdOrPath, Integer tokenId) throws GitLabApiException {
+ public void deleteGroupDeployToken(Object groupIdOrPath, Long tokenId) throws GitLabApiException {
if (tokenId == null) {
throw new RuntimeException("tokenId cannot be null");
diff --git a/src/main/java/org/gitlab4j/api/DeploymentsApi.java b/src/main/java/org/gitlab4j/api/DeploymentsApi.java
index 9ea9d5246607b5bb52ed3479d59577716a2f944c..8dc469908db5548be5c5a488b687e96b67b74c43 100644
--- a/src/main/java/org/gitlab4j/api/DeploymentsApi.java
+++ b/src/main/java/org/gitlab4j/api/DeploymentsApi.java
@@ -26,7 +26,7 @@ public class DeploymentsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/deployments
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return a list of Deployments
* @throws GitLabApiException if any exception occurs
*/
@@ -39,7 +39,7 @@ public class DeploymentsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/deployments
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param itemsPerPage the number of Deployments instances that will be fetched per page
* @return a Pager of Deployment
* @throws GitLabApiException if any exception occurs
@@ -53,7 +53,7 @@ public class DeploymentsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/deployments
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param filter {@link DeploymentFilter} a DeploymentFilter instance with the filter settings
* @return a Pager of Deployment
* @throws GitLabApiException if any exception occurs
@@ -67,7 +67,7 @@ public class DeploymentsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/deployments
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param filter {@link DeploymentFilter} a DeploymentFilter instance with the filter settings
* @param itemsPerPage the number of Deployments instances that will be fetched per page
* @return a Pager of Deployment
@@ -84,7 +84,7 @@ public class DeploymentsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/deployments
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return a list of Deployment
* @throws GitLabApiException if any exception occurs
*/
@@ -97,7 +97,7 @@ public class DeploymentsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/deployments
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param filter {@link DeploymentFilter} a DeploymentFilter instance with the filter settings
* @return a list of Deployment
* @throws GitLabApiException if any exception occurs
@@ -111,12 +111,12 @@ public class DeploymentsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/deployments/:deployment_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param deploymentId the ID of a project's deployment
* @return the specified Deployment instance
* @throws GitLabApiException if any exception occurs
*/
- public Deployment getDeployment(Object projectIdOrPath, Integer deploymentId) throws GitLabApiException {
+ public Deployment getDeployment(Object projectIdOrPath, Long deploymentId) throws GitLabApiException {
Response response = get(Response.Status.OK, getDefaultPerPageParam(),
"projects", getProjectIdOrPath(projectIdOrPath), "deployments", deploymentId);
return (response.readEntity(Deployment.class));
@@ -127,11 +127,11 @@ public class DeploymentsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/deployments/:deployment_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param deploymentId the ID of a project's deployment
* @return the specified Deployment as an Optional instance
*/
- public OptionalGitLab Endpoint: POST /projects/:id/deployments
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param environment The name of the environment to create the deployment for, required
* @param sha The SHA of the commit that is deployed, required
* @param ref The name of the branch or tag that is deployed, required
@@ -172,13 +172,13 @@ public class DeploymentsApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/deployments/:key_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param deploymentId The ID of the deployment to update, required
* @param status The new status of the deployment, required
* @return an updated Deployment instance
* @throws GitLabApiException if any exception occurs
*/
- public Deployment updateDeployment(Object projectIdOrPath, Integer deploymentId, DeploymentStatus status) throws GitLabApiException {
+ public Deployment updateDeployment(Object projectIdOrPath, Long deploymentId, DeploymentStatus status) throws GitLabApiException {
if (deploymentId == null) {
throw new RuntimeException("deploymentId cannot be null");
@@ -197,12 +197,12 @@ public class DeploymentsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/deployments/:deployment_id/merge_requests
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param deploymentId The ID of the deployment to update, required
* @return a list containing the MergeRequest instances shipped with a given deployment
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
*/
- public ListGitLab Endpoint: GET /projects/:id/deployments/:deployment_id/merge_requests
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param deploymentId The ID of the deployment to update, required
* @param itemsPerPage the number of Commit instances that will be fetched per page
* @return a Pager containing the MergeRequest instances shipped with a given deployment
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
*/
- public PagerGitLab Endpoint: GET /projects/:id/deployments/:deployment_id/merge_requests
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param deploymentId The ID of the deployment to update, required
* @return a Stream containing the MergeRequest instances shipped with a given deployment
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
*/
- public StreamGitLab Endpoint: GET /projects/:id/issues/:issue_iid/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the internal ID of the issue
* @return a list containing all the discussions for the specified issue
* @throws GitLabApiException if any exception occurs during execution
*/
- public ListGitLab Endpoint: GET /projects/:id/issues/:issue_iid/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the internal ID of the issue
* @param maxItems the maximum number of Discussion instances to get, if < 1 will fetch all Discussion instances for the issue
* @return a list containing the discussions for the specified issue
* @throws GitLabApiException if any exception occurs during execution
*/
- public ListGitLab Endpoint: GET /projects/:id/issues/:issue_iid/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the internal ID of the issue
* @param itemsPerPage the number of Discussion instances that will be fetched per page
* @return a Pager containing the Discussion instances for the specified issue
* @throws GitLabApiException if any exception occurs during execution
*/
- public PagerGitLab Endpoint: GET /projects/:id/issues/:issue_iid/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the internal ID of the issue
* @return a Stream instance containing the Discussion instances for the specified issue
* @throws GitLabApiException if any exception occurs during execution
*/
- public StreamGitLab Endpoint: GET /projects/:id/snippets/:snippet_id/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param snippetId the ID of the snippet
* @return a list containing all the discussions for the specified snippet
* @throws GitLabApiException if any exception occurs during execution
*/
- public ListGitLab Endpoint: GET /projects/:id/snippets/:snippet_id/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param snippetId the ID of the snippet
* @param maxItems the maximum number of Discussion instances to get, if < 1 will fetch all Discussion instances for the snippet
* @return a list containing the discussions for the specified snippet
* @throws GitLabApiException if any exception occurs during execution
*/
- public ListGitLab Endpoint: GET /projects/:id/snippets/:snippet_id/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param snippetId the ID of the snippet
* @param itemsPerPage the number of Discussion instances that will be fetched per page
* @return a Pager containing the Discussion instances for the specified snippet
* @throws GitLabApiException if any exception occurs during execution
*/
- public PagerGitLab Endpoint: GET /projects/:id/snippets/:snippet_id/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param snippetId the ID of the snippet
* @return a Stream instance containing the Discussion instances for the specified snippet
* @throws GitLabApiException if any exception occurs during execution
*/
- public StreamGitLab Endpoint: GET /projects/:id/epics/:epic_id/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param epicId the internal ID of the epic
* @return a list containing all the discussions for the specified epic
* @throws GitLabApiException if any exception occurs during execution
*/
- public ListGitLab Endpoint: GET /projects/:id/epics/:epic_id/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param epicId the internal ID of the epic
* @param maxItems the maximum number of Discussion instances to get, if < 1 will fetch all Discussion instances for the epic
* @return a list containing the discussions for the specified epic
* @throws GitLabApiException if any exception occurs during execution
*/
- public ListGitLab Endpoint: GET /projects/:id/epics/:epic_id/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param epicId the internal ID of the epic
* @param itemsPerPage the number of Discussion instances that will be fetched per page
* @return a Pager containing the Discussion instances for the specified epic
* @throws GitLabApiException if any exception occurs during execution
*/
- public PagerGitLab Endpoint: GET /projects/:id/epics/:epic_id/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param epicId the internal ID of the epic
* @return a Stream instance containing the Discussion instances for the specified epic
* @throws GitLabApiException if any exception occurs during execution
*/
- public StreamGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @return a list containing all the discussions for the specified merge request
* @throws GitLabApiException if any exception occurs during execution
*/
- public ListGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @param maxItems the maximum number of Discussion instances to get, if < 1 will fetch all Discussion instances for the merge request
* @return a list containing the discussions for the specified merge request
* @throws GitLabApiException if any exception occurs during execution
*/
- public ListGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @param itemsPerPage the number of Discussion instances that will be fetched per page
* @return a Pager containing the Discussion instances for the specified merge request
* @throws GitLabApiException if any exception occurs during execution
*/
- public PagerGitLab Endpoint: GET /projects/:id/issues/:issue_iid/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @return a Stream instance containing the Discussion instances for the specified issue
* @throws GitLabApiException if any exception occurs during execution
*/
- public StreamGitLab Endpoint: POST /projects/:id/merge_requests/:merge_request_iid/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid mergeRequestIid the internal ID of the merge request
* @param body the content of a discussion
* @param createdAt date the discussion was created (requires admin or project/group owner rights)
@@ -306,7 +306,7 @@ public class DiscussionsApi extends AbstractApi {
* @return a Discussion instance containing the newly created discussion
* @throws GitLabApiException if any exception occurs during execution
*/
- public Discussion createMergeRequestDiscussion(Object projectIdOrPath, Integer mergeRequestIid,
+ public Discussion createMergeRequestDiscussion(Object projectIdOrPath, Long mergeRequestIid,
String body, Date createdAt, String positionHash, Position position) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
@@ -339,14 +339,14 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid/discussions/:discussion_id
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid mergeRequestIid the internal ID of the merge request
* @param discussionId the ID of a discussion
* @param resolved resolve/unresolve the discussion
* @return the updated DIscussion instance
* @throws GitLabApiException if any exception occurs during execution
*/
- public Discussion resolveMergeRequestDiscussion(Object projectIdOrPath, Integer mergeRequestIid,
+ public Discussion resolveMergeRequestDiscussion(Object projectIdOrPath, Long mergeRequestIid,
String discussionId, Boolean resolved) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("resolved", resolved, true);
Response response = put(Response.Status.OK, formData.asMap(),
@@ -359,14 +359,14 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: DELETE /projects/:id/merge_requests/:merge_request_iid/discussions/:discussion_id/notes/:note_id
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid mergeRequestIid the internal ID of the merge request
* @param discussionId the ID of a discussion
* @param noteId the note ID to delete
* @throws GitLabApiException if any exception occurs during execution
*/
- public void deleteMergeRequestDiscussionNote(Object projectIdOrPath, Integer mergeRequestIid,
- String discussionId, Integer noteId) throws GitLabApiException {
+ public void deleteMergeRequestDiscussionNote(Object projectIdOrPath, Long mergeRequestIid,
+ String discussionId, Long noteId) throws GitLabApiException {
delete(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath),
"merge_requests", mergeRequestIid, "discussions", discussionId, "notes", noteId);
}
@@ -376,7 +376,7 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:commit_sha/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param commitSha the SHA of the commit to get discussions for
* @return a list containing all the discussions for the specified commit
* @throws GitLabApiException if any exception occurs during execution
@@ -391,7 +391,7 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:commit_sha/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param commitSha the SHA of the commit to get discussions for
* @param maxItems the maximum number of Discussion instances to get, if < 1 will fetch all Discussion instances for the commit
* @return a list containing the discussions for the specified commit
@@ -412,7 +412,7 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:commit_sha/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param commitSha the SHA of the commit to get discussions for
* @param itemsPerPage the number of Discussion instances that will be fetched per page
* @return a Pager containing the Discussion instances for the specified commit
@@ -428,7 +428,7 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:commit_sha/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param commitSha the SHA of the commit to get discussions for
* @return a Stream instance containing the Discussion instances for the specified commit
* @throws GitLabApiException if any exception occurs during execution
@@ -443,7 +443,7 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:commit_sha/discussions/:discussion_id
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param commitSha the SHA of the commit to get discussions for
* @param discussionId the ID of the discussion
* @return the Discussion instance specified by discussionId for the specified commit
@@ -460,7 +460,7 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/repository/commits/:commit_sha/discussions/:discussion_id
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param commitSha the SHA of the commit to get discussions for
* @param discussionId the ID of the discussion
* @return an Optional instance with the specified Discussion instance as a value
@@ -479,7 +479,7 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/repository/commits/:commit_sha/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param commitSha the commit SHA to create the discussion for
* @param body the content of a discussion
* @param createdAt date the discussion was created (requires admin or project/group owner rights)
@@ -522,7 +522,7 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/repository/commits/:commit_sha/discussions/:discussion_id/notes
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param commitSha the commit SHA to create the discussion for
* @param discussionId the ID of a discussion
* @param body the content of a discussion
@@ -548,7 +548,7 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/repository/commits/:commit_sha/discussions/:discussion_id/notes
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param commitSha the commit SHA to delete the discussion from
* @param discussionId the ID of a discussion
* @param noteId the note ID to modify
@@ -557,7 +557,7 @@ public class DiscussionsApi extends AbstractApi {
* @throws GitLabApiException if any exception occurs during execution
*/
public Note modifyCommitDiscussionNote(Object projectIdOrPath,
- String commitSha, String discussionId, Integer noteId, String body) throws GitLabApiException {
+ String commitSha, String discussionId, Long noteId, String body) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("body", body, true);
Response response = this.putWithFormData(Response.Status.OK, formData,
@@ -571,7 +571,7 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/repository/commits/:commit_sha/discussions/:discussion_id/notes
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param commitSha the commit SHA to delete the discussion from
* @param discussionId the ID of a discussion
* @param noteId the note ID to resolve or unresolve
@@ -580,7 +580,7 @@ public class DiscussionsApi extends AbstractApi {
* @throws GitLabApiException if any exception occurs during execution
*/
public Note resolveCommitDiscussionNote(Object projectIdOrPath,
- String commitSha, String discussionId, Integer noteId, Boolean resolved) throws GitLabApiException {
+ String commitSha, String discussionId, Long noteId, Boolean resolved) throws GitLabApiException {
GitLabApiForm queryParams = new GitLabApiForm().withParam("resolved", resolved);
Response response = this.put(Response.Status.OK, queryParams.asMap(),
@@ -594,14 +594,14 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: DELETE /projects/:id/repository/commits/:commit_sha/discussions/:discussion_id/notes/:note_id
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param commitSha the commit SHA to delete the discussion from
* @param discussionId the ID of a discussion
* @param noteId the note ID to delete
* @throws GitLabApiException if any exception occurs during execution
*/
public void deleteCommitDiscussionNote(Object projectIdOrPath, String commitSha,
- String discussionId, Integer noteId) throws GitLabApiException {
+ String discussionId, Long noteId) throws GitLabApiException {
delete(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath),
"repository", "commits", commitSha, "discussions", discussionId, "notes", noteId);
}
@@ -611,7 +611,7 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/merge_requests/:merge_request_iid/discussions/:discussion_id/notes
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid mergeRequestIid the internal ID of the merge request
* @param discussionId the ID of a discussion
* @param body the content of a discussion
@@ -619,7 +619,7 @@ public class DiscussionsApi extends AbstractApi {
* @return a Note instance containing the newly created discussion note
* @throws GitLabApiException if any exception occurs during execution
*/
- public Note addMergeRequestThreadNote(Object projectIdOrPath, Integer mergeRequestIid,
+ public Note addMergeRequestThreadNote(Object projectIdOrPath, Long mergeRequestIid,
String discussionId, String body, Date createdAt) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
@@ -636,7 +636,7 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid/discussions/:discussion_id/notes/:note_id
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid mergeRequestIid the internal ID of the merge request
* @param discussionId the ID of a discussion
* @param noteId the note ID to modify
@@ -645,8 +645,8 @@ public class DiscussionsApi extends AbstractApi {
* @return a Note instance containing the updated discussion note
* @throws GitLabApiException if any exception occurs during execution
*/
- public Note modifyMergeRequestThreadNote(Object projectIdOrPath, Integer mergeRequestIid,
- String discussionId, Integer noteId, String body, Boolean resolved) throws GitLabApiException {
+ public Note modifyMergeRequestThreadNote(Object projectIdOrPath, Long mergeRequestIid,
+ String discussionId, Long noteId, String body, Boolean resolved) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("body", body).withParam("resolved", resolved);
Response response = this.putWithFormData(Response.Status.OK, formData,
@@ -660,14 +660,14 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: DELETE /projects/:id/merge_requests/:merge_request_iid/discussions/:discussion_id/notes/:note_id
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid mergeRequestIid the internal ID of the merge request
* @param discussionId the ID of a discussion
* @param noteId the note ID to delete
* @throws GitLabApiException if any exception occurs during execution
*/
- public void deleteMergeRequestThreadNote(Object projectIdOrPath, Integer mergeRequestIid,
- String discussionId, Integer noteId) throws GitLabApiException {
+ public void deleteMergeRequestThreadNote(Object projectIdOrPath, Long mergeRequestIid,
+ String discussionId, Long noteId) throws GitLabApiException {
delete(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath),
"merge_requests", mergeRequestIid, "discussions", discussionId, "notes", noteId);
}
@@ -677,14 +677,14 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/issues/:issue_iid/discussions
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid The IID of an issue
* @param body the content of the discussion
* @param createdAt (optional) date the discussion was created (requires admin or project/group owner rights)
* @return a Discussion instance containing the newly created discussion
* @throws GitLabApiException if any exception occurs during execution
*/
- public Discussion createIssueDiscussion(Object projectIdOrPath, Integer issueIid, String body, Date createdAt) throws GitLabApiException {
+ public Discussion createIssueDiscussion(Object projectIdOrPath, Long issueIid, String body, Date createdAt) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("body", body, true)
.withParam("created_at", createdAt);
@@ -698,7 +698,7 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/issues/:issue_iid/discussions/:discussion_id/notes
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid The IID of an issue
* @param discussionId the id of discussion
* @param body the content of the note
@@ -706,7 +706,7 @@ public class DiscussionsApi extends AbstractApi {
* @return a Note instance containing the newly created note
* @throws GitLabApiException if any exception occurs during execution
*/
- public Note addIssueThreadNote(Object projectIdOrPath, Integer issueIid,
+ public Note addIssueThreadNote(Object projectIdOrPath, Long issueIid,
String discussionId, String body, Date createdAt) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("body", body, true)
@@ -721,7 +721,7 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/issues/:issue_iid/discussions/:discussion_id/notes/:note_id
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid The IID of an issue
* @param discussionId the id of discussion
* @param noteId the id of the note
@@ -729,8 +729,8 @@ public class DiscussionsApi extends AbstractApi {
* @return a Note instance containing the modified note
* @throws GitLabApiException if any exception occurs during execution
*/
- public Note modifyIssueThreadNote(Object projectIdOrPath, Integer issueIid,
- String discussionId, Integer noteId, String body) throws GitLabApiException {
+ public Note modifyIssueThreadNote(Object projectIdOrPath, Long issueIid,
+ String discussionId, Long noteId, String body) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("body", body, true);
Response response = putWithFormData(Response.Status.OK, formData,
@@ -743,14 +743,14 @@ public class DiscussionsApi extends AbstractApi {
*
* GitLab Endpoint: DELETE /projects/:id/issues/:issue_iid/discussions/:discussion_id/notes/:note_id
*
- * @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid The IID of an issue
* @param discussionId the id of discussion
* @param noteId the id of the note
* @throws GitLabApiException if any exception occurs during execution
*/
- public void deleteIssueThreadNote(Object projectIdOrPath, Integer issueIid,
- String discussionId, Integer noteId) throws GitLabApiException {
+ public void deleteIssueThreadNote(Object projectIdOrPath, Long issueIid,
+ String discussionId, Long noteId) throws GitLabApiException {
delete(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "issues", issueIid, "discussions", discussionId, "notes", noteId);
}
diff --git a/src/main/java/org/gitlab4j/api/EnvironmentsApi.java b/src/main/java/org/gitlab4j/api/EnvironmentsApi.java
index 607f05cde72c82a4f0c8882584b45659f2b27a8c..6eca51277f1413b31597a15a4097bb65d7a607aa 100644
--- a/src/main/java/org/gitlab4j/api/EnvironmentsApi.java
+++ b/src/main/java/org/gitlab4j/api/EnvironmentsApi.java
@@ -69,7 +69,7 @@ public class EnvironmentsApi extends AbstractApi {
* @return an Environment instance
* @throws GitLabApiException if any exception occurs
*/
- public Environment getEnvironment(Object projectIdOrPath, Integer environmentId) throws GitLabApiException {
+ public Environment getEnvironment(Object projectIdOrPath, Long environmentId) throws GitLabApiException {
Response response = get(Response.Status.OK, null,
"projects", getProjectIdOrPath(projectIdOrPath), "environments", environmentId);
return (response.readEntity(Environment.class));
@@ -84,7 +84,7 @@ public class EnvironmentsApi extends AbstractApi {
* @param environmentId the ID of the environment to get
* @return the Environment as an Optional instance
*/
- public OptionalGitLab Endpoint: GET /groups/:id/epics
*
* @param groupIdOrPath the group ID, path of the group, or a Group instance holding the group ID or path
@@ -99,7 +99,7 @@ public class EpicsApi extends AbstractApi {
* @return a list of matching epics of the requested group and its subgroups
* @throws GitLabApiException if any exception occurs
*/
- public List
* title - the title of the epic (required)
* labels - comma separated list of labels (optional)
* description - the description of the epic (optional)
* startDate - the start date of the epic (optional)
- * endDate - the end date of the epic (optional)
+ * endDate - the end date of the epic (optional)
*
*
* GitLab Endpoint: POST /groups/:id/epics
@@ -284,7 +284,7 @@ public class EpicsApi extends AbstractApi {
* @return an Epic instance containing info on the newly created epic
* @throws GitLabApiException if any exception occurs
*/
- public Epic updateEpic(Object groupIdOrPath, Integer epicIid, String title, String labels, String description,
+ public Epic updateEpic(Object groupIdOrPath, Long epicIid, String title, String labels, String description,
Date startDate, Date endDate) throws GitLabApiException {
Form formData = new GitLabApiForm()
.withParam("title", title, true)
@@ -298,14 +298,14 @@ public class EpicsApi extends AbstractApi {
}
/**
- * Updates an epic using the information contained in the provided Epic instance. Only the following
+ * Updates an epic using the information contained in the provided Epic instance. Only the following
* fields from the Epic instance are used:
*
* title - the title of the epic (optional)
* labels - comma separated list of labels (optional)
* description - the description of the epic (optional)
* startDate - the start date of the epic (optional)
- * endDate - the end date of the epic (optional)
+ * endDate - the end date of the epic (optional)
*
* GitLab Endpoint: PUT /groups/:id/epics/:epic_iid
*
@@ -315,7 +315,7 @@ public class EpicsApi extends AbstractApi {
* @return an Epic instance containing info on the updated epic
* @throws GitLabApiException if any exception occurs
*/
- public Epic updateEpic(Object groupIdOrPath, Integer epicIid, Epic epic) throws GitLabApiException {
+ public Epic updateEpic(Object groupIdOrPath, Long epicIid, Epic epic) throws GitLabApiException {
Form formData = new GitLabApiForm()
.withParam("title", epic.getTitle(), true)
.withParam("labels", epic.getLabels())
@@ -336,7 +336,7 @@ public class EpicsApi extends AbstractApi {
* @param epicIid the IID of the epic to delete
* @throws GitLabApiException if any exception occurs
*/
- public void deleteEpic(Object groupIdOrPath, Integer epicIid) throws GitLabApiException {
+ public void deleteEpic(Object groupIdOrPath, Long epicIid) throws GitLabApiException {
delete(Response.Status.NO_CONTENT, null, "groups", getGroupIdOrPath(groupIdOrPath), "epics", epicIid);
}
@@ -350,7 +350,7 @@ public class EpicsApi extends AbstractApi {
* @return a list of all epic issues belonging to the specified epic
* @throws GitLabApiException if any exception occurs
*/
- public ListGitLab Endpoint: GET /:projectId/events
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param action include only events of a particular action type, optional
* @param targetType include only events of a particular target type, optional
* @param before include only events created before a particular date, optional
@@ -315,7 +315,7 @@ public class EventsApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:projectId/events
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param action include only events of a particular action type, optional
* @param targetType include only events of a particular target type, optional
* @param before include only events created before a particular date, optional
@@ -326,7 +326,7 @@ public class EventsApi extends AbstractApi {
* @return a list of events for the specified project and matching the supplied parameters
* @throws GitLabApiException if any exception occurs
*/
- public ListGitLab Endpoint: GET /projects/:projectId/events
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param action include only events of a particular action type, optional
* @param targetType include only events of a particular target type, optional
* @param before include only events created before a particular date, optional
@@ -358,7 +358,7 @@ public class EventsApi extends AbstractApi {
* @return a Pager of events for the specified project and matching the supplied parameters
* @throws GitLabApiException if any exception occurs
*/
- public PagerGitLab Endpoint: GET /:projectId/events
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param action include only events of a particular action type, optional
* @param targetType include only events of a particular target type, optional
* @param before include only events created before a particular date, optional
diff --git a/src/main/java/org/gitlab4j/api/GitLabApi.java b/src/main/java/org/gitlab4j/api/GitLabApi.java
index d2f9274a24da6dad0a6b9a8262f0bf21701bfd9d..051b736741580debe7e89c13919f143e1bcc890a 100644
--- a/src/main/java/org/gitlab4j/api/GitLabApi.java
+++ b/src/main/java/org/gitlab4j/api/GitLabApi.java
@@ -449,7 +449,7 @@ public class GitLabApi implements AutoCloseable {
*/
public final GitLabApi duplicate() {
- Integer sudoUserId = this.getSudoAsId();
+ Long sudoUserId = this.getSudoAsId();
GitLabApi gitLabApi = new GitLabApi(apiVersion, gitLabServerUrl,
getTokenType(), getAuthToken(), getSecretToken(), clientConfigProperties);
if (sudoUserId != null) {
@@ -661,7 +661,7 @@ public class GitLabApi implements AutoCloseable {
throw new GitLabApiException("the specified username was not found");
}
- Integer sudoAsId = user.getId();
+ Long sudoAsId = user.getId();
apiClient.setSudoAsId(sudoAsId);
}
@@ -679,7 +679,7 @@ public class GitLabApi implements AutoCloseable {
* @param sudoAsId the ID of the user to sudo as, null will turn off sudo
* @throws GitLabApiException if any exception occurs
*/
- public void setSudoAsId(Integer sudoAsId) throws GitLabApiException {
+ public void setSudoAsId(Long sudoAsId) throws GitLabApiException {
if (sudoAsId == null) {
apiClient.setSudoAsId(null);
@@ -700,7 +700,7 @@ public class GitLabApi implements AutoCloseable {
*
* @return the current sudo as ID, will return null if not in sudo mode
*/
- public Integer getSudoAsId() {
+ public Long getSudoAsId() {
return (apiClient.getSudoAsId());
}
diff --git a/src/main/java/org/gitlab4j/api/GitLabApiClient.java b/src/main/java/org/gitlab4j/api/GitLabApiClient.java
index 509dc192a66a1ddc454269738a3bac065b3884e2..3322e8ba1bd5e0be21fb3686d7a87c75ba571673 100755
--- a/src/main/java/org/gitlab4j/api/GitLabApiClient.java
+++ b/src/main/java/org/gitlab4j/api/GitLabApiClient.java
@@ -68,7 +68,7 @@ public class GitLabApiClient implements AutoCloseable {
private boolean ignoreCertificateErrors;
private SSLContext openSslContext;
private HostnameVerifier openHostnameVerifier;
- private Integer sudoAsId;
+ private Long sudoAsId;
private Integer connectTimeout;
private Integer readTimeout;
@@ -322,7 +322,7 @@ public class GitLabApiClient implements AutoCloseable {
* Set the ID of the user to sudo as.
*
*/
- Integer getSudoAsId() {
+ Long getSudoAsId() {
return (sudoAsId);
}
@@ -331,7 +331,7 @@ public class GitLabApiClient implements AutoCloseable {
*
* @param sudoAsId the ID of the user to sudo as
*/
- void setSudoAsId(Integer sudoAsId) {
+ void setSudoAsId(Long sudoAsId) {
this.sudoAsId = sudoAsId;
}
@@ -917,7 +917,8 @@ public class GitLabApiClient implements AutoCloseable {
// Ignore differences between given hostname and certificate hostname
HostnameVerifier hostnameVerifier = new HostnameVerifier() {
- public boolean verify(String hostname, SSLSession session) {
+ @Override
+ public boolean verify(String hostname, SSLSession session) {
return true;
}
};
diff --git a/src/main/java/org/gitlab4j/api/GroupApi.java b/src/main/java/org/gitlab4j/api/GroupApi.java
index b4d9f9590b1d89334545df4ebdc8b495007769b6..ff8ec1a00301402111cb96ee0aa7fa13a56c7ff8 100644
--- a/src/main/java/org/gitlab4j/api/GroupApi.java
+++ b/src/main/java/org/gitlab4j/api/GroupApi.java
@@ -557,7 +557,7 @@ public class GroupApi extends AbstractApi {
* @throws GitLabApiException if any exception occurs
*/
public Group addGroup(String name, String path, String description, Visibility visibility,
- Boolean lfsEnabled, Boolean requestAccessEnabled, Integer parentId) throws GitLabApiException {
+ Boolean lfsEnabled, Boolean requestAccessEnabled, Long parentId) throws GitLabApiException {
Form formData = new GitLabApiForm()
.withParam("name", name, true)
@@ -610,7 +610,7 @@ public class GroupApi extends AbstractApi {
* @throws GitLabApiException if any exception occurs
*/
public Group updateGroup(Object groupIdOrPath, String name, String path, String description, Visibility visibility,
- Boolean lfsEnabled, Boolean requestAccessEnabled, Integer parentId) throws GitLabApiException {
+ Boolean lfsEnabled, Boolean requestAccessEnabled, Long parentId) throws GitLabApiException {
Form formData = new GitLabApiForm()
.withParam("name", name)
@@ -644,9 +644,10 @@ public class GroupApi extends AbstractApi {
* @deprecated Will be removed in version 5.0, replaced by {@link #addGroup(String, String, String, Visibility,
* Boolean, Boolean, Integer)}
*/
- public Group addGroup(String name, String path, String description, Boolean membershipLock,
+ @Deprecated
+ public Group addGroup(String name, String path, String description, Boolean membershipLock,
Boolean shareWithGroupLock, Visibility visibility, Boolean lfsEnabled, Boolean requestAccessEnabled,
- Integer parentId, Integer sharedRunnersMinutesLimit) throws GitLabApiException {
+ Long parentId, Integer sharedRunnersMinutesLimit) throws GitLabApiException {
Form formData = new GitLabApiForm()
.withParam("name", name)
@@ -684,9 +685,10 @@ public class GroupApi extends AbstractApi {
* @deprecated Will be removed in version 5.0, replaced by {@link #updateGroup(Object, String, String, String,
* Visibility, Boolean, Boolean, Integer)}
*/
- public Group updateGroup(Object groupIdOrPath, String name, String path, String description, Boolean membershipLock,
+ @Deprecated
+ public 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 {
+ Long parentId, Integer sharedRunnersMinutesLimit) throws GitLabApiException {
Form formData = new GitLabApiForm()
.withParam("name", name)
@@ -782,8 +784,8 @@ public class GroupApi extends AbstractApi {
* @return a member viewable by the authenticated user
* @throws GitLabApiException if any exception occurs
*/
- public Member getMember(Object groupIdOrPath, int userId) throws GitLabApiException {
- return (getMember(groupIdOrPath, userId, false));
+ public Member getMember(Object groupIdOrPath, long userId) throws GitLabApiException {
+ return (getMember(groupIdOrPath, userId, false));
}
/**
@@ -795,7 +797,7 @@ public class GroupApi extends AbstractApi {
* @param userId the member ID of the member to get
* @return a member viewable by the authenticated user as an Optional instance
*/
- public OptionalGitLab Endpoint: POST /groups/:id/projects/:project_id
*
* @param groupIdOrPath the group ID, path of the group, or a Group instance holding the group ID or path, required
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, required
* @return the transferred Project instance
* @throws GitLabApiException if any exception occurs during execution
*/
@@ -1468,7 +1470,7 @@ public class GroupApi extends AbstractApi {
* @return the group Audit event
* @throws GitLabApiException if any exception occurs
*/
- public AuditEvent getAuditEvent(Object groupIdOrPath, Integer auditEventId) throws GitLabApiException {
+ public AuditEvent getAuditEvent(Object groupIdOrPath, Long auditEventId) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "groups", getGroupIdOrPath(groupIdOrPath), "audit_events", auditEventId);
return (response.readEntity(AuditEvent.class));
}
@@ -1539,7 +1541,7 @@ public class GroupApi extends AbstractApi {
* @return the approved AccessRequest instance
* @throws GitLabApiException if any exception occurs
*/
- public AccessRequest approveAccessRequest(Object groupIdOrPath, Integer userId, AccessLevel accessLevel) throws GitLabApiException {
+ public AccessRequest approveAccessRequest(Object groupIdOrPath, Long userId, AccessLevel accessLevel) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("access_level", accessLevel);
Response response = this.putWithFormData(Response.Status.CREATED, formData,
"groups", getGroupIdOrPath(groupIdOrPath), "access_requests", userId, "approve");
@@ -1555,7 +1557,7 @@ public class GroupApi extends AbstractApi {
* @param userId the user ID to deny access for
* @throws GitLabApiException if any exception occurs
*/
- public void denyAccessRequest(Object groupIdOrPath, Integer userId) throws GitLabApiException {
+ public void denyAccessRequest(Object groupIdOrPath, Long userId) throws GitLabApiException {
delete(Response.Status.NO_CONTENT, null,
"groups", getGroupIdOrPath(groupIdOrPath), "access_requests", userId);
}
@@ -1584,7 +1586,7 @@ public class GroupApi extends AbstractApi {
* @return a Badge instance for the specified group/badge ID pair
* @throws GitLabApiException if any exception occurs
*/
- public Badge getBadge(Object groupIdOrPath, Integer badgeId) throws GitLabApiException {
+ public Badge getBadge(Object groupIdOrPath, Long badgeId) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "groups", getGroupIdOrPath(groupIdOrPath), "badges", badgeId);
return (response.readEntity(Badge.class));
}
@@ -1598,7 +1600,7 @@ public class GroupApi extends AbstractApi {
* @param badgeId the ID of the badge to get
* @return an Optional instance with the specified badge as the value
*/
- public OptionalGitLab Endpoint: GET /groups/:id/custom_attributes
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @return a list of group's CustomAttributes
* @throws GitLabApiException if any exception occurs
*/
@@ -1746,7 +1748,7 @@ public class GroupApi extends AbstractApi {
*
* GitLab Endpoint: GET /groups/:id/custom_attributes
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param itemsPerPage the number of items per page
* @return a Pager of group's custom attributes
* @throws GitLabApiException if any exception occurs
@@ -1761,7 +1763,7 @@ public class GroupApi extends AbstractApi {
*
* GitLab Endpoint: GET /groups/:id/custom_attributes
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @return a Stream of group's custom attributes
* @throws GitLabApiException if any exception occurs
*/
@@ -1774,7 +1776,7 @@ public class GroupApi extends AbstractApi {
*
* GitLab Endpoint: GET /groups/:id/custom_attributes/:key
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param key the key for the custom attribute
* @return a CustomAttribute instance for the specified key
* @throws GitLabApiException if any exception occurs
@@ -1790,7 +1792,7 @@ public class GroupApi extends AbstractApi {
*
* GitLab Endpoint: GET /groups/:id/custom_attributes/:key
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance, required
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance, required
* @param key the key for the custom attribute, required
* @return an Optional instance with the value for a single custom attribute for the specified group
*/
@@ -1808,7 +1810,7 @@ public class GroupApi extends AbstractApi {
*
* GitLab Endpoint: PUT /groups/:id/custom_attributes/:key
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param key the key for the custom attribute
* @param value the value for the customAttribute
* @return a CustomAttribute instance for the updated or created custom attribute
@@ -1834,7 +1836,7 @@ public class GroupApi extends AbstractApi {
*
* GitLab Endpoint: DELETE /groups/:id/custom_attributes/:key
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param key the key of the custom attribute to delete
* @throws GitLabApiException if any exception occurs
*/
diff --git a/src/main/java/org/gitlab4j/api/ImportExportApi.java b/src/main/java/org/gitlab4j/api/ImportExportApi.java
index 33a233dde3892b84890b8db92ba5c01fd1f71915..509eae1ddef3f4852609f5e423b7494e2b8684e1 100644
--- a/src/main/java/org/gitlab4j/api/ImportExportApi.java
+++ b/src/main/java/org/gitlab4j/api/ImportExportApi.java
@@ -32,7 +32,7 @@ public class ImportExportApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/export
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @throws GitLabApiException if any exception occurs
*/
public void scheduleExport(Object projectIdOrPath) throws GitLabApiException {
@@ -44,7 +44,7 @@ public class ImportExportApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/export
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param description overrides the project description, optional
* @throws GitLabApiException if any exception occurs
*/
@@ -57,7 +57,7 @@ public class ImportExportApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/export
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param description overrides the project description, optional
* @param upload Mao that contains the information to upload the exported project to a web server
* @param uploadUrl the URL to upload the project
@@ -81,7 +81,7 @@ public class ImportExportApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/export
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return an ExportStatus instance holding information on the export status
* @throws GitLabApiException if any exception occurs
*/
@@ -95,7 +95,7 @@ public class ImportExportApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/export/download
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param directory the File instance of the directory to save the export file to, if null will use "java.io.tmpdir"
* @return a File instance pointing to the download of the project export file
* @throws GitLabApiException if any exception occurs
@@ -109,7 +109,7 @@ public class ImportExportApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/export/download
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param directory the File instance of the directory to save the export file to, if null will use "java.io.tmpdir"
* @param filename Name to give to the downloaded file. If null then we try to get from Content-Disposition header
* or to compute one from parameters
@@ -251,7 +251,7 @@ public class ImportExportApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/import
*
- * @param projectIdOrPath the new (imported) project identifier in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the new (imported) project identifier in the form of an Long(ID), String(path), or Project instance
* @return an ImportStatus instance holding information on the import status
* @throws GitLabApiException if any exception occurs
*/
diff --git a/src/main/java/org/gitlab4j/api/IssuesApi.java b/src/main/java/org/gitlab4j/api/IssuesApi.java
index cb85f887557170aa1d86cd2314e19901c3a9653a..02c01fa84b90a4cb93dc5acbe2811bb2155640b1 100644
--- a/src/main/java/org/gitlab4j/api/IssuesApi.java
+++ b/src/main/java/org/gitlab4j/api/IssuesApi.java
@@ -90,7 +90,7 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: GET /projects/:id/issues
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return a list of project's issues
* @throws GitLabApiException if any exception occurs
*/
@@ -103,7 +103,7 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: GET /projects/:id/issues
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param page the page to get
* @param perPage the number of issues per page
* @return the list of issues in the specified range
@@ -119,7 +119,7 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: GET /projects/:id/issues
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param itemsPerPage the number of issues per page
* @return the Pager of issues in the specified range
* @throws GitLabApiException if any exception occurs
@@ -133,7 +133,7 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: GET /projects/:id/issues
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return a Stream of project's issues
* @throws GitLabApiException if any exception occurs
*/
@@ -146,7 +146,7 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: GET /projects/:id/issues
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param filter {@link IssueFilter} a IssueFilter instance with the filter settings
* @return the list of issues in the specified range.
* @throws GitLabApiException if any exception occurs
@@ -160,7 +160,7 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: GET /projects/:id/issues
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param filter {@link IssueFilter} a IssueFilter instance with the filter settings.
* @param page the page to get.
* @param perPage the number of projects per page.
@@ -178,7 +178,7 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: GET /projects/:id/issues
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param filter {@link IssueFilter} a IssueFilter instance with the filter settings.
* @param itemsPerPage the number of Project instances that will be fetched per page.
* @return the Pager of issues in the specified range.
@@ -194,7 +194,7 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: GET /projects/:id/issues
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param filter {@link IssueFilter} a IssueFilter instance with the filter settings
* @return a Stream of issues in the specified range.
* @throws GitLabApiException if any exception occurs
@@ -270,7 +270,7 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: GET /groups/:id/issues
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @return a List of issues for the specified group
* @throws GitLabApiException if any exception occurs
*/
@@ -283,7 +283,7 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: GET /groups/:id/issues
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param itemsPerPage the number of Issue instances that will be fetched per page.
* @return the Pager of issues for the specified group
* @throws GitLabApiException if any exception occurs
@@ -297,7 +297,7 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: GET /groups/:id/issues
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @return a Stream of issues for the specified group and filter
* @throws GitLabApiException if any exception occurs
*/
@@ -310,7 +310,7 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: GET /groups/:id/issues
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param filter {@link IssueFilter} a IssueFilter instance with the filter settings.
* @return a List of issues for the specified group and filter
* @throws GitLabApiException if any exception occurs
@@ -324,7 +324,7 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: GET /groups/:id/issues
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param filter {@link IssueFilter} a IssueFilter instance with the filter settings.
* @param itemsPerPage the number of Issue instances that will be fetched per page.
* @return the Pager of issues for the specified group and filter
@@ -341,7 +341,7 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: GET /groups/:id/issues
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param filter {@link IssueFilter} a IssueFilter instance with the filter settings.
* @return a Stream of issues for the specified group and filter
* @throws GitLabApiException if any exception occurs
@@ -355,12 +355,12 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: GET /projects/:id/issues/:issue_iid
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the internal ID of a project's issue
* @return the specified Issue instance
* @throws GitLabApiException if any exception occurs
*/
- public Issue getIssue(Object projectIdOrPath, Integer issueIid) throws GitLabApiException {
+ public Issue getIssue(Object projectIdOrPath, Long issueIid) throws GitLabApiException {
Response response = get(Response.Status.OK, getDefaultPerPageParam(),
"projects", getProjectIdOrPath(projectIdOrPath), "issues", issueIid);
return (response.readEntity(Issue.class));
@@ -371,11 +371,11 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: GET /projects/:id/issues/:issue_iid
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the internal ID of a project's issue
* @return the specified Issue as an Optional instance
*/
- public OptionalGitLab Endpoint: POST /projects/:id/issues
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param title the title of an issue, required
* @param description the description of an issue, optional
* @return an instance of Issue
@@ -403,7 +403,7 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: POST /projects/:id/issues
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param title the issue title of an issue, required
* @param description the description of an issue, optional
* @param confidential set the issue to be confidential, default is false, optional
@@ -419,8 +419,8 @@ public class IssuesApi extends AbstractApi implements Constants {
* @return an instance of Issue
* @throws GitLabApiException if any exception occurs
*/
- public Issue createIssue(Object projectIdOrPath, String title, String description, Boolean confidential, ListGitLab Endpoint: PUT /projects/:id/issues/:issue_iid
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, required
* @param issueIid the issue IID to update, required
* @return an instance of the updated Issue
* @throws GitLabApiException if any exception occurs
*/
- public Issue closeIssue(Object projectIdOrPath, Integer issueIid) throws GitLabApiException {
+ public Issue closeIssue(Object projectIdOrPath, Long issueIid) throws GitLabApiException {
if (issueIid == null) {
throw new RuntimeException("issue IID cannot be null");
@@ -463,7 +463,7 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: PUT /projects/:id/issues/:issue_iid
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, required
* @param issueIid the issue IID to update, required
* @param title the title of an issue, optional
* @param description the description of an issue, optional
@@ -477,8 +477,8 @@ public class IssuesApi extends AbstractApi implements Constants {
* @return an instance of the updated Issue
* @throws GitLabApiException if any exception occurs
*/
- public Issue updateIssue(Object projectIdOrPath, Integer issueIid, String title, String description, Boolean confidential, ListGitLab Endpoint: PUT /projects/:id/issues/:issue_iid
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, required
* @param issueIid the issue IID to update, required
* @param assigneeId the ID of the user to assign issue to, required
* @return an instance of the updated Issue
* @throws GitLabApiException if any exception occurs
*/
- public Issue assignIssue(Object projectIdOrPath, Integer issueIid, Integer assigneeId) throws GitLabApiException {
+ public Issue assignIssue(Object projectIdOrPath, Long issueIid, Long assigneeId) throws GitLabApiException {
if (issueIid == null) {
throw new RuntimeException("issue IID cannot be null");
@@ -525,11 +525,11 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: DELETE /projects/:id/issues/:issue_iid
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, required
* @param issueIid the internal ID of a project's issue
* @throws GitLabApiException if any exception occurs
*/
- public void deleteIssue(Object projectIdOrPath, Integer issueIid) throws GitLabApiException {
+ public void deleteIssue(Object projectIdOrPath, Long issueIid) throws GitLabApiException {
if (issueIid == null) {
throw new RuntimeException("issue IID cannot be null");
@@ -544,13 +544,13 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: POST /projects/:id/issues/:issue_iid/time_estimate
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, required
* @param issueIid the internal ID of a project's issue
* @param duration estimated time in seconds
* @return a TimeSTats instance
* @throws GitLabApiException if any exception occurs
*/
- public TimeStats estimateTime(Object projectIdOrPath, Integer issueIid, int duration) throws GitLabApiException {
+ public TimeStats estimateTime(Object projectIdOrPath, Long issueIid, int duration) throws GitLabApiException {
return (estimateTime(projectIdOrPath, issueIid, new Duration(duration)));
}
@@ -559,13 +559,13 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: POST /projects/:id/issues/:issue_iid/time_estimate
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, required
* @param issueIid the internal ID of a project's issue
* @param duration Human readable format, e.g. 3h30m
* @return a TimeSTats instance
* @throws GitLabApiException if any exception occurs
*/
- public TimeStats estimateTime(Object projectIdOrPath, Integer issueIid, String duration) throws GitLabApiException {
+ public TimeStats estimateTime(Object projectIdOrPath, Long issueIid, String duration) throws GitLabApiException {
return (estimateTime(projectIdOrPath, issueIid, new Duration(duration)));
}
@@ -574,13 +574,13 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: POST /projects/:id/issues/:issue_iid/time_estimate
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the internal ID of a project's issue
* @param duration set the estimate of time to this duration
* @return a TimeSTats instance
* @throws GitLabApiException if any exception occurs
*/
- public TimeStats estimateTime(Object projectIdOrPath, Integer issueIid, Duration duration) throws GitLabApiException {
+ public TimeStats estimateTime(Object projectIdOrPath, Long issueIid, Duration duration) throws GitLabApiException {
if (issueIid == null) {
throw new RuntimeException("issue IID cannot be null");
@@ -599,12 +599,12 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: POST /projects/:id/issues/:issue_iid/reset_time_estimate
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the internal ID of a project's issue
* @return a TimeSTats instance
* @throws GitLabApiException if any exception occurs
*/
- public TimeStats resetEstimatedTime(Object projectIdOrPath, Integer issueIid) throws GitLabApiException {
+ public TimeStats resetEstimatedTime(Object projectIdOrPath, Long issueIid) throws GitLabApiException {
if (issueIid == null) {
throw new RuntimeException("issue IID cannot be null");
@@ -620,13 +620,13 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: POST /projects/:id/issues/:issue_iid/add_spent_time
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the internal ID of a project's issue
* @param duration the duration in seconds
* @return a TimeSTats instance
* @throws GitLabApiException if any exception occurs
*/
- public TimeStats addSpentTime(Object projectIdOrPath, Integer issueIid, int duration) throws GitLabApiException {
+ public TimeStats addSpentTime(Object projectIdOrPath, Long issueIid, int duration) throws GitLabApiException {
return (addSpentTime(projectIdOrPath, issueIid, new Duration(duration)));
}
@@ -635,13 +635,13 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: POST /projects/:id/issues/:issue_iid/add_spent_time
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the internal ID of a project's issue
* @param duration Human readable format, e.g. 3h30m
* @return a TimeSTats instance
* @throws GitLabApiException if any exception occurs
*/
- public TimeStats addSpentTime(Object projectIdOrPath, Integer issueIid, String duration) throws GitLabApiException {
+ public TimeStats addSpentTime(Object projectIdOrPath, Long issueIid, String duration) throws GitLabApiException {
return (addSpentTime(projectIdOrPath, issueIid, new Duration(duration)));
}
@@ -650,13 +650,13 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: POST /projects/:id/issues/:issue_iid/add_spent_time
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the internal ID of a project's issue
* @param duration the duration of time spent
* @return a TimeSTats instance
* @throws GitLabApiException if any exception occurs
*/
- public TimeStats addSpentTime(Object projectIdOrPath, Integer issueIid, Duration duration) throws GitLabApiException {
+ public TimeStats addSpentTime(Object projectIdOrPath, Long issueIid, Duration duration) throws GitLabApiException {
if (issueIid == null) {
throw new RuntimeException("issue IID cannot be null");
@@ -675,12 +675,12 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: POST /projects/:id/issues/:issue_iid/reset_spent_time
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the internal ID of a project's issue
* @return a TimeSTats instance
* @throws GitLabApiException if any exception occurs
*/
- public TimeStats resetSpentTime(Object projectIdOrPath, Integer issueIid) throws GitLabApiException {
+ public TimeStats resetSpentTime(Object projectIdOrPath, Long issueIid) throws GitLabApiException {
if (issueIid == null) {
throw new RuntimeException("issue IID cannot be null");
@@ -696,12 +696,12 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: GET /projects/:id/issues/:issue_iid/time_stats
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the internal ID of a project's issue
* @return a TimeStats instance
* @throws GitLabApiException if any exception occurs
*/
- public TimeStats getTimeTrackingStats(Object projectIdOrPath, Integer issueIid) throws GitLabApiException {
+ public TimeStats getTimeTrackingStats(Object projectIdOrPath, Long issueIid) throws GitLabApiException {
if (issueIid == null) {
throw new RuntimeException("issue IID cannot be null");
@@ -717,11 +717,11 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: GET /projects/:id/issues/:issue_iid/time_stats
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the internal ID of a project's issue
* @return a TimeStats as an Optional instance
*/
- public OptionalGitLab Endpoint: GET /projects/:id/issues/:issue_iid/links
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the internal ID of a project's issue
* @return a list of related issues of a given issue, sorted by the relationship creation datetime (ascending)
* @throws GitLabApiException if any exception occurs
*/
- public ListGitLab Endpoint: GET /projects/:id/issues/:issue_iid/links
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the internal ID of a project's issue
* @param itemsPerPage the number of issues per page
* @return a Pager of related issues of a given issue, sorted by the relationship creation datetime (ascending)
* @throws GitLabApiException if any exception occurs
*/
- public PagerGitLab Endpoint: GET /projects/:id/issues/:issue_iid/links
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the internal ID of a project's issue
* @return a Stream of related issues of a given issue, sorted by the relationship creation datetime (ascending)
* @throws GitLabApiException if any exception occurs
*/
- public StreamGitLab Endpoint: POST /projects/:id/issues/:issue_iid/links
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the internal ID of a project's issue
- * @param targetProjectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance of the target project
+ * @param targetProjectIdOrPath the project in the form of an Long(ID), String(path), or Project instance of the target project
* @param targetIssueIid the internal ID of a target project’s issue
* @return an instance of IssueLink holding the link relationship
* @throws GitLabApiException if any exception occurs
*/
- public IssueLink createIssueLink(Object projectIdOrPath, Integer issueIid,
- Object targetProjectIdOrPath, Integer targetIssueIid) throws GitLabApiException {
+ public IssueLink createIssueLink(Object projectIdOrPath, Long issueIid,
+ Object targetProjectIdOrPath, Long targetIssueIid) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("target_project_id", getProjectIdOrPath(targetProjectIdOrPath), true)
@@ -877,13 +877,13 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: POST /projects/:id/issues/:issue_iid/links/:issue_link_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the internal ID of a project's issue, required
* @param issueLinkId the ID of an issue relationship, required
* @return an instance of IssueLink holding the deleted link relationship
* @throws GitLabApiException if any exception occurs
*/
- public IssueLink deleteIssueLink(Object projectIdOrPath, Integer issueIid, Integer issueLinkId) throws GitLabApiException {
+ public IssueLink deleteIssueLink(Object projectIdOrPath, Long issueIid, Long issueLinkId) throws GitLabApiException {
Response response = delete(Response.Status.OK, null,
"projects", getProjectIdOrPath(projectIdOrPath), "issues", issueIid, "links", issueLinkId);
return (response.readEntity(IssueLink.class));
@@ -894,12 +894,12 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: GET /projects/:id/issues/:issue_iid/participants
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the IID of the issue to get the participants for
* @return a List containing all participants for the specified issue
* @throws GitLabApiException if any exception occurs
*/
- public ListGitLab Endpoint: GET /projects/:id/issues/:issue_iid/participants
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the IID of the issue to get the participants for
* @param page the page to get
* @param perPage the number of projects per page
* @return a List containing all participants for the specified issue
* @throws GitLabApiException if any exception occurs
*/
- public ListGitLab Endpoint: GET /projects/:id/issues/:issue_iid/participants
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the IID of the issue to get the participants for
* @param itemsPerPage the number of Participant instances that will be fetched per page
* @return a Pager containing all participants for the specified issue
* @throws GitLabApiException if any exception occurs
*/
- public PagerGitLab Endpoint: GET /projects/:id/issues/:issue_iid/participants
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the IID of the issue to get the participants for
* @return a Stream containing all participants for the specified issue
* @throws GitLabApiException if any exception occurs
*/
- public StreamGitLab Endpoint: GET /projects/:projectId/issues_statistics
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, required
* @param filter {@link IssuesStatisticsFilter} a IssuesStatisticsFilter instance with the filter settings.
* @return an IssuesStatistics instance with the statistics for the matched issues
* @throws GitLabApiException if any exception occurs
@@ -1009,13 +1009,13 @@ public class IssuesApi extends AbstractApi implements Constants {
*
* GitLab Endpoint: POST /projects/:projectId/issues/:issue_iid/move
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, required
* @param issueIid the IID of the issue to move
* @param toProjectId the ID of the project to move the issue to
* @return an Issue instance for the moved issue
* @throws GitLabApiException if any exception occurs
*/
- public Issue moveIssue(Object projectIdOrPath, Integer issueIid, Object toProjectId) throws GitLabApiException {
+ public Issue moveIssue(Object projectIdOrPath, Long issueIid, Object toProjectId) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("to_project_id", toProjectId, true);
Response response = post(Response.Status.OK, formData,
"projects", this.getProjectIdOrPath(projectIdOrPath), "issues", issueIid, "move");
diff --git a/src/main/java/org/gitlab4j/api/JobApi.java b/src/main/java/org/gitlab4j/api/JobApi.java
index de69ed228321618a26679977286f12374ea28ac5..7ae6fbc21710e9907c21aab33a0c9246b5436fae 100644
--- a/src/main/java/org/gitlab4j/api/JobApi.java
+++ b/src/main/java/org/gitlab4j/api/JobApi.java
@@ -201,7 +201,7 @@ public class JobApi extends AbstractApi implements Constants {
* @return a single job for the specified project ID
* @throws GitLabApiException if any exception occurs during execution
*/
- public Job getJob(Object projectIdOrPath, Integer jobId) throws GitLabApiException {
+ public Job getJob(Object projectIdOrPath, Long jobId) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "jobs", jobId);
return (response.readEntity(Job.class));
}
@@ -215,7 +215,7 @@ public class JobApi extends AbstractApi implements Constants {
* @param jobId the job ID to get
* @return a single job for the specified project ID as an Optional intance
*/
- public OptionalGitLab Endpoint: POST /groups/:id/labels
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param labelProperties a Label instance holding the properties for the new group label
* @return the created Label instance
* @throws GitLabApiException if any exception occurs
@@ -126,8 +126,8 @@ public class LabelsApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/labels/:label_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
- * @param labelIdOrName the label in the form of an Integer(ID), String(name), or Label instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
+ * @param labelIdOrName the label in the form of an Long(ID), String(name), or Label instance
* @param labelConfig a Label instance holding the label properties to update
* @return the updated Label instance
* @throws GitLabApiException if any exception occurs
@@ -142,8 +142,8 @@ public class LabelsApi extends AbstractApi {
/**
* Delete the specified project label.
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
- * @param labelIdOrName the label in the form of an Integer(ID), String(name), or Label instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
+ * @param labelIdOrName the label in the form of an Long(ID), String(name), or Label instance
* @throws GitLabApiException if any exception occurs
*/
public void deleteProjectLabel(Object projectIdOrPath, Object labelIdOrName) throws GitLabApiException {
@@ -153,8 +153,8 @@ public class LabelsApi extends AbstractApi {
/**
* Subscribe a specified project label.
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
- * @param labelIdOrName the label in the form of an Integer(ID), String(name), or Label instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
+ * @param labelIdOrName the label in the form of an Long(ID), String(name), or Label instance
* @return HttpStatusCode 503
* @throws GitLabApiException if any exception occurs
*/
@@ -167,8 +167,8 @@ public class LabelsApi extends AbstractApi {
/**
* Unsubscribe a specified project label.
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
- * @param labelIdOrName the label in the form of an Integer(ID), String(name), or Label instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
+ * @param labelIdOrName the label in the form of an Long(ID), String(name), or Label instance
* @return HttpStatusCode 503
* @throws GitLabApiException if any exception occurs
*/
@@ -181,7 +181,7 @@ public class LabelsApi extends AbstractApi {
/**
* Get all labels of the specified group.
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @return a list of group's labels
* @throws org.gitlab4j.api.GitLabApiException if any exception occurs
*/
@@ -192,7 +192,7 @@ public class LabelsApi extends AbstractApi {
/**
* Get a Pager of all labels of the specified group.
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param itemsPerPage the number of items per page
* @return a list of group's labels in the specified range
* @throws GitLabApiException if any exception occurs
@@ -205,7 +205,7 @@ public class LabelsApi extends AbstractApi {
/**
* Get a Stream of all labels of the specified group.
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @return a Stream of group's labels
* @throws GitLabApiException if any exception occurs
*/
@@ -216,8 +216,8 @@ public class LabelsApi extends AbstractApi {
/**
* Get a single group label.
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
- * @param labelIdOrName the label in the form of an Integer(ID), String(name), or Label instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
+ * @param labelIdOrName the label in the form of an Long(ID), String(name), or Label instance
* @return a Label instance holding the information for the group label
* @throws GitLabApiException if any exception occurs
*/
@@ -230,8 +230,8 @@ public class LabelsApi extends AbstractApi {
/**
* Get a single group label as the value of an Optional.
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
- * @param labelIdOrName the label in the form of an Integer(ID), String(name), or Label instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
+ * @param labelIdOrName the label in the form of an Long(ID), String(name), or Label instance
* @return a Optional instance with a Label instance as its value
* @throws GitLabApiException if any exception occurs
*/
@@ -256,7 +256,7 @@ public class LabelsApi extends AbstractApi {
*
* GitLab Endpoint: POST /groups/:id/labels
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param labelProperties a Label instance holding the properties for the new group label
* @return the created Label instance
* @throws GitLabApiException if any exception occurs
@@ -281,8 +281,8 @@ public class LabelsApi extends AbstractApi {
*
* GitLab Endpoint: PUT /groups/:id/labels/:label_id
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
- * @param labelIdOrName the label in the form of an Integer(ID), String(name), or Label instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
+ * @param labelIdOrName the label in the form of an Long(ID), String(name), or Label instance
* @param labelConfig a Label instance holding the label properties to update
* @return the updated Label instance
* @throws GitLabApiException if any exception occurs
@@ -297,8 +297,8 @@ public class LabelsApi extends AbstractApi {
/**
* Delete the specified label
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
- * @param labelIdOrName the label in the form of an Integer(ID), String(name), or Label instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
+ * @param labelIdOrName the label in the form of an Long(ID), String(name), or Label instance
* @throws GitLabApiException if any exception occurs
*/
public void deleteGroupLabel(Object groupIdOrPath, Object labelIdOrName) throws GitLabApiException {
@@ -308,8 +308,8 @@ public class LabelsApi extends AbstractApi {
/**
* Subscribe a specified group label.
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
- * @param labelIdOrName the label in the form of an Integer(ID), String(name), or Label instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
+ * @param labelIdOrName the label in the form of an Long(ID), String(name), or Label instance
* @return HttpStatusCode 503
* @throws GitLabApiException if any exception occurs
*/
@@ -322,8 +322,8 @@ public class LabelsApi extends AbstractApi {
/**
* Unsubscribe a specified group label.
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
- * @param labelIdOrName the label in the form of an Integer(ID), String(name), or Label instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
+ * @param labelIdOrName the label in the form of an Long(ID), String(name), or Label instance
* @return HttpStatusCode 503
* @throws GitLabApiException if any exception occurs
*/
@@ -337,7 +337,7 @@ public class LabelsApi extends AbstractApi {
/**
* Get all labels of the specified project.
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return a list of project's labels
* @throws GitLabApiException if any exception occurs
* @deprecated Replaced by the {@link #getProjectLabels(Object)} method.
@@ -350,7 +350,7 @@ public class LabelsApi extends AbstractApi {
/**
* Get all labels of the specified project to using the specified page and per page setting
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param page the page to get
* @param perPage the number of items per page
* @return a list of project's labels in the specified range
@@ -367,7 +367,7 @@ public class LabelsApi extends AbstractApi {
/**
* Get a Pager of all labels of the specified project.
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param itemsPerPage the number of items per page
* @return a list of project's labels in the specified range
* @throws GitLabApiException if any exception occurs
@@ -382,7 +382,7 @@ public class LabelsApi extends AbstractApi {
/**
* Get a Stream of all labels of the specified project.
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return a Stream of project's labels
* @throws GitLabApiException if any exception occurs
* @deprecated Replaced by the {@link #getProjectLabelsStream(Object)} method.
@@ -395,7 +395,7 @@ public class LabelsApi extends AbstractApi {
/**
* Create a label
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param name the name for the label
* @param color the color for the label
* @param description the description for the label
@@ -411,7 +411,7 @@ public class LabelsApi extends AbstractApi {
/**
* Create a label
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param name the name for the label
* @param color the color for the label
* @return the created Label instance
@@ -426,7 +426,7 @@ public class LabelsApi extends AbstractApi {
/**
* Create a label
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param name the name for the label
* @param color the color for the label
* @param priority the priority for the label
@@ -442,7 +442,7 @@ public class LabelsApi extends AbstractApi {
/**
* Create a label
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param name the name for the label
* @param color the color for the label
* @param description the description for the label
@@ -464,7 +464,7 @@ public class LabelsApi extends AbstractApi {
/**
* Update the specified label
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param name the name for the label
* @param newName the new name for the label
* @param description the description for the label
@@ -481,7 +481,7 @@ public class LabelsApi extends AbstractApi {
/**
* Update the specified label
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param name the name for the label
* @param color the color for the label
* @param description the description for the label
@@ -498,7 +498,7 @@ public class LabelsApi extends AbstractApi {
/**
* Update the specified label
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param name the name for the label
* @param newName the new name for the label
* @param color the color for the label
@@ -524,7 +524,7 @@ public class LabelsApi extends AbstractApi {
/**
* Delete the specified label
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param name the name for the label
* @throws GitLabApiException if any exception occurs
* @deprecated Replaced by the {@link #deleteProjectLabel(Object, Object)} method.
@@ -538,28 +538,28 @@ public class LabelsApi extends AbstractApi {
/**
* Subscribe a specified label
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param labelId the label ID
* @return HttpStatusCode 503
* @throws GitLabApiException if any exception occurs
* @deprecated Replaced by the {@link #subscribeProjectLabel(Object, Object)} method.
*/
@Deprecated
- public Label subscribeLabel(Object projectIdOrPath, Integer labelId) throws GitLabApiException {
+ public Label subscribeLabel(Object projectIdOrPath, Long labelId) throws GitLabApiException {
return (subscribeProjectLabel(projectIdOrPath, labelId));
}
/**
* Unsubscribe a specified label
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param labelId the label ID
* @return HttpStatusCode 503
* @throws GitLabApiException if any exception occurs
* @deprecated Replaced by the {@link #unsubscribeProjectLabel(Object, Object)} method.
*/
@Deprecated
- public Label unsubscribeLabel(Object projectIdOrPath, Integer labelId) throws GitLabApiException {
+ public Label unsubscribeLabel(Object projectIdOrPath, Long labelId) throws GitLabApiException {
return (unsubscribeProjectLabel(projectIdOrPath, labelId));
}
}
diff --git a/src/main/java/org/gitlab4j/api/LicenseApi.java b/src/main/java/org/gitlab4j/api/LicenseApi.java
index 2664e78f10dba48717609cf64a9773b1f48fface..7b738a71713b0b590bd8a7e819658e901c73f8f9 100644
--- a/src/main/java/org/gitlab4j/api/LicenseApi.java
+++ b/src/main/java/org/gitlab4j/api/LicenseApi.java
@@ -20,7 +20,7 @@ public class LicenseApi extends AbstractApi {
/**
* Retrieve information about the current license.
- *
+ *
* GitLab Endpoint: GET /license
*
* @return a License instance holding info about the current license
@@ -108,7 +108,7 @@ public class LicenseApi extends AbstractApi {
* @return a License instance for the delete license
* @throws GitLabApiException if any exception occurs
*/
- public License deleteLicense(Integer licenseId) throws GitLabApiException {
+ public License deleteLicense(Long licenseId) throws GitLabApiException {
Response response = delete(Response.Status.OK, null, "license", licenseId);
return (response.readEntity(License.class));
}
diff --git a/src/main/java/org/gitlab4j/api/MergeRequestApi.java b/src/main/java/org/gitlab4j/api/MergeRequestApi.java
index db237747c453e834095b04b9c1d845743e8e763b..5b4df3ace431294a0d7cdc1280afd3889bbb7935 100644
--- a/src/main/java/org/gitlab4j/api/MergeRequestApi.java
+++ b/src/main/java/org/gitlab4j/api/MergeRequestApi.java
@@ -122,7 +122,7 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return all merge requests for the specified project
* @throws GitLabApiException if any exception occurs
*/
@@ -135,7 +135,7 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param page the page to get
* @param perPage the number of MergeRequest instances per page
* @return all merge requests for the specified project
@@ -151,7 +151,7 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param itemsPerPage the number of MergeRequest instances that will be fetched per page
* @return all merge requests for the specified project
* @throws GitLabApiException if any exception occurs
@@ -165,7 +165,7 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return a Stream with all merge requests for the specified project
* @throws GitLabApiException if any exception occurs
*/
@@ -178,7 +178,7 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests?state=:state
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param state the state parameter can be used to get only merge requests with a given state (opened, closed, or merged) or all of them (all).
* @return all merge requests for the specified project
* @throws GitLabApiException if any exception occurs
@@ -192,7 +192,7 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param state the state parameter can be used to get only merge requests with a given state (opened, closed, or merged) or all of them (all).
* @param page the page to get
* @param perPage the number of MergeRequest instances per page
@@ -213,7 +213,7 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param state the state parameter can be used to get only merge requests with a given state (opened, closed, or merged) or all of them (all).
* @param itemsPerPage the number of MergeRequest instances that will be fetched per page
* @return all merge requests for the specified project
@@ -230,7 +230,7 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests?state=:state
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param state the state parameter can be used to get only merge requests with a given state (opened, closed, or merged) or all of them (all).
* @return a Stream with all the merge requests for the specified project
* @throws GitLabApiException if any exception occurs
@@ -246,12 +246,12 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @return the specified MergeRequest instance
* @throws GitLabApiException if any exception occurs
*/
- public MergeRequest getMergeRequest(Object projectIdOrPath, Integer mergeRequestIid) throws GitLabApiException {
+ public MergeRequest getMergeRequest(Object projectIdOrPath, Long mergeRequestIid) throws GitLabApiException {
return getMergeRequest(projectIdOrPath, mergeRequestIid, null, null, null);
}
@@ -260,7 +260,7 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @param renderHtml if true response includes rendered HTML for title and description, can be null
* @param includeDivergedCommitCount if true response includes the commits behind the target branch, can be null
@@ -268,7 +268,7 @@ public class MergeRequestApi extends AbstractApi {
* @return a MergeRequest instance as specified by the parameters
* @throws GitLabApiException if any exception occurs
*/
- public MergeRequest getMergeRequest(Object projectIdOrPath, Integer mergeRequestIid,
+ public MergeRequest getMergeRequest(Object projectIdOrPath, Long mergeRequestIid,
Boolean renderHtml, Boolean includeDivergedCommitCount, Boolean includeRebaseInProgress) throws GitLabApiException {
GitLabApiForm queryParams = new GitLabApiForm()
@@ -288,11 +288,11 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @return the specified MergeRequest as an Optional instance instance
*/
- public OptionalGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @param renderHtml if true response includes rendered HTML for title and description, can be null
* @param includeDivergedCommitCount if true response includes the commits behind the target branch, can be null
* @param includeRebaseInProgress if true response includes whether a rebase operation is in progress, can be null
* @return the specified MergeRequest as an Optional instance instance
*/
- public OptionalGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @return a list containing the commits for the specified merge request
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
@@ -342,7 +342,7 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @param page the page to get
* @param perPage the number of commits per page
@@ -362,7 +362,7 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @param itemsPerPage the number of Commit instances that will be fetched per page
* @return a Pager containing the commits for the specified merge request
@@ -380,7 +380,7 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/commits
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @return a Stream containing the commits for the specified merge request
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
@@ -394,12 +394,12 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/versions
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @return a List of merge request diff versions for the specified merge request
* @throws GitLabApiException if any exception occurs
*/
- public ListGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/versions
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @param itemsPerPage the number of MergeRequest instances that will be fetched per page
* @return a Pager of merge request diff versions for the specified merge request
* @throws GitLabApiException if any exception occurs
*/
- public PagerGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/versions
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @return a Stream of merge request diff versions for the specified merge request
* @throws GitLabApiException if any exception occurs
*/
- public StreamGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/versions/:version_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @param versionId the ID of the merge request diff version
* @return a MergeRequestDiff instance for the specified MR diff version
* @throws GitLabApiException if any exception occurs
*/
public MergeRequestDiff getMergeRequestDiff(Object projectIdOrPath,
- Integer mergeRequestIid, Integer versionId) throws GitLabApiException {
+ Long mergeRequestIid, Long versionId) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath),
"merge_requests", mergeRequestIid, "versions", versionId);
return (response.readEntity(MergeRequestDiff.class));
@@ -456,13 +456,13 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/versions/:version_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @param versionId the ID of the merge request diff version
* @return the specified MergeRequestDiff as an Optional instance instance
*/
public OptionalGitLab Endpoint: POST /projects/:id/merge_requests
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param params a MergeRequestParams instance holding the info to create the merge request
* @return the created MergeRequest instance
* @throws GitLabApiException if any exception occurs
@@ -492,7 +492,7 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/merge_requests
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sourceBranch the source branch, required
* @param targetBranch the target branch, required
* @param title the title for the merge request, required
@@ -507,8 +507,8 @@ public class MergeRequestApi extends AbstractApi {
* @throws GitLabApiException if any exception occurs
* @since GitLab Starter 8.17, GitLab CE 11.0.
*/
- public MergeRequest createMergeRequest(Object projectIdOrPath, String sourceBranch, String targetBranch, String title, String description, Integer assigneeId,
- Integer targetProjectId, String[] labels, Integer milestoneId, Boolean removeSourceBranch, Boolean squash) throws GitLabApiException {
+ public MergeRequest createMergeRequest(Object projectIdOrPath, String sourceBranch, String targetBranch, String title, String description, Long assigneeId,
+ Long targetProjectId, String[] labels, Long milestoneId, Boolean removeSourceBranch, Boolean squash) throws GitLabApiException {
MergeRequestParams params = new MergeRequestParams()
.withSourceBranch(sourceBranch)
@@ -530,7 +530,7 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/merge_requests
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sourceBranch the source branch, required
* @param targetBranch the target branch, required
* @param title the title for the merge request, required
@@ -543,8 +543,8 @@ public class MergeRequestApi extends AbstractApi {
* @return the created MergeRequest instance
* @throws GitLabApiException if any exception occurs
*/
- public MergeRequest createMergeRequest(Object projectIdOrPath, String sourceBranch, String targetBranch, String title, String description, Integer assigneeId,
- Integer targetProjectId, String[] labels, Integer milestoneId, Boolean removeSourceBranch) throws GitLabApiException {
+ public MergeRequest createMergeRequest(Object projectIdOrPath, String sourceBranch, String targetBranch, String title, String description, Long assigneeId,
+ Long targetProjectId, String[] labels, Long milestoneId, Boolean removeSourceBranch) throws GitLabApiException {
MergeRequestParams params = new MergeRequestParams()
.withSourceBranch(sourceBranch)
@@ -565,7 +565,7 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/merge_requests
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param sourceBranch the source branch, required
* @param targetBranch the target branch, required
* @param title the title for the merge request, required
@@ -574,7 +574,7 @@ public class MergeRequestApi extends AbstractApi {
* @return the created MergeRequest instance
* @throws GitLabApiException if any exception occurs
*/
- public MergeRequest createMergeRequest(Object projectIdOrPath, String sourceBranch, String targetBranch, String title, String description, Integer assigneeId)
+ public MergeRequest createMergeRequest(Object projectIdOrPath, String sourceBranch, String targetBranch, String title, String description, Long assigneeId)
throws GitLabApiException {
MergeRequestParams params = new MergeRequestParams()
@@ -592,13 +592,13 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request to update
* @param params a MergeRequestParams instance holding the info to update the merge request
* @return the updated merge request
* @throws GitLabApiException if any exception occurs
*/
- public MergeRequest updateMergeRequest(Object projectIdOrPath, Integer mergeRequestIid, MergeRequestParams params) throws GitLabApiException {
+ public MergeRequest updateMergeRequest(Object projectIdOrPath, Long mergeRequestIid, MergeRequestParams params) throws GitLabApiException {
GitLabApiForm form = params.getForm(false);
Response response = put(Response.Status.OK, form.asMap(),
"projects", getProjectIdOrPath(projectIdOrPath), "merge_requests", mergeRequestIid);
@@ -612,7 +612,7 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request to update
* @param targetBranch the target branch, optional
* @param title the title for the merge request
@@ -630,9 +630,9 @@ public class MergeRequestApi extends AbstractApi {
* @return the updated merge request
* @throws GitLabApiException if any exception occurs
*/
- public MergeRequest updateMergeRequest(Object projectIdOrPath, Integer mergeRequestIid,
- String targetBranch, String title, Integer assigneeId, String description,
- StateEvent stateEvent, String labels, Integer milestoneId, Boolean removeSourceBranch,
+ public MergeRequest updateMergeRequest(Object projectIdOrPath, Long mergeRequestIid,
+ String targetBranch, String title, Long assigneeId, String description,
+ StateEvent stateEvent, String labels, Long milestoneId, Boolean removeSourceBranch,
Boolean squash, Boolean discussionLocked, Boolean allowCollaboration)
throws GitLabApiException {
@@ -664,11 +664,11 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: DELETE /projects/:id/merge_requests/:merge_request_iid
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @throws GitLabApiException if any exception occurs
*/
- public void deleteMergeRequest(Object projectIdOrPath, Integer mergeRequestIid) throws GitLabApiException {
+ public void deleteMergeRequest(Object projectIdOrPath, Long mergeRequestIid) throws GitLabApiException {
if (mergeRequestIid == null) {
throw new RuntimeException("mergeRequestIid cannot be null");
@@ -690,13 +690,13 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid/merge
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @param params the MergeRequest instance holding the parameters for accepting the merge request
* @return the merged merge request
* @throws GitLabApiException if any exception occurs
*/
- public MergeRequest acceptMergeRequest(Object projectIdOrPath, Integer mergeRequestIid,
+ public MergeRequest acceptMergeRequest(Object projectIdOrPath, Long mergeRequestIid,
AcceptMergeRequestParams params) throws GitLabApiException {
Response response = put(Response.Status.OK, params.getForm().asMap(), "projects",
getProjectIdOrPath(projectIdOrPath), "merge_requests", mergeRequestIid, "merge");
@@ -715,12 +715,12 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid/merge
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @return the merged merge request
* @throws GitLabApiException if any exception occurs
*/
- public MergeRequest acceptMergeRequest(Object projectIdOrPath, Integer mergeRequestIid) throws GitLabApiException {
+ public MergeRequest acceptMergeRequest(Object projectIdOrPath, Long mergeRequestIid) throws GitLabApiException {
return (acceptMergeRequest(projectIdOrPath, mergeRequestIid, null, null, null, null));
}
@@ -737,7 +737,7 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid/merge
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @param mergeCommitMessage, custom merge commit message, optional
* @param shouldRemoveSourceBranch, if true removes the source branch, optional
@@ -745,7 +745,7 @@ public class MergeRequestApi extends AbstractApi {
* @return the merged merge request
* @throws GitLabApiException if any exception occurs
*/
- public MergeRequest acceptMergeRequest(Object projectIdOrPath, Integer mergeRequestIid,
+ public MergeRequest acceptMergeRequest(Object projectIdOrPath, Long mergeRequestIid,
String mergeCommitMessage, Boolean shouldRemoveSourceBranch, Boolean mergeWhenPipelineSucceeds)
throws GitLabApiException {
return (acceptMergeRequest(projectIdOrPath, mergeRequestIid, mergeCommitMessage,
@@ -765,7 +765,7 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid/merge
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @param mergeCommitMessage, custom merge commit message, optional
* @param shouldRemoveSourceBranch, if true removes the source branch, optional
@@ -774,7 +774,7 @@ public class MergeRequestApi extends AbstractApi {
* @return the merged merge request
* @throws GitLabApiException if any exception occurs
*/
- public MergeRequest acceptMergeRequest(Object projectIdOrPath, Integer mergeRequestIid,
+ public MergeRequest acceptMergeRequest(Object projectIdOrPath, Long mergeRequestIid,
String mergeCommitMessage, Boolean shouldRemoveSourceBranch, Boolean mergeWhenPipelineSucceeds, String sha)
throws GitLabApiException {
@@ -804,12 +804,12 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid/cancel_merge_when_pipeline_succeeds
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @return the updated merge request
* @throws GitLabApiException if any exception occurs
*/
- public MergeRequest cancelMergeRequest(Object projectIdOrPath, Integer mergeRequestIid) throws GitLabApiException {
+ public MergeRequest cancelMergeRequest(Object projectIdOrPath, Long mergeRequestIid) throws GitLabApiException {
if (mergeRequestIid == null) {
throw new RuntimeException("mergeRequestIid cannot be null");
@@ -826,12 +826,12 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/approvals
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @return a MergeRequest instance with approval information included
* @throws GitLabApiException if any exception occurs
*/
- public MergeRequest getMergeRequestApprovals(Object projectIdOrPath, Integer mergeRequestIid) throws GitLabApiException {
+ public MergeRequest getMergeRequestApprovals(Object projectIdOrPath, Long mergeRequestIid) throws GitLabApiException {
return (getApprovals(projectIdOrPath, mergeRequestIid));
}
@@ -842,12 +842,12 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/approvals
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @return a MergeRequest instance with approval information included
* @throws GitLabApiException if any exception occurs
*/
- public MergeRequest getApprovals(Object projectIdOrPath, Integer mergeRequestIid) throws GitLabApiException {
+ public MergeRequest getApprovals(Object projectIdOrPath, Long mergeRequestIid) throws GitLabApiException {
if (mergeRequestIid == null) {
throw new RuntimeException("mergeRequestIid cannot be null");
@@ -863,12 +863,12 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/approval_state
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @return a ApprovalState instance with approval state
* @throws GitLabApiException if any exception occurs
*/
- public ApprovalState getApprovalState(Object projectIdOrPath, Integer mergeRequestIid) throws GitLabApiException {
+ public ApprovalState getApprovalState(Object projectIdOrPath, Long mergeRequestIid) throws GitLabApiException {
if (mergeRequestIid == null) {
throw new RuntimeException("mergeRequestIid cannot be null");
@@ -885,12 +885,12 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/approval_rules
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @return a List of ApprovalRule instances for the specified merge request.
* @throws GitLabApiException if any exception occurs
*/
- public ListGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/approval_rules
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @param itemsPerPage the number of ApprovalRule instances that will be fetched per page
* @return a Pager of ApprovalRule instances for the specified merge request.
* @throws GitLabApiException if any exception occurs
*/
- public PagerGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/approval_rules
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @return a Stream of ApprovalRule instances for the specified merge request.
* @throws GitLabApiException if any exception occurs
*/
- public StreamGitLab Endpoint: POST /projects/:id/merge_requests/:merge_request_iid/approval_rules
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @param projectRuleId the ID of a project-level approval rule
* @param params the ApprovalRuleParams instance holding the parameters for the approval rule
* @return a ApprovalRule instance with approval configuration
* @throws GitLabApiException if any exception occurs
*/
- public ApprovalRule createApprovalRule(Object projectIdOrPath, Integer mergeRequestIid,
- Integer projectRuleId, ApprovalRuleParams params) throws GitLabApiException {
+ public ApprovalRule createApprovalRule(Object projectIdOrPath, Long mergeRequestIid,
+ Long projectRuleId, ApprovalRuleParams params) throws GitLabApiException {
if (mergeRequestIid == null) {
throw new RuntimeException("mergeRequestIid cannot be null");
@@ -964,15 +964,15 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid/approval_rules/:approval_rule_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @param approvalRuleId the ID of the approval rule
* @param params the ApprovalRuleParams instance holding the parameters for the approval rule update
* @return a ApprovalRule instance with approval configuration
* @throws GitLabApiException if any exception occurs
*/
- public ApprovalRule updateApprovalRule(Object projectIdOrPath, Integer mergeRequestIid,
- Integer approvalRuleId, ApprovalRuleParams params) throws GitLabApiException {
+ public ApprovalRule updateApprovalRule(Object projectIdOrPath, Long mergeRequestIid,
+ Long approvalRuleId, ApprovalRuleParams params) throws GitLabApiException {
if (mergeRequestIid == null) {
throw new RuntimeException("mergeRequestIid cannot be null");
@@ -994,12 +994,12 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: DELETE /projects/:id/merge_requests/:merge_request_iid/approval_rules/:approval_rule_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @param approvalRuleId the ID of the approval rule
* @throws GitLabApiException if any exception occurs
*/
- public void deleteApprovalRule(Object projectIdOrPath, Integer mergeRequestIid, Integer approvalRuleId) throws GitLabApiException {
+ public void deleteApprovalRule(Object projectIdOrPath, Long mergeRequestIid, Long approvalRuleId) throws GitLabApiException {
if (mergeRequestIid == null) {
throw new RuntimeException("mergeRequestIid cannot be null");
@@ -1020,13 +1020,13 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/merge_requests/:merge_request_iid/approve
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @param sha the HEAD of the merge request, optional
* @return a MergeRequest instance with approval information included
* @throws GitLabApiException if any exception occurs
*/
- public MergeRequest approveMergeRequest(Object projectIdOrPath, Integer mergeRequestIid, String sha) throws GitLabApiException {
+ public MergeRequest approveMergeRequest(Object projectIdOrPath, Long mergeRequestIid, String sha) throws GitLabApiException {
if (mergeRequestIid == null) {
throw new RuntimeException("mergeRequestIid cannot be null");
@@ -1044,12 +1044,12 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: POST /projects/:id/merge_requests/:merge_request_iid/unapprove
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @return a MergeRequest instance with approval information included
* @throws GitLabApiException if any exception occurs
*/
- public MergeRequest unapproveMergeRequest(Object projectIdOrPath, Integer mergeRequestIid) throws GitLabApiException {
+ public MergeRequest unapproveMergeRequest(Object projectIdOrPath, Long mergeRequestIid) throws GitLabApiException {
if (mergeRequestIid == null) {
throw new RuntimeException("mergeRequestIid cannot be null");
@@ -1064,12 +1064,12 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/changes
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the IID of the merge request to get
* @return a merge request including its changes
* @throws GitLabApiException if any exception occurs
*/
- public MergeRequest getMergeRequestChanges(Object projectIdOrPath, Integer mergeRequestIid) throws GitLabApiException {
+ public MergeRequest getMergeRequestChanges(Object projectIdOrPath, Long mergeRequestIid) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "merge_requests", mergeRequestIid, "changes");
return (response.readEntity(MergeRequest.class));
}
@@ -1079,12 +1079,12 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/participants
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the IID of the merge request to get
* @return a List containing all participants for the specified merge request
* @throws GitLabApiException if any exception occurs
*/
- public ListGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/participants
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the IID of the merge request to get
* @param page the page to get
* @param perPage the number of projects per page
* @return a List containing all participants for the specified merge request
* @throws GitLabApiException if any exception occurs
*/
- public ListGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/participants
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the IID of the merge request to get
* @param itemsPerPage the number of Participant instances that will be fetched per page
* @return a Pager containing all participants for the specified merge request
* @throws GitLabApiException if any exception occurs
*/
- public PagerGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/participants
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the IID of the merge request to get
* @return a Stream containing all participants for the specified merge request
* @throws GitLabApiException if any exception occurs
*/
- public StreamGitLab Endpoint: PUT /projects/:id/merge_requests/:merge_request_iid/rebase
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request to rebase
* @return the merge request info containing the status of a merge request rebase
* @throws GitLabApiException if any exception occurs
*/
- public MergeRequest rebaseMergeRequest(Object projectIdOrPath, Integer mergeRequestIid) throws GitLabApiException {
+ public MergeRequest rebaseMergeRequest(Object projectIdOrPath, Long mergeRequestIid) throws GitLabApiException {
Response response = put(Response.Status.ACCEPTED, null,
"projects", getProjectIdOrPath(projectIdOrPath), "merge_requests", mergeRequestIid, "rebase");
return (response.readEntity(MergeRequest.class));
@@ -1236,12 +1236,12 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request being rebased
* @return the merge request info containing the status of a merge request rebase
* @throws GitLabApiException if any exception occurs
*/
- public MergeRequest getRebaseStatus(Object projectIdOrPath, Integer mergeRequestIid) throws GitLabApiException {
+ public MergeRequest getRebaseStatus(Object projectIdOrPath, Long mergeRequestIid) throws GitLabApiException {
return getMergeRequest(projectIdOrPath, mergeRequestIid, null, null, true);
}
@@ -1250,12 +1250,12 @@ public class MergeRequestApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/pipelines
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @return a list containing the pipelines for the specified merge request
* @throws GitLabApiException if any exception occurs during execution
*/
- public ListGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/pipelines
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @param itemsPerPage the number of Pipeline instances that will be fetched per page
* @return a Pager containing the pipelines for the specified merge request
* @throws GitLabApiException if any exception occurs during execution
*/
- public PagerGitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/pipelines
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @return a Stream containing the pipelines for the specified merge request
* @throws GitLabApiException if any exception occurs during execution
*/
- public StreamGitLab Endpoint: POST /projects/:id/merge_requests/:merge_request_iid/pipelines
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param mergeRequestIid the internal ID of the merge request
* @return a Pipeline instance with the newly created pipeline info
* @throws GitLabApiException if any exception occurs during execution
*/
- public Pipeline createMergeRequestPipeline(Object projectIdOrPath, Integer mergeRequestIid) throws GitLabApiException {
+ public Pipeline createMergeRequestPipeline(Object projectIdOrPath, Long mergeRequestIid) throws GitLabApiException {
Response response = post(Response.Status.CREATED, (Form)null,
"projects", getProjectIdOrPath(projectIdOrPath), "merge_requests", mergeRequestIid, "pipelines");
return (response.readEntity(Pipeline.class));
diff --git a/src/main/java/org/gitlab4j/api/MilestonesApi.java b/src/main/java/org/gitlab4j/api/MilestonesApi.java
index 4d0a71c472d42bd40a92df556ad953d9639b358b..8204f204cc0a6205d6bd20ce2a293899edc19560 100644
--- a/src/main/java/org/gitlab4j/api/MilestonesApi.java
+++ b/src/main/java/org/gitlab4j/api/MilestonesApi.java
@@ -28,7 +28,7 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: GET /groups/:id/milestones
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @return the milestones associated with the specified group
* @throws GitLabApiException if any exception occurs
*/
@@ -41,7 +41,7 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: GET /groups/:id/milestones
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param page the page number to get
* @param perPage how many milestones per page
* @return the milestones associated with the specified group
@@ -58,7 +58,7 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: GET /groups/:id/milestones
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param itemsPerPage The number of Milestone instances that will be fetched per page
* @return the milestones associated with the specified group
* @throws GitLabApiException if any exception occurs
@@ -73,7 +73,7 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: GET /groups/:id/milestones
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @return a Stream of the milestones associated with the specified group
* @throws GitLabApiException if any exception occurs
*/
@@ -86,7 +86,7 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: GET /groups/:id/milestones
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param state the milestone state
* @return the milestones associated with the specified group and state
* @throws GitLabApiException if any exception occurs
@@ -103,7 +103,7 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: GET /groups/:id/milestones
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param search the search string
* @return the milestones associated with the specified group
* @throws GitLabApiException if any exception occurs
@@ -120,7 +120,7 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: GET /groups/:id/milestones/:milestone_id
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param state the milestone state
* @param search the search string
* @return the milestones associated with the specified group
@@ -141,12 +141,12 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: GET /groups/:id/milestones/:milestone_id
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param milestoneId the ID of the milestone tp get
* @return a Milestone instance for the specified IDs
* @throws GitLabApiException if any exception occurs
*/
- public Milestone getGroupMilestone(Object groupIdOrPath, Integer milestoneId) throws GitLabApiException {
+ public Milestone getGroupMilestone(Object groupIdOrPath, Long milestoneId) throws GitLabApiException {
Response response = get(Response.Status.OK, getDefaultPerPageParam(),
"groups", getGroupIdOrPath(groupIdOrPath), "milestones", milestoneId);
return (response.readEntity(Milestone.class));
@@ -157,12 +157,12 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: GET /groups/:id/milestones/:milestone_id/issues
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param milestoneId the milestone ID to get the issues for
* @return a List of Issue for the milestone
* @throws GitLabApiException if any exception occurs
*/
- public ListGitLab Endpoint: GET /groups/:id/milestones/:milestone_id/issues
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param milestoneId the milestone ID to get the issues for
* @param itemsPerPage The number of Milestone instances that will be fetched per page
* @return a Pager of Issue for the milestone
* @throws GitLabApiException if any exception occurs
*/
- public PagerGitLab Endpoint: GET /groups/:id/milestones/:milestone_id/issues
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param milestoneId the milestone ID to get the issues for
* @return a Stream of Issue for the milestone
* @throws GitLabApiException if any exception occurs
*/
- public StreamGitLab Endpoint: GET /groups/:id/milestones/:milestone_id/merge_requests
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param milestoneId the milestone ID to get the merge requests for
* @return a list of merge requests associated with the specified milestone
* @throws GitLabApiException if any exception occurs
*/
- public ListGitLab Endpoint: POST /groups/:id/milestones
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param title the title for the milestone
* @param description the description for the milestone
* @param dueDate the due date for the milestone
@@ -240,12 +240,12 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: PUT /groups/:id/milestones/:milestone_id
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param milestoneId the milestone ID to close
* @return the closed Milestone instance
* @throws GitLabApiException if any exception occurs
*/
- public Milestone closeGroupMilestone(Object groupIdOrPath, Integer milestoneId) throws GitLabApiException {
+ public Milestone closeGroupMilestone(Object groupIdOrPath, Long milestoneId) throws GitLabApiException {
if (milestoneId == null) {
throw new RuntimeException("milestoneId cannot be null");
@@ -262,12 +262,12 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: PUT /groups/:id/milestones/:milestone_id
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param milestoneId the milestone ID to activate
* @return the activated Milestone instance
* @throws GitLabApiException if any exception occurs
*/
- public Milestone activateGroupMilestone(Object groupIdOrPath, Integer milestoneId) throws GitLabApiException {
+ public Milestone activateGroupMilestone(Object groupIdOrPath, Long milestoneId) throws GitLabApiException {
if (milestoneId == null) {
throw new RuntimeException("milestoneId cannot be null");
@@ -284,7 +284,7 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: PUT /groups/:id/milestones/:milestone_id
*
- * @param groupIdOrPath the group in the form of an Integer(ID), String(path), or Group instance
+ * @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
* @param milestoneId the milestone ID to update
* @param title the updated title for the milestone
* @param description the updated description for the milestone
@@ -294,7 +294,7 @@ public class MilestonesApi extends AbstractApi {
* @return the updated Milestone instance
* @throws GitLabApiException if any exception occurs
*/
- public Milestone updateGroupMilestone(Object groupIdOrPath, Integer milestoneId, String title, String description,
+ public Milestone updateGroupMilestone(Object groupIdOrPath, Long milestoneId, String title, String description,
Date dueDate, Date startDate, MilestoneState milestoneState) throws GitLabApiException {
if (milestoneId == null) {
@@ -317,7 +317,7 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/milestones
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return the milestones associated with the specified project
* @throws GitLabApiException if any exception occurs
*/
@@ -330,7 +330,7 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/milestones
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param page the page number to get
* @param perPage how many milestones per page
* @return the milestones associated with the specified project
@@ -347,7 +347,7 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/milestones
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param itemsPerPage The number of Milestone instances that will be fetched per page
* @return the milestones associated with the specified project
* @throws GitLabApiException if any exception occurs
@@ -362,7 +362,7 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/milestones
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @return a Stream of the milestones associated with the specified project
* @throws GitLabApiException if any exception occurs
*/
@@ -375,7 +375,7 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/milestones
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param state the milestone state
* @return the milestones associated with the specified project and state
* @throws GitLabApiException if any exception occurs
@@ -392,7 +392,7 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/milestones
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param search the search string
* @return the milestones associated with the specified project
* @throws GitLabApiException if any exception occurs
@@ -409,7 +409,7 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/milestones
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param state the milestone state
* @param search the search string
* @return the milestones associated with the specified project
@@ -430,12 +430,12 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/milestones/:milestone_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param milestoneId the ID of the milestone tp get
* @return a Milestone instance for the specified IDs
* @throws GitLabApiException if any exception occurs
*/
- public Milestone getMilestone(Object projectIdOrPath, Integer milestoneId) throws GitLabApiException {
+ public Milestone getMilestone(Object projectIdOrPath, Long milestoneId) throws GitLabApiException {
Response response = get(Response.Status.OK, getDefaultPerPageParam(),
"projects", getProjectIdOrPath(projectIdOrPath), "milestones", milestoneId);
return (response.readEntity(Milestone.class));
@@ -446,12 +446,12 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/milestones/:milestone_id/issues
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param milestoneId the milestone ID to get the issues for
* @return a List of Issue for the milestone
* @throws GitLabApiException if any exception occurs
*/
- public ListGitLab Endpoint: GET /projects/:id/milestones/:milestone_id/issues
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param milestoneId the milestone ID to get the issues for
* @param itemsPerPage the number of Milestone instances that will be fetched per page
* @return a Pager of Issue for the milestone
* @throws GitLabApiException if any exception occurs
*/
- public PagerGitLab Endpoint: GET /projects/:id/milestones/:milestone_id/issues
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param milestoneId the milestone ID to get the issues for
* @return a Stream of Issue for the milestone
* @throws GitLabApiException if any exception occurs
*/
- public StreamGitLab Endpoint: GET /projects/:id/milestones/:milestone_id/merge_requests
- *
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ *
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param milestoneId the milestone ID to get the merge requests for
* @return a list of merge requests associated with the specified milestone
* @throws GitLabApiException if any exception occurs
*/
- public ListGitLab Endpoint: POST /projects/:id/milestones
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param title the title for the milestone
* @param description the description for the milestone
* @param dueDate the due date for the milestone
@@ -530,12 +530,12 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/milestones/:milestone_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param milestoneId the milestone ID to close
* @return the closed Milestone instance
* @throws GitLabApiException if any exception occurs
*/
- public Milestone closeMilestone(Object projectIdOrPath, Integer milestoneId) throws GitLabApiException {
+ public Milestone closeMilestone(Object projectIdOrPath, Long milestoneId) throws GitLabApiException {
if (milestoneId == null) {
throw new RuntimeException("milestoneId cannot be null");
@@ -552,12 +552,12 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/milestones/:milestone_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param milestoneId the milestone ID to activate
* @return the activated Milestone instance
* @throws GitLabApiException if any exception occurs
*/
- public Milestone activateMilestone(Object projectIdOrPath, Integer milestoneId) throws GitLabApiException {
+ public Milestone activateMilestone(Object projectIdOrPath, Long milestoneId) throws GitLabApiException {
if (milestoneId == null) {
throw new RuntimeException("milestoneId cannot be null");
@@ -574,7 +574,7 @@ public class MilestonesApi extends AbstractApi {
*
* GitLab Endpoint: PUT /projects/:id/milestones/:milestone_id
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param milestoneId the milestone ID to update
* @param title the updated title for the milestone
* @param description the updated description for the milestone
@@ -584,13 +584,13 @@ public class MilestonesApi extends AbstractApi {
* @return the updated Milestone instance
* @throws GitLabApiException if any exception occurs
*/
- public Milestone updateMilestone(Object projectIdOrPath, Integer milestoneId, String title, String description,
+ public Milestone updateMilestone(Object projectIdOrPath, Long milestoneId, String title, String description,
Date dueDate, Date startDate, MilestoneState milestoneState) throws GitLabApiException {
if (milestoneId == null) {
throw new RuntimeException("milestoneId cannot be null");
}
-
+
GitLabApiForm formData = new GitLabApiForm()
.withParam("title", title, true)
.withParam("description", description)
@@ -605,11 +605,11 @@ public class MilestonesApi extends AbstractApi {
/**
* Delete a project milestone.
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param milestoneId the milestone ID to delete
* @throws GitLabApiException if any exception occurs
*/
- public void deleteMilestone(Object projectIdOrPath, Integer milestoneId) throws GitLabApiException {
+ public void deleteMilestone(Object projectIdOrPath, Long milestoneId) throws GitLabApiException {
delete(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "milestones", milestoneId);
}
}
diff --git a/src/main/java/org/gitlab4j/api/NotesApi.java b/src/main/java/org/gitlab4j/api/NotesApi.java
index cf7120b10c4c489719d64efd5e963c0b289c146e..ebd901b684373c72d2a3d2990ac234fb472e9017 100644
--- a/src/main/java/org/gitlab4j/api/NotesApi.java
+++ b/src/main/java/org/gitlab4j/api/NotesApi.java
@@ -20,14 +20,14 @@ public class NotesApi extends AbstractApi {
*
* GitLab Endpoint: GET /projects/:id/issues/:issue_iid/notes
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the issue ID to get the notes for
* @return a list of the issues's notes
* @throws GitLabApiException if any exception occurs
* @deprecated As of release 4.7.0, replaced by {@link #getIssueNotes(Object, Integer)}
*/
@Deprecated
- public ListGitLab Endpoint: GET /projects/:id/issues/:issue_iid/notes
*
- * @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
* @param issueIid the issue IID to get the notes for
* @param page the page to get
* @param perPage the number of notes per page
@@ -45,7 +45,7 @@ public class NotesApi extends AbstractApi {
* @deprecated As of release 4.7.0, replaced by {@link #getIssueNotes(Object, Integer, int, int)}
*/
@Deprecated
- public List