public class GitlabAPI
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
MAPPER |
Modifier and Type | Method and Description |
---|---|
GitlabMergeRequest |
acceptMergeRequest(GitlabProject project,
java.lang.Integer mergeRequestId,
java.lang.String mergeCommitMessage) |
GitlabGroupMember |
addGroupMember(GitlabGroup group,
GitlabUser user,
GitlabAccessLevel accessLevel)
Add a group member.
|
GitlabGroupMember |
addGroupMember(java.lang.Integer groupId,
java.lang.Integer userId,
GitlabAccessLevel accessLevel)
Add a group member.
|
GitlabProjectHook |
addProjectHook(GitlabProject project,
java.lang.String url) |
GitlabProjectHook |
addProjectHook(GitlabProject project,
java.lang.String url,
java.lang.String token) |
GitlabProjectHook |
addProjectHook(java.io.Serializable projectId,
java.lang.String url,
boolean pushEvents,
boolean issuesEvents,
boolean mergeRequestEvents,
boolean tagPushEvents,
boolean sslVerification) |
GitlabProjectMember |
addProjectMember(GitlabProject project,
GitlabUser user,
GitlabAccessLevel accessLevel)
Add a project member.
|
GitlabProjectMember |
addProjectMember(java.lang.Integer projectId,
java.lang.Integer userId,
GitlabAccessLevel accessLevel)
Add a project member.
|
GitlabSystemHook |
addSystemHook(java.lang.String url)
Add new system hook hook
|
GitlabTag |
addTag(GitlabProject project,
java.lang.String tagName,
java.lang.String ref,
java.lang.String message,
java.lang.String releaseDescription)
Create tag in specific project
|
GitlabTag |
addTag(java.io.Serializable projectId,
java.lang.String tagName,
java.lang.String ref,
java.lang.String message,
java.lang.String releaseDescription)
Create tag in specific project
|
void |
blockUser(java.lang.Integer targetUserId)
Block a user
|
GitlabCommit |
cherryPick(GitlabProject project,
java.lang.String sha,
java.lang.String targetBranchName) |
GitlabCommit |
cherryPick(java.io.Serializable projectId,
java.lang.String sha,
java.lang.String targetBranchName)
Cherry picks a commit.
|
GitlabCommitComparison |
compareCommits(java.io.Serializable projectId,
java.lang.String commitHash1,
java.lang.String commitHash2) |
GitlabCommitComparison |
compareCommits(java.io.Serializable projectId,
java.lang.String commitHash1,
java.lang.String commitHash2,
Pagination pagination) |
static GitlabAPI |
connect(java.lang.String hostUrl,
java.lang.String apiToken) |
static GitlabSession |
connect(java.lang.String hostUrl,
java.lang.String username,
java.lang.String password) |
static GitlabAPI |
connect(java.lang.String hostUrl,
java.lang.String apiToken,
TokenType tokenType) |
static GitlabAPI |
connect(java.lang.String hostUrl,
java.lang.String apiToken,
TokenType tokenType,
AuthMethod method) |
GitlabAward |
createAward(GitlabIssue issue,
java.lang.Integer noteId,
java.lang.String awardName)
Create an award for an issue note
|
GitlabAward |
createAward(GitlabIssue issue,
java.lang.String awardName)
Create an award for an issue
|
GitlabAward |
createAward(GitlabMergeRequest mergeRequest,
java.lang.String awardName)
Create an award for a merge request
|
void |
createBranch(GitlabProject project,
java.lang.String branchName,
java.lang.String ref)
Create Branch.
|
void |
createBranch(java.io.Serializable projectId,
java.lang.String branchName,
java.lang.String ref)
Create Branch.
|
GitlabBuildVariable |
createBuildVariable(java.lang.Integer projectId,
GitlabBuildVariable variable)
Creates a new variable.
|
GitlabBuildVariable |
createBuildVariable(java.lang.Integer projectId,
java.lang.String key,
java.lang.String value)
Creates a new build variable.
|
CommitComment |
createCommitComment(java.lang.Integer projectId,
java.lang.String sha,
java.lang.String note,
java.lang.String path,
java.lang.String line,
java.lang.String line_type)
Post comment to commit
|
GitlabCommitStatus |
createCommitStatus(GitlabProject project,
java.lang.String commitHash,
java.lang.String state,
java.lang.String ref,
java.lang.String name,
java.lang.String targetUrl,
java.lang.String description) |
GitlabSSHKey |
createDeployKey(java.lang.Integer targetProjectId,
java.lang.String title,
java.lang.String key)
Create a new deploy key for the project
|
GitlabProject |
createFork(java.lang.String namespace,
GitlabProject gitlabProject) |
GitlabProject |
createFork(java.lang.String namespace,
java.lang.Integer projectId) |
GitlabGroup |
createGroup(CreateGroupRequest request,
GitlabUser sudoUser)
Creates a Group
|
GitlabGroup |
createGroup(java.lang.String name)
Creates a Group
|
GitlabGroup |
createGroup(java.lang.String name,
java.lang.String path)
Creates a Group
|
GitlabGroup |
createGroup(java.lang.String name,
java.lang.String path,
java.lang.String ldapCn,
GitlabAccessLevel ldapAccess)
Creates a Group
|
GitlabGroup |
createGroup(java.lang.String name,
java.lang.String path,
java.lang.String ldapCn,
GitlabAccessLevel ldapAccess,
GitlabUser sudoUser)
Creates a Group
|
GitlabGroup |
createGroup(java.lang.String name,
java.lang.String path,
java.lang.String ldapCn,
GitlabAccessLevel ldapAccess,
GitlabUser sudoUser,
java.lang.Integer parentId)
Creates a Group
|
GitlabGroup |
createGroupViaSudo(java.lang.String name,
java.lang.String path,
GitlabUser sudoUser)
Creates a Group
|
GitlabIssue |
createIssue(int projectId,
int assigneeId,
java.lang.Integer milestoneId,
java.lang.String labels,
java.lang.String description,
java.lang.String title) |
GitlabLabel |
createLabel(java.io.Serializable projectId,
GitlabLabel label)
Creates a new label.
|
GitlabLabel |
createLabel(java.io.Serializable projectId,
java.lang.String name,
java.lang.String color)
Creates a new label.
|
GitlabMergeRequest |
createMergeRequest(java.io.Serializable projectId,
java.lang.String sourceBranch,
java.lang.String targetBranch,
java.lang.Integer assigneeId,
java.lang.String title)
Create a new MergeRequest
|
GitlabMilestone |
createMilestone(java.io.Serializable projectId,
GitlabMilestone milestone)
Creates a new project milestone.
|
GitlabMilestone |
createMilestone(java.io.Serializable projectId,
java.lang.String title,
java.lang.String description,
java.util.Date dueDate,
java.util.Date startDate)
Cretaes a new project milestone.
|
GitlabNote |
createNote(GitlabIssue issue,
java.lang.String message) |
GitlabNote |
createNote(GitlabMergeRequest mergeRequest,
java.lang.String body) |
GitlabNote |
createNote(java.io.Serializable projectId,
java.lang.Integer issueId,
java.lang.String message) |
boolean |
createOrEditJiraService(java.lang.Integer projectId,
GitlabJiraProperties jiraPropties)
Set JIRA service for a project.
|
GitlabProject |
createProject(GitlabProject project)
Creates a Project
|
GitlabProject |
createProject(java.lang.String name)
Creates a private Project
|
GitlabProject |
createProject(java.lang.String name,
java.lang.Integer namespaceId,
java.lang.String description,
java.lang.Boolean issuesEnabled,
java.lang.Boolean wallEnabled,
java.lang.Boolean mergeRequestsEnabled,
java.lang.Boolean wikiEnabled,
java.lang.Boolean snippetsEnabled,
java.lang.Boolean publik,
java.lang.String visibility,
java.lang.String importUrl)
Deprecated.
|
GitlabProject |
createProjectForGroup(java.lang.String name,
GitlabGroup group)
Creates a group Project
|
GitlabProject |
createProjectForGroup(java.lang.String name,
GitlabGroup group,
java.lang.String description)
Creates a group Project
|
GitlabProject |
createProjectForGroup(java.lang.String name,
GitlabGroup group,
java.lang.String description,
java.lang.String visibility)
Creates a group Project
|
GitlabSSHKey |
createPushDeployKey(java.lang.Integer targetProjectId,
java.lang.String title,
java.lang.String key)
Create a new deploy key for the project which can push.
|
GitlabSimpleRepositoryFile |
createRepositoryFile(GitlabProject project,
java.lang.String path,
java.lang.String branchName,
java.lang.String commitMsg,
java.lang.String content)
Creates a new file in the repository
|
GitlabSSHKey |
createSSHKey(java.lang.Integer targetUserId,
java.lang.String title,
java.lang.String key)
Create a new ssh key for the user
|
GitlabUser |
createUser(CreateUserRequest request)
Create a new user.
|
GitlabUser |
createUser(java.lang.String email,
java.lang.String password,
java.lang.String username,
java.lang.String fullName,
java.lang.String skypeId,
java.lang.String linkedIn,
java.lang.String twitter,
java.lang.String website_url,
java.lang.Integer projects_limit,
java.lang.String extern_uid,
java.lang.String extern_provider_name,
java.lang.String bio,
java.lang.Boolean isAdmin,
java.lang.Boolean can_create_group,
java.lang.Boolean skip_confirmation)
Create a new User
|
GitlabProject |
createUserProject(java.lang.Integer userId,
java.lang.String name)
Creates a Project for a specific User
|
GitlabProject |
createUserProject(java.lang.Integer userId,
java.lang.String name,
java.lang.String description,
java.lang.String defaultBranch,
java.lang.Boolean issuesEnabled,
java.lang.Boolean wallEnabled,
java.lang.Boolean mergeRequestsEnabled,
java.lang.Boolean wikiEnabled,
java.lang.Boolean snippetsEnabled,
java.lang.String visibility,
java.lang.String importUrl)
Deprecated.
|
void |
deleteAward(GitlabIssue issue,
GitlabAward award)
Delete an award for an issue
|
void |
deleteAward(GitlabIssue issue,
java.lang.Integer noteId,
GitlabAward award)
Delete an award for an issue note
|
void |
deleteAward(GitlabMergeRequest mergeRequest,
GitlabAward award)
Delete an award for a merge request
|
void |
deleteBranch(java.io.Serializable projectId,
java.lang.String branchName)
Delete Branch.
|
void |
deleteBuildVariable(java.lang.Integer projectId,
GitlabBuildVariable variable)
Deletes an existing variable.
|
void |
deleteBuildVariable(java.lang.Integer projectId,
java.lang.String key)
Deletes an existing variable.
|
void |
deleteDeployKey(java.lang.Integer targetProjectId,
java.lang.Integer targetKeyId)
Delete a deploy key for a project
|
void |
deleteGroup(java.lang.Integer groupId)
Delete a group.
|
void |
deleteGroupMember(GitlabGroup group,
GitlabUser user)
Delete a group member.
|
void |
deleteGroupMember(java.lang.Integer groupId,
java.lang.Integer userId)
Delete a group member.
|
boolean |
deleteJiraService(java.lang.Integer projectId)
Remove all previously JIRA settings from a project.
|
void |
deleteLabel(java.io.Serializable projectId,
GitlabLabel label)
Deletes an existing label.
|
void |
deleteLabel(java.io.Serializable projectId,
java.lang.String name)
Deletes an existing label.
|
void |
deleteNote(GitlabIssue issue,
GitlabNote noteToDelete)
Delete an Issue Note
|
void |
deleteNote(GitlabMergeRequest mergeRequest,
GitlabNote noteToDelete)
Delete a Merge Request Note
|
void |
deleteNote(java.io.Serializable projectId,
java.lang.Integer issueId,
GitlabNote noteToDelete)
Delete an Issue Note
|
void |
deleteProject(java.io.Serializable projectId)
Delete a Project.
|
void |
deleteProjectHook(GitlabProjectHook hook) |
void |
deleteProjectHook(GitlabProject project,
java.lang.String hookId) |
void |
deleteProjectMember(GitlabProject project,
GitlabUser user)
Delete a project team member.
|
void |
deleteProjectMember(java.lang.Integer projectId,
java.lang.Integer userId)
Delete a project team member.
|
void |
deleteRepositoryFile(GitlabProject project,
java.lang.String path,
java.lang.String branchName,
java.lang.String commitMsg)
Deletes an existing file in the repository
|
void |
deleteSharedProjectGroupLink(GitlabGroup group,
GitlabProject project)
Delete a shared project link within a group.
|
void |
deleteSharedProjectGroupLink(int groupId,
int projectId)
Delete a shared project link within a group.
|
void |
deleteSSHKey(java.lang.Integer targetUserId,
java.lang.Integer targetKeyId)
Delete user's ssh key
|
GitlabSystemHook |
deleteSystemHook(java.lang.Integer hookId)
Delete system hook
|
void |
deleteTag(GitlabProject project,
java.lang.String tagName)
Delete tag in specific project
|
void |
deleteTag(java.io.Serializable projectId,
java.lang.String tagName)
Delete tag in specific project
|
void |
deleteUser(java.lang.Integer targetUserId)
Delete a user
|
GitlabHTTPRequestor |
dispatch() |
GitlabIssue |
editIssue(int projectId,
int issueId,
int assigneeId,
int milestoneId,
java.lang.String labels,
java.lang.String description,
java.lang.String title,
GitlabIssue.Action action) |
GitlabProjectHook |
editProjectHook(GitlabProject project,
java.lang.String hookId,
java.lang.String url) |
java.util.List<GitlabUser> |
findUsers(java.lang.String emailOrUsername)
Finds users by email address or username.
|
java.util.List<GitlabAward> |
getAllAwards(GitlabIssue issue)
Get all awards for an issue
|
java.util.List<GitlabAward> |
getAllAwards(GitlabIssue issue,
java.lang.Integer noteId)
Get all awards for an issue note
|
java.util.List<GitlabAward> |
getAllAwards(GitlabMergeRequest mergeRequest)
Get all awards for a merge request
|
java.util.List<GitlabCommit> |
getAllCommits(java.io.Serializable projectId) |
java.util.List<GitlabCommit> |
getAllCommits(java.io.Serializable projectId,
Pagination pagination,
java.lang.String branchOrTag) |
java.util.List<GitlabCommit> |
getAllCommits(java.io.Serializable projectId,
java.lang.String branchOrTag) |
java.util.List<GitlabMergeRequest> |
getAllMergeRequests(GitlabProject project) |
java.util.List<GitlabNote> |
getAllNotes(GitlabMergeRequest mergeRequest) |
java.net.URL |
getAPIUrl(java.lang.String tailAPIUrl) |
GitlabAward |
getAward(GitlabIssue issue,
java.lang.Integer awardId)
Get a specific award for an issue
|
GitlabAward |
getAward(GitlabIssue issue,
java.lang.Integer noteId,
java.lang.Integer awardId)
Get a specific award for an issue note
|
GitlabAward |
getAward(GitlabMergeRequest mergeRequest,
java.lang.Integer awardId)
Get a specific award for a merge request
|
GitlabBranch |
getBranch(GitlabProject project,
java.lang.String branchName) |
GitlabBranch |
getBranch(java.io.Serializable projectId,
java.lang.String branchName) |
java.util.List<GitlabBranch> |
getBranches(GitlabProject project) |
java.util.List<GitlabBranch> |
getBranches(java.io.Serializable projectId) |
GitlabBuildVariable |
getBuildVariable(GitlabProject project,
java.lang.String key)
Gets build variable associated with a project and key.
|
GitlabBuildVariable |
getBuildVariable(java.lang.Integer projectId,
java.lang.String key)
Gets build variable associated with a project and key.
|
java.util.List<GitlabBuildVariable> |
getBuildVariables(GitlabProject project)
Gets build variables associated with a project.
|
java.util.List<GitlabBuildVariable> |
getBuildVariables(java.lang.Integer projectId)
Gets build variables associated with a project.
|
java.util.List<GitlabMergeRequest> |
getClosedMergeRequests(GitlabProject project) |
java.util.List<GitlabMergeRequest> |
getClosedMergeRequests(GitlabProject project,
Pagination pagination) |
java.util.List<GitlabMergeRequest> |
getClosedMergeRequests(java.io.Serializable projectId) |
java.util.List<GitlabMergeRequest> |
getClosedMergeRequests(java.io.Serializable projectId,
Pagination pagination) |
GitlabCommit |
getCommit(java.io.Serializable projectId,
java.lang.String commitHash) |
java.util.List<CommitComment> |
getCommitComments(java.lang.Integer projectId,
java.lang.String sha)
Get the comments of a commit
|
java.util.List<GitlabCommitDiff> |
getCommitDiffs(java.io.Serializable projectId,
java.lang.String commitHash) |
java.util.List<GitlabCommitDiff> |
getCommitDiffs(java.io.Serializable projectId,
java.lang.String commitHash,
Pagination pagination) |
java.util.List<GitlabCommit> |
getCommits(GitlabMergeRequest mergeRequest) |
java.util.List<GitlabCommit> |
getCommits(GitlabMergeRequest mergeRequest,
Pagination pagination) |
java.util.List<GitlabCommit> |
getCommits(java.io.Serializable projectId,
Pagination pagination,
java.lang.String branchOrTag) |
java.util.List<GitlabCommitStatus> |
getCommitStatuses(GitlabProject project,
java.lang.String commitHash) |
java.util.List<GitlabCommitStatus> |
getCommitStatuses(GitlabProject project,
java.lang.String commitHash,
Pagination pagination) |
GitlabSession |
getCurrentSession() |
java.util.List<GitlabSSHKey> |
getDeployKeys(java.lang.Integer targetProjectId)
Gets all deploy keys for a project
|
GitlabServiceEmailOnPush |
getEmailsOnPush(java.lang.Integer projectId)
Gets email-on-push service setup for a projectId.
|
byte[] |
getFileArchive(GitlabProject project)
Get an archive of the repository
|
GitlabGroup |
getGroup(java.lang.Integer groupId) |
GitlabGroup |
getGroup(java.lang.String path)
Get a group by path
|
java.util.List<GitlabGroupMember> |
getGroupMembers(GitlabGroup group)
Gets all members of a Group
|
java.util.List<GitlabGroupMember> |
getGroupMembers(java.lang.Integer groupId)
Gets all members of a Group
|
java.util.List<GitlabMilestone> |
getGroupMilestones(java.io.Serializable groupId) |
java.util.List<GitlabProject> |
getGroupProjects(GitlabGroup group)
Get all the projects for a group.
|
java.util.List<GitlabProject> |
getGroupProjects(java.lang.Integer groupId)
Get all the projects for a group.
|
java.util.List<GitlabGroup> |
getGroups() |
java.util.List<GitlabGroup> |
getGroupsViaSudo(java.lang.String username,
Pagination pagination) |
GitlabIssue |
getIssue(java.io.Serializable projectId,
java.lang.Integer issueId) |
java.util.List<GitlabIssue> |
getIssues(GitlabGroup group,
GitlabMilestone milestone) |
java.util.List<GitlabIssue> |
getIssues(GitlabProject project) |
java.util.List<GitlabIssue> |
getIssues(GitlabProject project,
GitlabMilestone milestone) |
java.util.List<GitlabIssue> |
getIssues(java.io.Serializable projectId) |
GitlabIssueTimeStats |
getIssueTimeStats(java.io.Serializable projectId,
java.lang.Integer issueId) |
GitlabServiceJira |
getJiraService(java.lang.Integer projectId)
Get JIRA service settings for a project.
|
byte[] |
getJobArtifact(GitlabProject project,
GitlabJob job)
Get build artifacts of a project build
|
byte[] |
getJobArtifact(java.lang.Integer projectId,
java.lang.Integer jobId)
Get build artifacts of a project build
|
byte[] |
getJobTrace(GitlabProject project,
GitlabJob job)
Get build trace of a project build
|
byte[] |
getJobTrace(java.lang.Integer projectId,
java.lang.Integer jobId)
Get build trace of a project build
|
java.util.List<GitlabLabel> |
getLabels(GitlabProject project)
Gets labels associated with a project.
|
java.util.List<GitlabLabel> |
getLabels(java.io.Serializable projectId)
Gets labels associated with a project.
|
java.util.List<GitlabCommit> |
getLastCommits(java.io.Serializable projectId) |
java.util.List<GitlabCommit> |
getLastCommits(java.io.Serializable projectId,
java.lang.String branchOrTag) |
java.util.List<GitlabProject> |
getMembershipProjects()
Get a list of projects that the authenticated user is a member of.
|
java.util.List<GitlabMergeRequest> |
getMergedMergeRequests(GitlabProject project) |
java.util.List<GitlabMergeRequest> |
getMergedMergeRequests(GitlabProject project,
Pagination pagination) |
java.util.List<GitlabMergeRequest> |
getMergedMergeRequests(java.io.Serializable projectId) |
java.util.List<GitlabMergeRequest> |
getMergedMergeRequests(java.io.Serializable projectId,
Pagination pagination) |
GitlabMergeRequest |
getMergeRequest(GitlabProject project,
java.lang.Integer mergeRequestId) |
GitlabMergeRequestApprovals |
getMergeRequestApprovals(GitlabMergeRequest mr)
Get information about the approvals present and required for a merge request
EE only.
|
GitlabMergeRequest |
getMergeRequestByIid(java.io.Serializable projectId,
java.lang.Integer mergeRequestIid)
Return Merge Request.
|
GitlabMergeRequest |
getMergeRequestChanges(java.io.Serializable projectId,
java.lang.Integer mergeRequestId)
Return a Merge Request including its changes.
|
java.util.List<GitlabMergeRequest> |
getMergeRequests(GitlabProject project) |
java.util.List<GitlabMergeRequest> |
getMergeRequests(GitlabProject project,
Pagination pagination) |
java.util.List<GitlabMergeRequest> |
getMergeRequests(java.io.Serializable projectId) |
java.util.List<GitlabMergeRequest> |
getMergeRequests(java.io.Serializable projectId,
Pagination pagination) |
java.util.List<GitlabMergeRequest> |
getMergeRequestsWithStatus(GitlabProject project,
java.lang.String status) |
java.util.List<GitlabMergeRequest> |
getMergeRequestsWithStatus(GitlabProject project,
java.lang.String state,
Pagination pagination) |
java.util.List<GitlabMergeRequest> |
getMergeRequestsWithStatus(java.io.Serializable projectId,
java.lang.String status) |
java.util.List<GitlabMergeRequest> |
getMergeRequestsWithStatus(java.io.Serializable projectId,
java.lang.String state,
Pagination pagination) |
java.util.List<GitlabMilestone> |
getMilestones(GitlabGroup group) |
java.util.List<GitlabMilestone> |
getMilestones(GitlabProject project) |
java.util.List<GitlabProjectMember> |
getNamespaceMembers(GitlabNamespace namespace)
This will fail, if the given namespace is a user and not a group
|
java.util.List<GitlabProjectMember> |
getNamespaceMembers(java.lang.Integer namespaceId)
This will fail, if the given namespace is a user and not a group
|
java.util.List<GitlabNamespace> |
getNamespaces()
Get a list of the namespaces of the authenticated user.
|
GitlabNote |
getNote(GitlabIssue issue,
java.lang.Integer noteId) |
GitlabNote |
getNote(GitlabMergeRequest mergeRequest,
java.lang.Integer noteId)
Get a Note from a Merge Request.
|
java.util.List<GitlabNote> |
getNotes(GitlabIssue issue) |
java.util.List<GitlabNote> |
getNotes(GitlabMergeRequest mergeRequest) |
java.util.List<GitlabMergeRequest> |
getOpenMergeRequests(GitlabProject project) |
java.util.List<GitlabMergeRequest> |
getOpenMergeRequests(GitlabProject project,
Pagination pagination) |
java.util.List<GitlabMergeRequest> |
getOpenMergeRequests(java.io.Serializable projectId) |
java.util.List<GitlabMergeRequest> |
getOpenMergeRequests(java.io.Serializable projectId,
Pagination pagination) |
java.util.List<GitlabProject> |
getOwnedProjects()
Get a list of projects owned by the authenticated user.
|
java.util.List<GitlabTrigger> |
getPipelineTriggers(GitlabProject project)
Returns the list of build triggers for a project.
|
GitlabProject |
getProject(java.io.Serializable projectId) |
GitlabProject |
getProject(java.lang.String namespace,
java.lang.String projectName)
use namespace & project name to get project
|
GitlabProjectHook |
getProjectHook(GitlabProject project,
java.lang.String hookId) |
java.util.List<GitlabProjectHook> |
getProjectHooks(GitlabProject project) |
java.util.List<GitlabProjectHook> |
getProjectHooks(java.io.Serializable projectId) |
GitlabJob |
getProjectJob(java.lang.Integer projectId,
java.lang.Integer jobId)
Gets a build for a project
|
java.util.List<GitlabJob> |
getProjectJobs(GitlabProject project)
Gets a list of a project's jobs in Gitlab
|
java.util.List<GitlabJob> |
getProjectJobs(java.lang.Integer projectId)
Gets a list of a project's jobs in Gitlab
|
java.lang.String |
getProjectJson(java.io.Serializable projectId) |
java.lang.String |
getProjectJson(java.lang.String namespace,
java.lang.String projectName) |
java.util.List<GitlabProjectMember> |
getProjectMembers(GitlabProject project) |
java.util.List<GitlabProjectMember> |
getProjectMembers(GitlabProject project,
Pagination pagination) |
java.util.List<GitlabProjectMember> |
getProjectMembers(java.io.Serializable projectId) |
java.util.List<GitlabProjectMember> |
getProjectMembers(java.io.Serializable projectId,
Pagination pagination) |
java.util.List<GitlabMilestone> |
getProjectMilestones(java.io.Serializable projectId) |
java.util.List<GitlabProject> |
getProjects()
Get a list of projects accessible by the authenticated user.
|
java.util.List<GitlabProject> |
getProjectsViaSudo(GitlabUser user)
Get a list of projects accessible by the authenticated user.
|
java.net.Proxy |
getProxy() |
byte[] |
getRawBlobContent(GitlabProject project,
java.lang.String sha)
Get the raw file contents for a blob by blob SHA.
|
byte[] |
getRawFileContent(GitlabProject project,
java.lang.String sha,
java.lang.String filepath)
Get raw file content
|
byte[] |
getRawFileContent(java.lang.Integer projectId,
java.lang.String sha,
java.lang.String filepath)
Get raw file content
|
GitlabRepositoryFile |
getRepositoryFile(GitlabProject project,
java.lang.String path,
java.lang.String ref) |
java.util.List<GitlabRepositoryTree> |
getRepositoryTree(GitlabProject project,
java.lang.String path,
java.lang.String ref,
boolean recursive)
Get an archive of the repository
|
int |
getRequestTimeout() |
GitlabSSHKey |
getSSHKey(java.lang.Integer keyId)
Get key with user information by ID of an SSH key.
|
java.util.List<GitlabSSHKey> |
getSSHKeys(java.lang.Integer targetUserId)
Gets all ssh keys for a user
|
java.util.List<GitlabProject> |
getStarredProjects()
Get a list of projects starred by the authenticated user.
|
java.util.List<GitlabSystemHook> |
getSystemHooks()
Get list of system hooks
|
java.util.List<GitlabTag> |
getTags(GitlabProject project)
Get a list of tags in specific project
|
java.util.List<GitlabTag> |
getTags(java.io.Serializable projectId)
Get a list of tags in specific project
|
java.net.URL |
getUrl(java.lang.String tailAPIUrl) |
GitlabUser |
getUser()
Return API User
|
GitlabUser |
getUser(java.lang.Integer userId) |
java.lang.String |
getUserAgent() |
java.util.List<GitlabUser> |
getUsers() |
GitlabUser |
getUserViaSudo(java.lang.String username) |
GitlabVersion |
getVersion() |
GitlabAPI |
ignoreCertificateErrors(boolean ignoreCertificateErrors) |
boolean |
isIgnoreCertificateErrors() |
GitlabIssue |
moveIssue(java.lang.Integer projectId,
java.lang.Integer issueId,
java.lang.Integer toProjectId) |
void |
protectBranch(GitlabProject project,
java.lang.String branchName) |
void |
protectBranchWithDeveloperOptions(GitlabProject project,
java.lang.String branchName,
boolean developers_can_push,
boolean developers_can_merge) |
GitlabAPI |
proxy(java.net.Proxy proxy) |
GitlabHTTPRequestor |
retrieve() |
java.util.List<GitlabProject> |
searchProjects(java.lang.String search)
Get a list of projects accessible by the authenticated user by search.
|
GitlabAPI |
setRequestTimeout(int requestTimeout) |
void |
setUserAgent(java.lang.String userAgent)
Set the User-Agent header for the requests.
|
void |
shareProjectWithGroup(GitlabAccessLevel accessLevel,
java.lang.String expiration,
GitlabGroup group,
GitlabProject project)
Share a project with a group.
|
void |
testSystemHook(java.lang.Integer hookId)
Test system hook
|
void |
transfer(java.lang.Integer namespaceId,
java.lang.Integer projectId)
Transfer a project to the given namespace
|
void |
unblockUser(java.lang.Integer targetUserId)
Unblock a user
|
void |
unprotectBranch(GitlabProject project,
java.lang.String branchName) |
GitlabBuildVariable |
updateBuildVariable(java.lang.Integer projectId,
java.lang.String key,
java.lang.String newValue)
Updates an existing variable.
|
boolean |
updateEmailsOnPush(java.lang.Integer projectId,
java.lang.String emailAddress)
Update recipients for email-on-push service for a projectId.
|
GitlabLabel |
updateLabel(java.io.Serializable projectId,
java.lang.String name,
java.lang.String newName,
java.lang.String newColor)
Updates an existing label.
|
GitlabMergeRequest |
updateMergeRequest(java.io.Serializable projectId,
java.lang.Integer mergeRequestId,
java.lang.String targetBranch,
java.lang.Integer assigneeId,
java.lang.String title,
java.lang.String description,
java.lang.String stateEvent,
java.lang.String labels)
Updates a Merge Request
|
GitlabMilestone |
updateMilestone(GitlabMilestone edited,
java.lang.String stateEvent)
Updates an existing project milestone.
|
GitlabMilestone |
updateMilestone(java.io.Serializable projectId,
GitlabMilestone edited,
java.lang.String stateEvent)
Updates an existing project milestone.
|
GitlabMilestone |
updateMilestone(java.io.Serializable projectId,
int milestoneId,
java.lang.String title,
java.lang.String description,
java.util.Date dueDate,
java.util.Date startDate,
java.lang.String stateEvent)
Updates an existing project milestone.
|
GitlabNote |
updateNote(GitlabMergeRequest mergeRequest,
java.lang.Integer noteId,
java.lang.String body)
Update a Merge Request Note
|
GitlabProject |
updateProject(java.lang.Integer projectId,
java.lang.String name,
java.lang.String description,
java.lang.String defaultBranch,
java.lang.Boolean issuesEnabled,
java.lang.Boolean wallEnabled,
java.lang.Boolean mergeRequestsEnabled,
java.lang.Boolean wikiEnabled,
java.lang.Boolean snippetsEnabled,
java.lang.String visibility)
Deprecated.
|
GitlabSimpleRepositoryFile |
updateRepositoryFile(GitlabProject project,
java.lang.String path,
java.lang.String branchName,
java.lang.String commitMsg,
java.lang.String content)
Updates the content of an existing file in the repository
|
GitlabUser |
updateUser(java.lang.Integer targetUserId,
java.lang.String email,
java.lang.String password,
java.lang.String username,
java.lang.String fullName,
java.lang.String skypeId,
java.lang.String linkedIn,
java.lang.String twitter,
java.lang.String website_url,
java.lang.Integer projects_limit,
java.lang.String extern_uid,
java.lang.String extern_provider_name,
java.lang.String bio,
java.lang.Boolean isAdmin,
java.lang.Boolean can_create_group)
Update a user
|
GitlabUpload |
uploadFile(GitlabProject project,
java.io.File file)
Uploads a file to a project
|
public static GitlabSession connect(java.lang.String hostUrl, java.lang.String username, java.lang.String password) throws java.io.IOException
java.io.IOException
public static GitlabAPI connect(java.lang.String hostUrl, java.lang.String apiToken)
public static GitlabAPI connect(java.lang.String hostUrl, java.lang.String apiToken, TokenType tokenType)
public static GitlabAPI connect(java.lang.String hostUrl, java.lang.String apiToken, TokenType tokenType, AuthMethod method)
public GitlabAPI ignoreCertificateErrors(boolean ignoreCertificateErrors)
public GitlabAPI proxy(java.net.Proxy proxy)
public int getRequestTimeout()
public GitlabAPI setRequestTimeout(int requestTimeout)
public GitlabHTTPRequestor retrieve()
public GitlabHTTPRequestor dispatch()
public boolean isIgnoreCertificateErrors()
public java.net.Proxy getProxy()
public java.net.URL getAPIUrl(java.lang.String tailAPIUrl) throws java.io.IOException
java.io.IOException
public java.net.URL getUrl(java.lang.String tailAPIUrl) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabUser> getUsers() throws java.io.IOException
java.io.IOException
public java.util.List<GitlabUser> findUsers(java.lang.String emailOrUsername) throws java.io.IOException
emailOrUsername
- Some portion of the email address or usernamejava.io.IOException
public GitlabUser getUser() throws java.io.IOException
java.io.IOException
public GitlabUser getUser(java.lang.Integer userId) throws java.io.IOException
java.io.IOException
public GitlabUser getUserViaSudo(java.lang.String username) throws java.io.IOException
java.io.IOException
public GitlabUser createUser(java.lang.String email, java.lang.String password, java.lang.String username, java.lang.String fullName, java.lang.String skypeId, java.lang.String linkedIn, java.lang.String twitter, java.lang.String website_url, java.lang.Integer projects_limit, java.lang.String extern_uid, java.lang.String extern_provider_name, java.lang.String bio, java.lang.Boolean isAdmin, java.lang.Boolean can_create_group, java.lang.Boolean skip_confirmation) throws java.io.IOException
email
- User emailpassword
- Passwordusername
- User namefullName
- Full nameskypeId
- Skype IdlinkedIn
- LinkedIntwitter
- Twitterwebsite_url
- Website URLprojects_limit
- Projects limitextern_uid
- External User IDextern_provider_name
- External Provider Namebio
- BioisAdmin
- Is Admincan_create_group
- Can Create Groupskip_confirmation
- Skip Confirmationjava.io.IOException
- on gitlab api call errorpublic GitlabUser createUser(CreateUserRequest request) throws java.io.IOException
request
- An object that represents the parameters for the request.GitlabUser
java.io.IOException
- on gitlab api call errorpublic GitlabUser updateUser(java.lang.Integer targetUserId, java.lang.String email, java.lang.String password, java.lang.String username, java.lang.String fullName, java.lang.String skypeId, java.lang.String linkedIn, java.lang.String twitter, java.lang.String website_url, java.lang.Integer projects_limit, java.lang.String extern_uid, java.lang.String extern_provider_name, java.lang.String bio, java.lang.Boolean isAdmin, java.lang.Boolean can_create_group) throws java.io.IOException
targetUserId
- User IDemail
- User emailpassword
- Passwordusername
- User namefullName
- Full nameskypeId
- Skype IdlinkedIn
- LinkedIntwitter
- Twitterwebsite_url
- Website URLprojects_limit
- Projects limitextern_uid
- External User IDextern_provider_name
- External Provider Namebio
- BioisAdmin
- Is Admincan_create_group
- Can Create Groupjava.io.IOException
- on gitlab api call errorpublic void blockUser(java.lang.Integer targetUserId) throws java.io.IOException
targetUserId
- The id of the Gitlab userjava.io.IOException
- on gitlab api call errorpublic void unblockUser(java.lang.Integer targetUserId) throws java.io.IOException
targetUserId
- The id of the Gitlab userjava.io.IOException
- on gitlab api call errorpublic GitlabSSHKey createSSHKey(java.lang.Integer targetUserId, java.lang.String title, java.lang.String key) throws java.io.IOException
targetUserId
- The id of the Gitlab usertitle
- The title of the ssh keykey
- The public keyjava.io.IOException
- on gitlab api call errorpublic void deleteSSHKey(java.lang.Integer targetUserId, java.lang.Integer targetKeyId) throws java.io.IOException
targetUserId
- The id of the Gitlab usertargetKeyId
- The id of the Gitlab ssh keyjava.io.IOException
- on gitlab api call errorpublic java.util.List<GitlabSSHKey> getSSHKeys(java.lang.Integer targetUserId) throws java.io.IOException
targetUserId
- The id of the GitLab Userjava.io.IOException
- on gitlab api call errorpublic GitlabSSHKey getSSHKey(java.lang.Integer keyId) throws java.io.IOException
keyId
- The ID of an SSH keyjava.io.IOException
- on gitlab api call errorpublic void deleteUser(java.lang.Integer targetUserId) throws java.io.IOException
targetUserId
- The target User IDjava.io.IOException
- on gitlab api call errorpublic GitlabGroup getGroup(java.lang.Integer groupId) throws java.io.IOException
java.io.IOException
public GitlabGroup getGroup(java.lang.String path) throws java.io.IOException
path
- Path of the groupjava.io.IOException
public java.util.List<GitlabGroup> getGroups() throws java.io.IOException
java.io.IOException
public java.util.List<GitlabGroup> getGroupsViaSudo(java.lang.String username, Pagination pagination) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabProject> getGroupProjects(GitlabGroup group) throws java.io.IOException
group
- the target groupjava.io.IOException
public java.util.List<GitlabProject> getGroupProjects(java.lang.Integer groupId) throws java.io.IOException
groupId
- the target group's id.java.io.IOException
public java.util.List<GitlabGroupMember> getGroupMembers(GitlabGroup group) throws java.io.IOException
group
- The GitLab Groupjava.io.IOException
- on gitlab api call errorpublic java.util.List<GitlabGroupMember> getGroupMembers(java.lang.Integer groupId) throws java.io.IOException
groupId
- The id of the GitLab Groupjava.io.IOException
- on gitlab api call errorpublic GitlabGroup createGroup(java.lang.String name) throws java.io.IOException
name
- The name of the group. The
name will also be used as the path
of the group.java.io.IOException
- on gitlab api call errorpublic GitlabGroup createGroup(java.lang.String name, java.lang.String path) throws java.io.IOException
name
- The name of the grouppath
- The path for the groupjava.io.IOException
- on gitlab api call errorpublic GitlabGroup createGroupViaSudo(java.lang.String name, java.lang.String path, GitlabUser sudoUser) throws java.io.IOException
name
- The name of the grouppath
- The path for the groupsudoUser
- The user to create the group on behalf ofjava.io.IOException
- on gitlab api call errorpublic GitlabGroup createGroup(java.lang.String name, java.lang.String path, java.lang.String ldapCn, GitlabAccessLevel ldapAccess) throws java.io.IOException
name
- The name of the grouppath
- The path for the groupldapCn
- LDAP Group Name to sync with, null otherwiseldapAccess
- Access level for LDAP group members, null otherwisejava.io.IOException
- on gitlab api call errorpublic GitlabGroup createGroup(CreateGroupRequest request, GitlabUser sudoUser) throws java.io.IOException
request
- An object that represents the parameters for the request.sudoUser
- The user for whom we're creating the groupjava.io.IOException
- on gitlab api call errorpublic GitlabGroup createGroup(java.lang.String name, java.lang.String path, java.lang.String ldapCn, GitlabAccessLevel ldapAccess, GitlabUser sudoUser) throws java.io.IOException
name
- The name of the grouppath
- The path for the groupldapCn
- LDAP Group Name to sync with, null otherwiseldapAccess
- Access level for LDAP group members, null otherwisesudoUser
- The user to create the group on behalf ofjava.io.IOException
- on gitlab api call errorpublic GitlabGroup createGroup(java.lang.String name, java.lang.String path, java.lang.String ldapCn, GitlabAccessLevel ldapAccess, GitlabUser sudoUser, java.lang.Integer parentId) throws java.io.IOException
name
- The name of the grouppath
- The path for the groupldapCn
- LDAP Group Name to sync with, null otherwiseldapAccess
- Access level for LDAP group members, null otherwisesudoUser
- The user to create the group on behalf ofparentId
- The id of a parent group; the new group will be its subgroupjava.io.IOException
- on gitlab api call errorpublic GitlabGroupMember addGroupMember(GitlabGroup group, GitlabUser user, GitlabAccessLevel accessLevel) throws java.io.IOException
group
- the GitlabGroupuser
- the GitlabUseraccessLevel
- the GitlabAccessLeveljava.io.IOException
- on gitlab api call errorpublic GitlabGroupMember addGroupMember(java.lang.Integer groupId, java.lang.Integer userId, GitlabAccessLevel accessLevel) throws java.io.IOException
groupId
- the group iduserId
- the user idaccessLevel
- the GitlabAccessLeveljava.io.IOException
- on gitlab api call errorpublic void deleteGroupMember(GitlabGroup group, GitlabUser user) throws java.io.IOException
group
- the GitlabGroupuser
- the GitlabUserjava.io.IOException
- on gitlab api call errorpublic void deleteGroupMember(java.lang.Integer groupId, java.lang.Integer userId) throws java.io.IOException
groupId
- the group iduserId
- the user idjava.io.IOException
- on gitlab api call errorpublic void deleteGroup(java.lang.Integer groupId) throws java.io.IOException
groupId
- the group idjava.io.IOException
- on gitlab api call errorpublic GitlabProject getProject(java.io.Serializable projectId) throws java.io.IOException
java.io.IOException
public GitlabProject getProject(java.lang.String namespace, java.lang.String projectName) throws java.io.IOException
java.io.IOException
public java.lang.String getProjectJson(java.io.Serializable projectId) throws java.io.IOException
java.io.IOException
public java.lang.String getProjectJson(java.lang.String namespace, java.lang.String projectName) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabProject> getProjects() throws java.io.IOException
java.io.IOException
public java.util.List<GitlabProject> getOwnedProjects() throws java.io.IOException
java.io.IOException
public java.util.List<GitlabProject> getMembershipProjects() throws java.io.IOException
java.io.IOException
public java.util.List<GitlabProject> getStarredProjects() throws java.io.IOException
java.io.IOException
public java.util.List<GitlabProject> getProjectsViaSudo(GitlabUser user) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabNamespace> getNamespaces() throws java.io.IOException
java.io.IOException
public GitlabUpload uploadFile(GitlabProject project, java.io.File file) throws java.io.IOException
project
- file
- java.io.IOException
public java.util.List<GitlabJob> getProjectJobs(GitlabProject project) throws java.io.IOException
project
- the projectjava.io.IOException
public java.util.List<GitlabJob> getProjectJobs(java.lang.Integer projectId) throws java.io.IOException
projectId
- the project idjava.io.IOException
public GitlabJob getProjectJob(java.lang.Integer projectId, java.lang.Integer jobId) throws java.io.IOException
projectId
- the project idjobId
- the build idjava.io.IOException
public byte[] getJobArtifact(GitlabProject project, GitlabJob job) throws java.io.IOException
project
- The Projectjob
- The buildjava.io.IOException
- on gitlab api call errorpublic byte[] getJobArtifact(java.lang.Integer projectId, java.lang.Integer jobId) throws java.io.IOException
projectId
- The Project's IdjobId
- The build's Idjava.io.IOException
- on gitlab api call errorpublic byte[] getJobTrace(GitlabProject project, GitlabJob job) throws java.io.IOException
project
- The Projectjob
- The buildjava.io.IOException
- on gitlab api call errorpublic byte[] getJobTrace(java.lang.Integer projectId, java.lang.Integer jobId) throws java.io.IOException
projectId
- The Project's IdjobId
- The build's Idjava.io.IOException
- on gitlab api call errorpublic GitlabProject createProject(GitlabProject project) throws java.io.IOException
project
- The project to createjava.io.IOException
- on gitlab api call errorpublic GitlabProject createProject(java.lang.String name) throws java.io.IOException
name
- The name of the projectjava.io.IOException
- on gitlab api call errorpublic GitlabProject createProjectForGroup(java.lang.String name, GitlabGroup group) throws java.io.IOException
name
- The name of the projectgroup
- The group for which the project should be cratedjava.io.IOException
- on gitlab api call errorpublic GitlabProject createProjectForGroup(java.lang.String name, GitlabGroup group, java.lang.String description) throws java.io.IOException
name
- The name of the projectgroup
- The group for which the project should be crateddescription
- The project descriptionjava.io.IOException
- on gitlab api call errorpublic GitlabProject createProjectForGroup(java.lang.String name, GitlabGroup group, java.lang.String description, java.lang.String visibility) throws java.io.IOException
name
- The name of the projectgroup
- The group for which the project should be crateddescription
- The project descriptionvisibility
- The project visibility level (private: 0, internal: 10, public: 20)java.io.IOException
- on gitlab api call error@Deprecated public GitlabProject createProject(java.lang.String name, java.lang.Integer namespaceId, java.lang.String description, java.lang.Boolean issuesEnabled, java.lang.Boolean wallEnabled, java.lang.Boolean mergeRequestsEnabled, java.lang.Boolean wikiEnabled, java.lang.Boolean snippetsEnabled, java.lang.Boolean publik, java.lang.String visibility, java.lang.String importUrl) throws java.io.IOException
name
- The name of the projectnamespaceId
- The Namespace for the new project, otherwise null indicates to use the GitLab default (user)description
- A description for the project, null otherwiseissuesEnabled
- Whether Issues should be enabled, otherwise null indicates to use GitLab defaultwallEnabled
- Whether The Wall should be enabled, otherwise null indicates to use GitLab defaultmergeRequestsEnabled
- Whether Merge Requests should be enabled, otherwise null indicates to use GitLab defaultwikiEnabled
- Whether a Wiki should be enabled, otherwise null indicates to use GitLab defaultsnippetsEnabled
- Whether Snippets should be enabled, otherwise null indicates to use GitLab defaultvisibility
- The visibility level of the project, otherwise null indicates to use GitLab defaultimportUrl
- The Import URL for the project, otherwise nulljava.io.IOException
- on gitlab api call errorpublic GitlabProject createUserProject(java.lang.Integer userId, java.lang.String name) throws java.io.IOException
userId
- The id of the user to create the project forname
- The name of the projectjava.io.IOException
- on gitlab api call error@Deprecated public GitlabProject createUserProject(java.lang.Integer userId, java.lang.String name, java.lang.String description, java.lang.String defaultBranch, java.lang.Boolean issuesEnabled, java.lang.Boolean wallEnabled, java.lang.Boolean mergeRequestsEnabled, java.lang.Boolean wikiEnabled, java.lang.Boolean snippetsEnabled, java.lang.String visibility, java.lang.String importUrl) throws java.io.IOException
userId
- The id of the user to create the project forname
- The name of the projectdescription
- A description for the project, null otherwisedefaultBranch
- The default branch for the project, otherwise null indicates to use GitLab default (master)issuesEnabled
- Whether Issues should be enabled, otherwise null indicates to use GitLab defaultwallEnabled
- Whether The Wall should be enabled, otherwise null indicates to use GitLab defaultmergeRequestsEnabled
- Whether Merge Requests should be enabled, otherwise null indicates to use GitLab defaultwikiEnabled
- Whether a Wiki should be enabled, otherwise null indicates to use GitLab defaultsnippetsEnabled
- Whether Snippets should be enabled, otherwise null indicates to use GitLab defaultvisibility
- The visibility level of the project, otherwise null indicates to use GitLab defaultimportUrl
- The Import URL for the project, otherwise nulljava.io.IOException
- on gitlab api call errorpublic GitlabProject createFork(java.lang.String namespace, java.lang.Integer projectId) throws java.io.IOException
namespace
- The namespace of the forkprojectId
- ProjectId of the project forkedjava.io.IOException
- on gitlab api call errorpublic GitlabProject createFork(java.lang.String namespace, GitlabProject gitlabProject) throws java.io.IOException
namespace
- The namespace of the forkgitlabProject
- The project forkedjava.io.IOException
- on gitlab api call error@Deprecated public GitlabProject updateProject(java.lang.Integer projectId, java.lang.String name, java.lang.String description, java.lang.String defaultBranch, java.lang.Boolean issuesEnabled, java.lang.Boolean wallEnabled, java.lang.Boolean mergeRequestsEnabled, java.lang.Boolean wikiEnabled, java.lang.Boolean snippetsEnabled, java.lang.String visibility) throws java.io.IOException
projectId
- The id of the project to updatename
- The name of the projectdescription
- A description for the project, null otherwisedefaultBranch
- The branch displayed in the Gitlab UI when a user navigates to the projectissuesEnabled
- Whether Issues should be enabled, otherwise null indicates to use GitLab defaultwallEnabled
- Whether The Wall should be enabled, otherwise null indicates to use GitLab defaultmergeRequestsEnabled
- Whether Merge Requests should be enabled, otherwise null indicates to use GitLab defaultwikiEnabled
- Whether a Wiki should be enabled, otherwise null indicates to use GitLab defaultsnippetsEnabled
- Whether Snippets should be enabled, otherwise null indicates to use GitLab defaultvisibility
- The visibility level of the project, otherwise null indicates to use GitLab defaultjava.io.IOException
- on gitlab api call errorpublic void deleteProject(java.io.Serializable projectId) throws java.io.IOException
projectId
- The id of the project to deletejava.io.IOException
- on gitlab api call errorpublic java.util.List<GitlabMergeRequest> getOpenMergeRequests(java.io.Serializable projectId) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getOpenMergeRequests(java.io.Serializable projectId, Pagination pagination) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getOpenMergeRequests(GitlabProject project) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getOpenMergeRequests(GitlabProject project, Pagination pagination) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getMergedMergeRequests(java.io.Serializable projectId) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getMergedMergeRequests(java.io.Serializable projectId, Pagination pagination) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getMergedMergeRequests(GitlabProject project) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getMergedMergeRequests(GitlabProject project, Pagination pagination) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getClosedMergeRequests(java.io.Serializable projectId) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getClosedMergeRequests(java.io.Serializable projectId, Pagination pagination) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getClosedMergeRequests(GitlabProject project) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getClosedMergeRequests(GitlabProject project, Pagination pagination) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getMergeRequestsWithStatus(java.io.Serializable projectId, java.lang.String status) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getMergeRequestsWithStatus(java.io.Serializable projectId, java.lang.String state, Pagination pagination) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getMergeRequestsWithStatus(GitlabProject project, java.lang.String status) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getMergeRequestsWithStatus(GitlabProject project, java.lang.String state, Pagination pagination) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getMergeRequests(java.io.Serializable projectId) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getMergeRequests(java.io.Serializable projectId, Pagination pagination) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getMergeRequests(GitlabProject project) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getMergeRequests(GitlabProject project, Pagination pagination) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMergeRequest> getAllMergeRequests(GitlabProject project) throws java.io.IOException
java.io.IOException
public GitlabMergeRequestApprovals getMergeRequestApprovals(GitlabMergeRequest mr) throws java.io.IOException
java.io.IOException
public GitlabCommit cherryPick(java.io.Serializable projectId, java.lang.String sha, java.lang.String targetBranchName) throws java.io.IOException
projectId
- The id of the projectsha
- The sha of the committargetBranchName
- The branch on which the commit must be cherry-pickedjava.io.IOException
- on gitlab api call errorpublic GitlabCommit cherryPick(GitlabProject project, java.lang.String sha, java.lang.String targetBranchName) throws java.io.IOException
java.io.IOException
public GitlabMergeRequest getMergeRequestByIid(java.io.Serializable projectId, java.lang.Integer mergeRequestIid) throws java.io.IOException
projectId
- The id of the projectmergeRequestIid
- The iid of the merge requestjava.io.IOException
- on gitlab api call errorpublic GitlabMergeRequest getMergeRequestChanges(java.io.Serializable projectId, java.lang.Integer mergeRequestId) throws java.io.IOException
projectId
- The id of the projectmergeRequestId
- The id of the merge requestjava.io.IOException
- on gitlab api call errorpublic GitlabMergeRequest getMergeRequest(GitlabProject project, java.lang.Integer mergeRequestId) throws java.io.IOException
java.io.IOException
public GitlabMergeRequest createMergeRequest(java.io.Serializable projectId, java.lang.String sourceBranch, java.lang.String targetBranch, java.lang.Integer assigneeId, java.lang.String title) throws java.io.IOException
projectId
- sourceBranch
- targetBranch
- assigneeId
- title
- java.io.IOException
- on gitlab api call errorpublic GitlabMergeRequest updateMergeRequest(java.io.Serializable projectId, java.lang.Integer mergeRequestId, java.lang.String targetBranch, java.lang.Integer assigneeId, java.lang.String title, java.lang.String description, java.lang.String stateEvent, java.lang.String labels) throws java.io.IOException
projectId
- The id of the projectmergeRequestId
- The id of the merge request to updatetargetBranch
- The target branch of the merge request, otherwise null to leave it untouchedassigneeId
- The id of the assignee, otherwise null to leave it untouchedtitle
- The title of the merge request, otherwise null to leave it untoucheddescription
- The description of the merge request, otherwise null to leave it untouchedstateEvent
- The state (close|reopen|merge) of the merge request, otherwise null to leave it untouchedlabels
- A comma separated list of labels, otherwise null to leave it untouchedjava.io.IOException
- on gitlab api call errorpublic GitlabMergeRequest acceptMergeRequest(GitlabProject project, java.lang.Integer mergeRequestId, java.lang.String mergeCommitMessage) throws java.io.IOException
project
- The ProjectmergeRequestId
- Merge Request IDmergeCommitMessage
- optional merge commit message. Null if not setjava.io.IOException
- on gitlab api call errorpublic GitlabNote getNote(GitlabMergeRequest mergeRequest, java.lang.Integer noteId) throws java.io.IOException
mergeRequest
- The merge requestnoteId
- The id of the notejava.io.IOException
- on gitlab api call errorpublic java.util.List<GitlabNote> getNotes(GitlabMergeRequest mergeRequest) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabNote> getAllNotes(GitlabMergeRequest mergeRequest) throws java.io.IOException
java.io.IOException
public GitlabCommit getCommit(java.io.Serializable projectId, java.lang.String commitHash) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabCommit> getCommits(GitlabMergeRequest mergeRequest) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabCommit> getCommits(GitlabMergeRequest mergeRequest, Pagination pagination) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabCommit> getLastCommits(java.io.Serializable projectId) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabCommit> getLastCommits(java.io.Serializable projectId, java.lang.String branchOrTag) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabCommit> getCommits(java.io.Serializable projectId, Pagination pagination, java.lang.String branchOrTag) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabCommit> getAllCommits(java.io.Serializable projectId) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabCommit> getAllCommits(java.io.Serializable projectId, java.lang.String branchOrTag) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabCommit> getAllCommits(java.io.Serializable projectId, Pagination pagination, java.lang.String branchOrTag) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabCommitDiff> getCommitDiffs(java.io.Serializable projectId, java.lang.String commitHash) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabCommitDiff> getCommitDiffs(java.io.Serializable projectId, java.lang.String commitHash, Pagination pagination) throws java.io.IOException
java.io.IOException
public GitlabCommitComparison compareCommits(java.io.Serializable projectId, java.lang.String commitHash1, java.lang.String commitHash2) throws java.io.IOException
java.io.IOException
public GitlabCommitComparison compareCommits(java.io.Serializable projectId, java.lang.String commitHash1, java.lang.String commitHash2, Pagination pagination) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabCommitStatus> getCommitStatuses(GitlabProject project, java.lang.String commitHash) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabCommitStatus> getCommitStatuses(GitlabProject project, java.lang.String commitHash, Pagination pagination) throws java.io.IOException
java.io.IOException
public GitlabCommitStatus createCommitStatus(GitlabProject project, java.lang.String commitHash, java.lang.String state, java.lang.String ref, java.lang.String name, java.lang.String targetUrl, java.lang.String description) throws java.io.IOException
java.io.IOException
public byte[] getRawFileContent(GitlabProject project, java.lang.String sha, java.lang.String filepath) throws java.io.IOException
project
- The Projectsha
- The commit or branch namefilepath
- The path of the filejava.io.IOException
- on gitlab api call errorpublic byte[] getRawFileContent(java.lang.Integer projectId, java.lang.String sha, java.lang.String filepath) throws java.io.IOException
projectId
- The Projectsha
- The commit or branch namefilepath
- The path of the filejava.io.IOException
- on gitlab api call errorpublic byte[] getRawBlobContent(GitlabProject project, java.lang.String sha) throws java.io.IOException
project
- The Projectsha
- The commit or branch namejava.io.IOException
- on gitlab api call errorpublic byte[] getFileArchive(GitlabProject project) throws java.io.IOException
project
- The Projectjava.io.IOException
- on gitlab api call errorpublic java.util.List<GitlabRepositoryTree> getRepositoryTree(GitlabProject project, java.lang.String path, java.lang.String ref, boolean recursive) throws java.io.IOException
project
- The Projectpath
- The path inside the repository. Used to get content of subdirectories (optional)ref
- The name of a repository branch or tag or if not given the default branch (optional)java.io.IOException
- on gitlab api call errorpublic GitlabRepositoryFile getRepositoryFile(GitlabProject project, java.lang.String path, java.lang.String ref) throws java.io.IOException
java.io.IOException
public GitlabSimpleRepositoryFile createRepositoryFile(GitlabProject project, java.lang.String path, java.lang.String branchName, java.lang.String commitMsg, java.lang.String content) throws java.io.IOException
project
- The Projectpath
- The file path inside the repositorybranchName
- The name of a repository branchcommitMsg
- The commit messagecontent
- The base64 encoded content of the filejava.io.IOException
- on gitlab api call errorpublic GitlabSimpleRepositoryFile updateRepositoryFile(GitlabProject project, java.lang.String path, java.lang.String branchName, java.lang.String commitMsg, java.lang.String content) throws java.io.IOException
project
- The Projectpath
- The file path inside the repositorybranchName
- The name of a repository branchcommitMsg
- The commit messagecontent
- The base64 encoded content of the filejava.io.IOException
- on gitlab api call errorpublic void deleteRepositoryFile(GitlabProject project, java.lang.String path, java.lang.String branchName, java.lang.String commitMsg) throws java.io.IOException
project
- The Projectpath
- The file path inside the repositorybranchName
- The name of a repository branchcommitMsg
- The commit messagejava.io.IOException
- on gitlab api call errorpublic GitlabNote updateNote(GitlabMergeRequest mergeRequest, java.lang.Integer noteId, java.lang.String body) throws java.io.IOException
mergeRequest
- The merge requestnoteId
- The id of the notebody
- The content of the notejava.io.IOException
- on gitlab api call errorpublic GitlabNote createNote(GitlabMergeRequest mergeRequest, java.lang.String body) throws java.io.IOException
java.io.IOException
public void deleteNote(GitlabMergeRequest mergeRequest, GitlabNote noteToDelete) throws java.io.IOException
mergeRequest
- The merge requestnoteToDelete
- The note to deletejava.io.IOException
- on gitlab api call errorpublic java.util.List<GitlabBranch> getBranches(java.io.Serializable projectId) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabBranch> getBranches(GitlabProject project) throws java.io.IOException
java.io.IOException
public void createBranch(GitlabProject project, java.lang.String branchName, java.lang.String ref) throws java.io.IOException
project
- The gitlab projectbranchName
- The name of the branch to createref
- The branch name or commit SHA to create branch fromjava.io.IOException
- on gitlab api call errorpublic void createBranch(java.io.Serializable projectId, java.lang.String branchName, java.lang.String ref) throws java.io.IOException
projectId
- The id of the projectbranchName
- The name of the branch to createref
- The branch name or commit SHA to create branch fromjava.io.IOException
- on gitlab api call errorpublic void deleteBranch(java.io.Serializable projectId, java.lang.String branchName) throws java.io.IOException
projectId
- The id of the projectbranchName
- The name of the branch to deletejava.io.IOException
- on gitlab api call errorpublic GitlabBranch getBranch(java.io.Serializable projectId, java.lang.String branchName) throws java.io.IOException
java.io.IOException
public GitlabBranch getBranch(GitlabProject project, java.lang.String branchName) throws java.io.IOException
java.io.IOException
public void protectBranch(GitlabProject project, java.lang.String branchName) throws java.io.IOException
java.io.IOException
public void protectBranchWithDeveloperOptions(GitlabProject project, java.lang.String branchName, boolean developers_can_push, boolean developers_can_merge) throws java.io.IOException
java.io.IOException
public void unprotectBranch(GitlabProject project, java.lang.String branchName) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabProjectHook> getProjectHooks(java.io.Serializable projectId) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabProjectHook> getProjectHooks(GitlabProject project) throws java.io.IOException
java.io.IOException
public GitlabProjectHook getProjectHook(GitlabProject project, java.lang.String hookId) throws java.io.IOException
java.io.IOException
public GitlabProjectHook addProjectHook(GitlabProject project, java.lang.String url) throws java.io.IOException
java.io.IOException
public GitlabProjectHook addProjectHook(GitlabProject project, java.lang.String url, java.lang.String token) throws java.io.IOException
java.io.IOException
public GitlabProjectHook addProjectHook(java.io.Serializable projectId, java.lang.String url, boolean pushEvents, boolean issuesEvents, boolean mergeRequestEvents, boolean tagPushEvents, boolean sslVerification) throws java.io.IOException
java.io.IOException
public GitlabProjectHook editProjectHook(GitlabProject project, java.lang.String hookId, java.lang.String url) throws java.io.IOException
java.io.IOException
public void deleteProjectHook(GitlabProjectHook hook) throws java.io.IOException
java.io.IOException
public void deleteProjectHook(GitlabProject project, java.lang.String hookId) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabIssue> getIssues(GitlabProject project) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabIssue> getIssues(java.io.Serializable projectId) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabIssue> getIssues(GitlabProject project, GitlabMilestone milestone) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabIssue> getIssues(GitlabGroup group, GitlabMilestone milestone) throws java.io.IOException
java.io.IOException
public GitlabIssue getIssue(java.io.Serializable projectId, java.lang.Integer issueId) throws java.io.IOException
java.io.IOException
public GitlabIssueTimeStats getIssueTimeStats(java.io.Serializable projectId, java.lang.Integer issueId) throws java.io.IOException
java.io.IOException
public GitlabIssue createIssue(int projectId, int assigneeId, java.lang.Integer milestoneId, java.lang.String labels, java.lang.String description, java.lang.String title) throws java.io.IOException
java.io.IOException
public GitlabIssue moveIssue(java.lang.Integer projectId, java.lang.Integer issueId, java.lang.Integer toProjectId) throws java.io.IOException
java.io.IOException
public GitlabIssue editIssue(int projectId, int issueId, int assigneeId, int milestoneId, java.lang.String labels, java.lang.String description, java.lang.String title, GitlabIssue.Action action) throws java.io.IOException
java.io.IOException
public GitlabNote getNote(GitlabIssue issue, java.lang.Integer noteId) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabNote> getNotes(GitlabIssue issue) throws java.io.IOException
java.io.IOException
public GitlabNote createNote(java.io.Serializable projectId, java.lang.Integer issueId, java.lang.String message) throws java.io.IOException
java.io.IOException
public GitlabNote createNote(GitlabIssue issue, java.lang.String message) throws java.io.IOException
java.io.IOException
public void deleteNote(java.io.Serializable projectId, java.lang.Integer issueId, GitlabNote noteToDelete) throws java.io.IOException
projectId
- The project idissueId
- The issue idnoteToDelete
- The note to deletejava.io.IOException
- on gitlab api call errorpublic void deleteNote(GitlabIssue issue, GitlabNote noteToDelete) throws java.io.IOException
issue
- The issuenoteToDelete
- The note to deletejava.io.IOException
- on gitlab api call errorpublic java.util.List<GitlabLabel> getLabels(java.io.Serializable projectId) throws java.io.IOException
projectId
- The ID of the project.java.io.IOException
public java.util.List<GitlabLabel> getLabels(GitlabProject project) throws java.io.IOException
project
- The project associated with labels.java.io.IOException
public GitlabLabel createLabel(java.io.Serializable projectId, java.lang.String name, java.lang.String color) throws java.io.IOException
projectId
- The ID of the project containing the new label.name
- The name of the label.color
- The color of the label (eg #ff0000).java.io.IOException
public GitlabLabel createLabel(java.io.Serializable projectId, GitlabLabel label) throws java.io.IOException
projectId
- The ID of the project containing the label.label
- The label to create.java.io.IOException
public void deleteLabel(java.io.Serializable projectId, java.lang.String name) throws java.io.IOException
projectId
- The ID of the project containing the label.name
- The name of the label to delete.java.io.IOException
public void deleteLabel(java.io.Serializable projectId, GitlabLabel label) throws java.io.IOException
projectId
- The ID of the project containing the label.label
- The label to delete.java.io.IOException
public GitlabLabel updateLabel(java.io.Serializable projectId, java.lang.String name, java.lang.String newName, java.lang.String newColor) throws java.io.IOException
projectId
- The ID of the project containing the label.name
- The name of the label to update.newName
- The updated name.newColor
- The updated color.java.io.IOException
public java.util.List<GitlabMilestone> getMilestones(GitlabProject project) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMilestone> getMilestones(GitlabGroup group) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMilestone> getProjectMilestones(java.io.Serializable projectId) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabMilestone> getGroupMilestones(java.io.Serializable groupId) throws java.io.IOException
java.io.IOException
public GitlabMilestone createMilestone(java.io.Serializable projectId, java.lang.String title, java.lang.String description, java.util.Date dueDate, java.util.Date startDate) throws java.io.IOException
projectId
- The ID of the project.title
- The title of the milestone.description
- The description of the milestone. (Optional)dueDate
- The date the milestone is due. (Optional)startDate
- The start date of the milestone. (Optional)java.io.IOException
public GitlabMilestone createMilestone(java.io.Serializable projectId, GitlabMilestone milestone) throws java.io.IOException
projectId
- The ID of the project.milestone
- The milestone to create.java.io.IOException
public GitlabMilestone updateMilestone(java.io.Serializable projectId, int milestoneId, java.lang.String title, java.lang.String description, java.util.Date dueDate, java.util.Date startDate, java.lang.String stateEvent) throws java.io.IOException
projectId
- The ID of the project.milestoneId
- The ID of the milestone.title
- The title of the milestone. (Optional)description
- The description of the milestone. (Optional)dueDate
- The date the milestone is due. (Optional)startDate
- The start date of the milestone. (Optional)stateEvent
- A value used to update the state of the milestone.
(Optional) (activate | close)java.io.IOException
public GitlabMilestone updateMilestone(java.io.Serializable projectId, GitlabMilestone edited, java.lang.String stateEvent) throws java.io.IOException
projectId
- The ID of the project.edited
- The already edited milestone.stateEvent
- A value used to update the state of the milestone.
(Optional) (activate | close)java.io.IOException
public GitlabMilestone updateMilestone(GitlabMilestone edited, java.lang.String stateEvent) throws java.io.IOException
edited
- The already edited milestone.stateEvent
- A value used to update the state of the milestone.
(Optional) (activate | close)java.io.IOException
public GitlabProjectMember addProjectMember(GitlabProject project, GitlabUser user, GitlabAccessLevel accessLevel) throws java.io.IOException
project
- the GitlabProjectuser
- the GitlabUseraccessLevel
- the GitlabAccessLeveljava.io.IOException
- on gitlab api call errorpublic GitlabProjectMember addProjectMember(java.lang.Integer projectId, java.lang.Integer userId, GitlabAccessLevel accessLevel) throws java.io.IOException
projectId
- the project iduserId
- the user idaccessLevel
- the GitlabAccessLeveljava.io.IOException
- on gitlab api call errorpublic void deleteProjectMember(GitlabProject project, GitlabUser user) throws java.io.IOException
project
- the GitlabProjectuser
- the GitlabUserjava.io.IOException
- on gitlab api call errorpublic void deleteProjectMember(java.lang.Integer projectId, java.lang.Integer userId) throws java.io.IOException
projectId
- the project iduserId
- the user idjava.io.IOException
- on gitlab api call errorpublic java.util.List<GitlabProjectMember> getProjectMembers(GitlabProject project) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabProjectMember> getProjectMembers(GitlabProject project, Pagination pagination) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabProjectMember> getProjectMembers(java.io.Serializable projectId) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabProjectMember> getProjectMembers(java.io.Serializable projectId, Pagination pagination) throws java.io.IOException
java.io.IOException
public java.util.List<GitlabProjectMember> getNamespaceMembers(GitlabNamespace namespace) throws java.io.IOException
namespace
- The namespacejava.io.IOException
- on gitlab api call errorpublic java.util.List<GitlabProjectMember> getNamespaceMembers(java.lang.Integer namespaceId) throws java.io.IOException
namespaceId
- Namespace IDjava.io.IOException
- on gitlab api call errorpublic void transfer(java.lang.Integer namespaceId, java.lang.Integer projectId) throws java.io.IOException
namespaceId
- Namespace IDprojectId
- Project IDjava.io.IOException
- on gitlab api call errorpublic GitlabSSHKey createDeployKey(java.lang.Integer targetProjectId, java.lang.String title, java.lang.String key) throws java.io.IOException
targetProjectId
- The id of the Gitlab projecttitle
- The title of the ssh keykey
- The public keyjava.io.IOException
- on gitlab api call errorpublic GitlabSSHKey createPushDeployKey(java.lang.Integer targetProjectId, java.lang.String title, java.lang.String key) throws java.io.IOException
targetProjectId
- The id of the Gitlab projecttitle
- The title of the ssh keykey
- The public keyjava.io.IOException
- on gitlab api call errorpublic void deleteDeployKey(java.lang.Integer targetProjectId, java.lang.Integer targetKeyId) throws java.io.IOException
targetProjectId
- The id of the Gitlab projecttargetKeyId
- The id of the Gitlab ssh keyjava.io.IOException
- on gitlab api call errorpublic java.util.List<GitlabSSHKey> getDeployKeys(java.lang.Integer targetProjectId) throws java.io.IOException
targetProjectId
- The id of the Gitlab projectjava.io.IOException
- on gitlab api call errorpublic GitlabSession getCurrentSession() throws java.io.IOException
java.io.IOException
public java.util.List<GitlabSystemHook> getSystemHooks() throws java.io.IOException
java.io.IOException
- on gitlab api call errorpublic GitlabSystemHook addSystemHook(java.lang.String url) throws java.io.IOException
url
- System hook urljava.io.IOException
- on gitlab api call errorpublic void testSystemHook(java.lang.Integer hookId) throws java.io.IOException
java.io.IOException
- on gitlab api call errorpublic GitlabSystemHook deleteSystemHook(java.lang.Integer hookId) throws java.io.IOException
java.io.IOException
- on gitlab api call errorpublic CommitComment createCommitComment(java.lang.Integer projectId, java.lang.String sha, java.lang.String note, java.lang.String path, java.lang.String line, java.lang.String line_type) throws java.io.IOException
projectId
- (required) - The ID of a projectsha
- (required) - The name of a repository branch or tag or if not given the default branchnote
- (required) - Text of commentpath
- (optional) - The file pathline
- (optional) - The line numberline_type
- (optional) - The line type (new or old)java.io.IOException
- on gitlab api call errorpublic java.util.List<CommitComment> getCommitComments(java.lang.Integer projectId, java.lang.String sha) throws java.io.IOException
projectId
- (required) - The ID of a projectsha
- (required) - The name of a repository branch or tag or if not given the default branchjava.io.IOException
- on gitlab api call errorpublic java.util.List<GitlabTag> getTags(java.io.Serializable projectId) throws java.io.IOException
projectId
- java.io.IOException
- on gitlab api call errorpublic java.util.List<GitlabTag> getTags(GitlabProject project) throws java.io.IOException
project
- java.io.IOException
- on gitlab api call errorpublic GitlabTag addTag(java.io.Serializable projectId, java.lang.String tagName, java.lang.String ref, java.lang.String message, java.lang.String releaseDescription) throws java.io.IOException
projectId
- tagName
- ref
- message
- releaseDescription
- java.io.IOException
- on gitlab api call errorpublic GitlabTag addTag(GitlabProject project, java.lang.String tagName, java.lang.String ref, java.lang.String message, java.lang.String releaseDescription) throws java.io.IOException
project
- tagName
- ref
- message
- releaseDescription
- java.io.IOException
- on gitlab api call errorpublic void deleteTag(java.io.Serializable projectId, java.lang.String tagName) throws java.io.IOException
projectId
- tagName
- java.io.IOException
- on gitlab api call errorpublic void deleteTag(GitlabProject project, java.lang.String tagName) throws java.io.IOException
project
- tagName
- java.io.IOException
- on gitlab api call errorpublic java.util.List<GitlabAward> getAllAwards(GitlabMergeRequest mergeRequest) throws java.io.IOException
mergeRequest
- java.io.IOException
- on gitlab api call errorpublic GitlabAward getAward(GitlabMergeRequest mergeRequest, java.lang.Integer awardId) throws java.io.IOException
mergeRequest
- awardId
- java.io.IOException
- on gitlab api call errorpublic GitlabAward createAward(GitlabMergeRequest mergeRequest, java.lang.String awardName) throws java.io.IOException
mergeRequest
- awardName
- java.io.IOException
- on gitlab api call errorpublic void deleteAward(GitlabMergeRequest mergeRequest, GitlabAward award) throws java.io.IOException
mergeRequest
- award
- java.io.IOException
- on gitlab api call errorpublic java.util.List<GitlabAward> getAllAwards(GitlabIssue issue) throws java.io.IOException
issue
- java.io.IOException
- on gitlab api call errorpublic GitlabAward getAward(GitlabIssue issue, java.lang.Integer awardId) throws java.io.IOException
issue
- awardId
- java.io.IOException
- on gitlab api call errorpublic GitlabAward createAward(GitlabIssue issue, java.lang.String awardName) throws java.io.IOException
issue
- awardName
- java.io.IOException
- on gitlab api call errorpublic void deleteAward(GitlabIssue issue, GitlabAward award) throws java.io.IOException
issue
- award
- java.io.IOException
- on gitlab api call errorpublic java.util.List<GitlabAward> getAllAwards(GitlabIssue issue, java.lang.Integer noteId) throws java.io.IOException
issue
- noteId
- java.io.IOException
- on gitlab api call errorpublic GitlabAward getAward(GitlabIssue issue, java.lang.Integer noteId, java.lang.Integer awardId) throws java.io.IOException
issue
- noteId
- awardId
- java.io.IOException
- on gitlab api call errorpublic GitlabAward createAward(GitlabIssue issue, java.lang.Integer noteId, java.lang.String awardName) throws java.io.IOException
issue
- noteId
- awardName
- java.io.IOException
- on gitlab api call errorpublic void deleteAward(GitlabIssue issue, java.lang.Integer noteId, GitlabAward award) throws java.io.IOException
issue
- noteId
- award
- java.io.IOException
- on gitlab api call errorpublic java.util.List<GitlabBuildVariable> getBuildVariables(java.lang.Integer projectId) throws java.io.IOException
projectId
- The ID of the project.java.io.IOException
public java.util.List<GitlabBuildVariable> getBuildVariables(GitlabProject project) throws java.io.IOException
project
- The project associated with variables.java.io.IOException
public GitlabBuildVariable getBuildVariable(java.lang.Integer projectId, java.lang.String key) throws java.io.IOException
projectId
- The ID of the project.key
- The key of the variable.java.io.IOException
public GitlabBuildVariable getBuildVariable(GitlabProject project, java.lang.String key) throws java.io.IOException
project
- The project associated with the variable.java.io.IOException
public GitlabBuildVariable createBuildVariable(java.lang.Integer projectId, java.lang.String key, java.lang.String value) throws java.io.IOException
projectId
- The ID of the project containing the new variable.key
- The key of the variable.value
- The value of the variablejava.io.IOException
public GitlabBuildVariable createBuildVariable(java.lang.Integer projectId, GitlabBuildVariable variable) throws java.io.IOException
projectId
- The ID of the project containing the variable.variable
- The variable to create.java.io.IOException
public void deleteBuildVariable(java.lang.Integer projectId, java.lang.String key) throws java.io.IOException
projectId
- The ID of the project containing the variable.key
- The key of the variable to delete.java.io.IOException
public void deleteBuildVariable(java.lang.Integer projectId, GitlabBuildVariable variable) throws java.io.IOException
projectId
- The ID of the project containing the variable.variable
- The variable to delete.java.io.IOException
public GitlabBuildVariable updateBuildVariable(java.lang.Integer projectId, java.lang.String key, java.lang.String newValue) throws java.io.IOException
projectId
- The ID of the project containing the variable.key
- The key of the variable to update.newValue
- The updated value.java.io.IOException
public java.util.List<GitlabTrigger> getPipelineTriggers(GitlabProject project) throws java.io.IOException
project
- the projectjava.lang.IllegalStateException
- if jobs are not enabled for the projectjava.io.IOException
public GitlabServiceEmailOnPush getEmailsOnPush(java.lang.Integer projectId) throws java.io.IOException
projectId
- The ID of the project containing the variable.java.io.IOException
public boolean updateEmailsOnPush(java.lang.Integer projectId, java.lang.String emailAddress) throws java.io.IOException
projectId
- The ID of the project containing the variable.emailAddress
- The emailaddress of the recipent who is going to receive push notification.java.io.IOException
public GitlabServiceJira getJiraService(java.lang.Integer projectId) throws java.io.IOException
projectId
- The ID of the project containing the variable.java.io.IOException
public boolean deleteJiraService(java.lang.Integer projectId) throws java.io.IOException
projectId
- The ID of the project containing the variable.java.io.IOException
public boolean createOrEditJiraService(java.lang.Integer projectId, GitlabJiraProperties jiraPropties) throws java.io.IOException
projectId
- The ID of the project containing the variable.jiraPropties
- java.io.IOException
public java.util.List<GitlabProject> searchProjects(java.lang.String search) throws java.io.IOException
java.io.IOException
public void shareProjectWithGroup(GitlabAccessLevel accessLevel, java.lang.String expiration, GitlabGroup group, GitlabProject project) throws java.io.IOException
accessLevel
- The permissions level to grant the group.group
- The group to share with.project
- The project to be shared.expiration
- Share expiration date in ISO 8601 format: 2016-09-26 or null
.java.io.IOException
- on gitlab api call errorpublic void deleteSharedProjectGroupLink(GitlabGroup group, GitlabProject project) throws java.io.IOException
group
- The group.project
- The project.java.io.IOException
- on gitlab api call errorpublic void deleteSharedProjectGroupLink(int groupId, int projectId) throws java.io.IOException
groupId
- The group id number.projectId
- The project id number.java.io.IOException
- on gitlab api call errorpublic void setUserAgent(java.lang.String userAgent)
userAgent
- public java.lang.String getUserAgent()
public GitlabVersion getVersion() throws java.io.IOException
java.io.IOException
Copyright © 2017. All Rights Reserved.