Package | Description |
---|---|
org.gitlab4j.api | |
org.gitlab4j.api.systemhooks | |
org.gitlab4j.api.webhook |
Modifier and Type | Method and Description |
---|---|
protected GitLabApiException |
AbstractApi.handle(Exception thrown)
Wraps an exception in a GitLabApiException if needed.
|
Modifier and Type | Method and Description |
---|---|
MergeRequest |
MergeRequestApi.acceptMergeRequest(Integer projectId,
Integer mergeRequestIid)
Merge changes to the merge request.
|
MergeRequest |
MergeRequestApi.acceptMergeRequest(Integer projectId,
Integer mergeRequestIid,
String mergeCommitMessage,
Boolean shouldRemoveSourceBranch,
Boolean mergeWhenPipelineSucceeds)
Merge changes to the merge request.
|
MergeRequest |
MergeRequestApi.acceptMergeRequest(Integer projectId,
Integer mergeRequestIid,
String mergeCommitMessage,
Boolean shouldRemoveSourceBranch,
Boolean mergeWhenPipelineSucceeds,
String sha)
Merge changes to the merge request.
|
Milestone |
MilestonesApi.activateMilestone(Integer projectId,
Integer milestoneId)
Activate a milestone.
|
Comment |
CommitsApi.addComment(int projectId,
String sha,
String note)
Add a comment to a commit.
|
Comment |
CommitsApi.addComment(int projectId,
String sha,
String note,
String path,
Integer line,
Constants.LineType lineType)
Add a comment to a commit.
|
DeployKey |
DeployKeysApi.addDeployKey(Integer projectId,
String title,
String key,
Boolean canPush)
Creates a new deploy key for a project.
|
Group |
GroupApi.addGroup(String name,
String path)
Creates a new project group.
|
Group |
GroupApi.addGroup(String name,
String path,
String description,
Boolean membershipLock,
Boolean shareWithGroupLock,
Visibility visibility,
Boolean lfsEnabled,
Boolean requestAccessEnabled,
Integer parentId,
Integer sharedRunnersMinutesLimit)
Deprecated.
Will be removed in version 5.0, replaced by
GroupApi.addGroup(String, String, String, Visibility,
Boolean, Boolean, Integer) |
Group |
GroupApi.addGroup(String name,
String path,
String description,
Visibility visibility,
Boolean lfsEnabled,
Boolean requestAccessEnabled,
Integer parentId)
Creates a new project group.
|
ProjectHook |
ProjectApi.addHook(Integer projectId,
String url,
boolean doPushEvents,
boolean doIssuesEvents,
boolean doMergeRequestsEvents)
Adds a hook to project.
|
ProjectHook |
ProjectApi.addHook(Integer projectId,
String url,
ProjectHook enabledHooks,
boolean enableSslVerification,
String secretToken)
Adds a hook to project.
|
ProjectHook |
ProjectApi.addHook(Project project,
String url,
boolean doPushEvents,
boolean doIssuesEvents,
boolean doMergeRequestsEvents)
Adds a hook to project.
|
ProjectHook |
ProjectApi.addHook(Project project,
String url,
ProjectHook enabledHooks,
boolean enableSslVerification,
String secretToken)
Adds a hook to project.
|
ProjectHook |
ProjectApi.addHook(String projectName,
String url,
ProjectHook enabledHooks,
boolean enableSslVerification,
String secretToken)
Adds a hook to project.
|
Member |
ProjectApi.addMember(Integer projectId,
Integer userId,
AccessLevel accessLevel)
Adds a user to a project team.
|
Member |
GroupApi.addMember(Integer groupId,
Integer userId,
AccessLevel accessLevel)
Adds a user to the list of group members.
|
Member |
ProjectApi.addMember(Integer projectId,
Integer userId,
AccessLevel accessLevel,
Date expiresAt)
Adds a user to a project team.
|
Member |
GroupApi.addMember(Integer groupId,
Integer userId,
AccessLevel accessLevel,
Date expiresAt)
Adds a user to the list of group members.
|
Member |
ProjectApi.addMember(Integer projectId,
Integer userId,
Integer accessLevel)
Adds a user to a project team.
|
Member |
GroupApi.addMember(Integer groupId,
Integer userId,
Integer accessLevel)
Adds a user to the list of group members.
|
Member |
ProjectApi.addMember(Integer projectId,
Integer userId,
Integer accessLevel,
Date expiresAt)
Adds a user to a project team.
|
Member |
GroupApi.addMember(Integer groupId,
Integer userId,
Integer accessLevel,
Date expiresAt)
Adds a user to the list of group members.
|
TimeStats |
IssuesApi.addSpentTime(Integer projectId,
Integer issueIid,
Duration duration)
Adds spent time for this issue
POST /projects/:id/issues/:issue_iid/add_spent_time
|
TimeStats |
IssuesApi.addSpentTime(Integer projectId,
Integer issueIid,
int duration)
Adds spent time for this issue
POST /projects/:id/issues/:issue_iid/add_spent_time
|
TimeStats |
IssuesApi.addSpentTime(Integer projectId,
Integer issueIid,
String duration)
Adds spent time for this issue
POST /projects/:id/issues/:issue_iid/add_spent_time
|
SshKey |
UserApi.addSshKey(Integer userId,
String title,
String key)
Create new key owned by specified user.
|
SshKey |
UserApi.addSshKey(String title,
String key)
Creates a new key owned by the currently authenticated user.
|
SystemHook |
SystemHooksApi.addSystemHook(String url,
String token,
Boolean pushEvents,
Boolean tagPushEvents,
Boolean enablSsslVerification)
Add a new system hook.
|
MergeRequest |
MergeRequestApi.approveMergeRequest(Integer projectId,
Integer mergeRequestIid,
String sha)
Approve a merge request.
|
User |
UserApi.blockUser(Integer userId)
Blocks the specified user.
|
MergeRequest |
MergeRequestApi.cancelMergeRequest(Integer projectId,
Integer mergeRequestIid)
Cancel merge when pipeline succeeds.
|
Pipeline |
PipelineApi.cancelPipelineJobs(int projectId,
int pipelineId)
Cancel jobs of specified pipelines in a project.
|
Job |
JobApi.cancleJob(int projectId,
int jobId)
Cancel specified job in a project.
|
Issue |
IssuesApi.closeIssue(Integer projectId,
Integer issueIid)
Closes an existing project issue.
|
Milestone |
MilestonesApi.closeMilestone(Integer projectId,
Integer milestoneId)
Close a milestone.
|
CompareResults |
RepositoryApi.compare(Integer projectId,
String from,
String to)
Compare branches, tags or commits.
|
CompareResults |
RepositoryApi.compare(String projectPath,
String from,
String to)
Compare branches, tags or commits.
|
static GitLabApi |
GitLabApi.create(String url,
String username,
String password)
Deprecated.
As of release 4.2.0, replaced by
GitLabApi.login(String, String, String) , will be removed in 5.0.0 |
Branch |
RepositoryApi.createBranch(Integer projectId,
String branchName,
String ref)
Creates a branch for the project.
|
Commit |
CommitsApi.createCommit(int projectId,
String branch,
String commitMessage,
String startBranch,
String authorEmail,
String authorName,
List<CommitAction> actions)
Create a commit with multiple files and actions.
|
Commit |
CommitsApi.createCommit(String project,
String branch,
String commitMessage,
String startBranch,
String authorEmail,
String authorName,
List<CommitAction> actions)
Create a commit with multiple files and actions.
|
RepositoryFile |
RepositoryFileApi.createFile(RepositoryFile file,
Integer projectId,
String branchName,
String commitMessage)
Create new file in repository
POST /projects/:id/repository/files
file_path (required) - Full path to new file.
|
ImpersonationToken |
UserApi.createImpersonationToken(Integer userId,
String name,
Date expiresAt,
ImpersonationToken.Scope[] scopes)
Create an impersonation token.
|
Issue |
IssuesApi.createIssue(Integer projectId,
String title,
String description)
Create an issue for the project.
|
Issue |
IssuesApi.createIssue(Integer projectId,
String title,
String description,
Boolean confidential,
List<Integer> assigneeIds,
Integer milestoneId,
String labels,
Date createdAt,
Date dueDate,
Integer mergeRequestToResolveId,
Integer discussionToResolveId)
Create an issue for the project.
|
Note |
NotesApi.createIssueNote(Integer projectId,
Integer issueIid,
String body)
Create a issues's note.
|
Note |
NotesApi.createIssueNote(Integer projectId,
Integer issueIid,
String body,
Date createdAt)
Create a issues's note.
|
Label |
LabelsApi.createLabel(Integer projectId,
String name,
String color)
Create a label
|
Label |
LabelsApi.createLabel(Integer projectId,
String name,
String color,
Integer priority)
Create a label
|
Label |
LabelsApi.createLabel(Integer projectId,
String name,
String color,
String description)
Create a label
|
Label |
LabelsApi.createLabel(Integer projectId,
String name,
String color,
String description,
Integer priority)
Create a label
|
MergeRequest |
MergeRequestApi.createMergeRequest(Integer projectId,
String sourceBranch,
String targetBranch,
String title,
String description,
Integer assigneeId)
Creates a merge request and optionally assigns a reviewer to it.
|
Milestone |
MilestonesApi.createMilestone(Integer projectId,
String title,
String description,
Date dueDate,
Date startDate)
Create a milestone.
|
Pipeline |
PipelineApi.createPipeline(int projectId,
String ref)
Create a pipelines in a project.
|
Project |
ProjectApi.createProject(Integer groupId,
String projectName)
Create a new project in the specified group.
|
Project |
ProjectApi.createProject(Project project)
Creates new project owned by the current user.
|
Project |
ProjectApi.createProject(Project project,
String importUrl)
Creates new project owned by the current user.
|
Project |
ProjectApi.createProject(String projectName)
Create a new project with the current user's namespace.
|
Project |
ProjectApi.createProject(String name,
Integer namespaceId,
String description,
Boolean issuesEnabled,
Boolean mergeRequestsEnabled,
Boolean wikiEnabled,
Boolean snippetsEnabled,
Boolean isPublic,
Integer visibilityLevel,
String importUrl)
Deprecated.
As of release 4.2.0, replaced by
ProjectApi.createProject(String, Integer, String, Boolean, Boolean,
Boolean, Boolean, Visibility, Integer, String) |
Project |
ProjectApi.createProject(String name,
Integer namespaceId,
String description,
Boolean issuesEnabled,
Boolean mergeRequestsEnabled,
Boolean wikiEnabled,
Boolean snippetsEnabled,
Visibility visibility,
Integer visibilityLevel,
Boolean printingMergeRequestLinkEnabled,
String importUrl)
Creates a Project
|
Project |
ProjectApi.createProject(String name,
Integer namespaceId,
String description,
Boolean issuesEnabled,
Boolean mergeRequestsEnabled,
Boolean wikiEnabled,
Boolean snippetsEnabled,
Visibility visibility,
Integer visibilityLevel,
String importUrl)
Creates a Project
|
Snippet |
ProjectApi.createSnippet(Integer projectId,
String title,
String filename,
String description,
String code,
Visibility visibility)
Creates a new project snippet.
|
Tag |
RepositoryApi.createTag(Integer projectId,
String tagName,
String ref,
String message,
File releaseNotesFile)
Creates a tag on a particular ref of a given project.
|
Tag |
RepositoryApi.createTag(Integer projectId,
String tagName,
String ref,
String message,
String releaseNotes)
Creates a tag on a particular ref of the given project.
|
User |
UserApi.createUser(User user,
String password,
Integer projectsLimit)
Creates a new user.
|
List<T> |
Pager.current()
Returns the current page of List.
|
protected javax.ws.rs.core.Response |
AbstractApi.delete(javax.ws.rs.core.Response.Status expectedStatus,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams,
Object... pathArgs)
Perform an HTTP DELETE call with the specified form data and path objects, returning
a ClientResponse instance with the data returned from the endpoint.
|
protected javax.ws.rs.core.Response |
AbstractApi.delete(javax.ws.rs.core.Response.Status expectedStatus,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams,
URL url)
Perform an HTTP DELETE call with the specified form data and URL, returning
a ClientResponse instance with the data returned from the endpoint.
|
void |
RepositoryApi.deleteBranch(Integer projectId,
String branchName)
Delete a single project repository branch.
|
void |
DeployKeysApi.deleteDeployKey(Integer projectId,
Integer keyId)
Removes a deploy key from the project.
|
void |
RepositoryFileApi.deleteFile(String filePath,
Integer projectId,
String branchName,
String commitMessage)
Delete existing file in repository
DELETE /projects/:id/repository/files
file_path (required) - Full path to file.
|
void |
ServicesApi.deleteGitLabCI(Integer projectId)
Deletes the gitlab-ci service.
|
void |
ServicesApi.deleteGitLabCI(Project project)
DELETE /projects/:id/services/gitlab-ci
|
void |
GroupApi.deleteGroup(Group group)
Removes group with all projects inside.
|
void |
GroupApi.deleteGroup(Integer groupId)
Removes group with all projects inside.
|
void |
ServicesApi.deleteHipChat(Integer projectId)
Deletes the gitlab-ci service.
|
void |
ServicesApi.deleteHipChat(Project project)
Deletes the gitlab-ci service.
|
void |
ProjectApi.deleteHook(Integer projectId,
Integer hookId)
Deletes a hook from the project.
|
void |
ProjectApi.deleteHook(ProjectHook hook)
Deletes a hook from the project.
|
void |
ProjectApi.deleteIssue(Integer projectId,
Integer issueId)
Deprecated.
Will be removed in version 5.0, replaced by
IssuesApi.deleteIssue(Integer, Integer) |
void |
IssuesApi.deleteIssue(Integer projectId,
Integer issueIid)
Delete an issue.
|
void |
NotesApi.deleteIssueNote(Integer projectId,
Integer issueIid,
Integer noteId)
Delete the specified issues's note.
|
void |
LabelsApi.deleteLabel(Integer projectId,
String name)
Delete the specified label
|
void |
MergeRequestApi.deleteMergeRequest(Integer projectId,
Integer mergeRequestIid)
Only for admins and project owners.
|
void |
ProjectApi.deleteProject(Integer projectId)
Removes project with all resources(issues, merge requests etc).
|
void |
ProjectApi.deleteProject(Project project)
Removes project with all resources(issues, merge requests etc).
|
void |
ProjectApi.deleteSnippet(Integer projectId,
Integer snippetId) |
void |
UserApi.deleteSshKey(Integer keyId)
Deletes key owned by currently authenticated user.
|
void |
UserApi.deleteSshKey(Integer userId,
Integer keyId)
Deletes key owned by a specified user.
|
void |
SystemHooksApi.deleteSystemHook(Integer hookId)
Deletes a system hook.
|
void |
SystemHooksApi.deleteSystemHook(SystemHook hook)
Deletes a system hook.
|
void |
RepositoryApi.deleteTag(Integer projectId,
String tagName)
Deletes the tag from a project with the specified tag name.
|
void |
UserApi.deleteUser(Integer userId)
Deletes a user.
|
void |
UserApi.deleteUser(Integer userId,
Boolean hardDelete)
Deletes a user.
|
void |
UserApi.deleteUser(User user)
Deletes a user.
|
void |
UserApi.deleteUser(User user,
Boolean hardDelete)
Deletes a user.
|
InputStream |
JobApi.downloadArtifactsFile(Integer projectId,
String ref,
String jobName)
Get an InputStream pointing to the artifacts file from the given reference name and job
provided the job finished successfully.
|
File |
JobApi.downloadArtifactsFile(Integer projectId,
String ref,
String jobName,
File directory)
Download the artifacts file from the given reference name and job provided the job finished successfully.
|
DeployKey |
DeployKeysApi.enableDeployKey(Integer projectId,
Integer keyId)
Enables a deploy key for a project so this can be used.
|
Job |
JobApi.eraseJob(int projectId,
int jobId)
Erase specified job in a project.
|
TimeStats |
IssuesApi.estimateTime(Integer projectId,
Integer issueIid,
Duration duration)
Sets an estimated time of work in this issue
POST /projects/:id/issues/:issue_iid/time_estimate
|
TimeStats |
IssuesApi.estimateTime(Integer projectId,
Integer issueIid,
int duration)
Sets an estimated time of work in this issue
POST /projects/:id/issues/:issue_iid/time_estimate
|
TimeStats |
IssuesApi.estimateTime(Integer projectId,
Integer issueIid,
String duration)
Sets an estimated time of work in this issue
POST /projects/:id/issues/:issue_iid/time_estimate
|
List<Namespace> |
NamespaceApi.findNamespaces(String query)
Get all namespaces that match a string in their name or path.
|
Pager<Namespace> |
NamespaceApi.findNamespaces(String query,
int itemsPerPage)
Get a Pager of all namespaces that match a string in their name or path.
|
List<Namespace> |
NamespaceApi.findNamespaces(String query,
int page,
int perPage)
Get all namespaces that match a string in their name or path in the specified page range.
|
List<User> |
UserApi.findUsers(String emailOrUsername)
Search users by Email or username
GET /users?search=:email_or_username
|
Pager<User> |
UserApi.findUsers(String emailOrUsername,
int itemsPerPage)
Search users by Email or username and return a Pager
GET /users?search=:email_or_username
|
List<User> |
UserApi.findUsers(String emailOrUsername,
int page,
int perPage)
Search users by Email or username in the specified page range.
|
List<T> |
Pager.first()
Returns the first page of List.
|
Project |
ProjectApi.forkProject(Integer id,
Integer namespaceId)
Forks a project into the user namespace of the authenticated user or the one provided.
|
Project |
ProjectApi.forkProject(Integer id,
String namespace)
Forks a project into the user namespace of the authenticated user or the one provided.
|
Project |
ProjectApi.forkProject(Project project,
Integer namespaceId)
Forks a project into the user namespace of the authenticated user or the one provided.
|
Project |
ProjectApi.forkProject(Project project,
String namespace)
Forks a project into the user namespace of the authenticated user or the one provided.
|
protected javax.ws.rs.core.Response |
AbstractApi.get(javax.ws.rs.core.Response.Status expectedStatus,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams,
Object... pathArgs)
Perform an HTTP GET call with the specified query parameters and path objects, returning
a ClientResponse instance with the data returned from the endpoint.
|
protected javax.ws.rs.core.Response |
AbstractApi.get(javax.ws.rs.core.Response.Status expectedStatus,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams,
URL url)
Perform an HTTP GET call with the specified query parameters and URL, returning
a ClientResponse instance with the data returned from the endpoint.
|
List<User> |
UserApi.getActiveUsers()
Get a list of active users.
|
Pager<User> |
UserApi.getActiveUsers(int itemsPerPage)
Get a Pager of active users.
|
List<User> |
UserApi.getActiveUsers(int page,
int perPage)
Get a list of active users using the specified page and per page settings.
|
List<Project> |
ProjectApi.getAllProjects()
Deprecated.
Will be removed, no longer supported by the GitLab API
|
List<Event> |
EventsApi.getAuthenticatedUserEvents(Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder)
Get a list of events for the authenticated user.
|
Pager<Event> |
EventsApi.getAuthenticatedUserEvents(Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder,
int itemsPerPage)
Get a list of events for the authenticated user and in the specified page range.
|
List<Event> |
EventsApi.getAuthenticatedUserEvents(Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder,
int page,
int perPage)
Get a list of events for the authenticated user and in the specified page range.
|
List<User> |
UserApi.getBlockedUsers()
Get a list of blocked users.
|
Pager<User> |
UserApi.getBlockedUsers(int itemsPerPage)
Get a Pager of blocked users.
|
List<User> |
UserApi.getblockedUsers(int page,
int perPage)
Get a list of blocked users using the specified page and per page settings.
|
Branch |
RepositoryApi.getBranch(Integer projectId,
String branchName)
Get a single project repository branch.
|
List<Branch> |
RepositoryApi.getBranches(Integer projectId)
Get a list of repository branches from a project, sorted by name alphabetically.
|
Pager<Branch> |
RepositoryApi.getBranches(Integer projectId,
int itemsPerPage)
Get a Pager of repository branches from a project, sorted by name alphabetically.
|
List<Branch> |
RepositoryApi.getBranches(Integer projectId,
int page,
int perPage)
Get a list of repository branches from a project, sorted by name alphabetically.
|
List<Comment> |
CommitsApi.getComments(int projectId,
String sha)
Get the comments of a commit in a project.
|
Commit |
CommitsApi.getCommit(int projectId,
String sha)
Get a specific commit identified by the commit hash or name of a branch or tag.
|
List<Commit> |
CommitsApi.getCommits(int projectId)
Get a list of repository commits in a project.
|
List<Commit> |
MergeRequestApi.getCommits(int projectId,
int mergeRequestIid)
Get a list of merge request commits.
|
Pager<Commit> |
CommitsApi.getCommits(int projectId,
int itemsPerPage)
Get a Pager of repository commits in a project.
|
Pager<Commit> |
MergeRequestApi.getCommits(int projectId,
int mergeRequestIid,
int itemsPerPage)
Get a Pager of merge request commits.
|
List<Commit> |
CommitsApi.getCommits(int projectId,
int page,
int perPage)
Get a list of repository commits in a project.
|
List<Commit> |
MergeRequestApi.getCommits(int projectId,
int mergeRequestIid,
int page,
int perPage)
Get a list of merge request commits.
|
List<Commit> |
CommitsApi.getCommits(int projectId,
String ref,
Date since,
Date until)
Get a list of repository commits in a project.
|
Pager<Commit> |
CommitsApi.getCommits(int projectId,
String ref,
Date since,
Date until,
int itemsPerPage)
Get a Pager of repository commits in a project.
|
List<Commit> |
CommitsApi.getCommits(int projectId,
String ref,
Date since,
Date until,
int page,
int perPage)
Get a list of repository commits in a project.
|
List<Commit> |
CommitsApi.getCommits(int projectId,
String ref,
Date since,
Date until,
String path)
Get a list of repository commits in a project.
|
List<Commit> |
CommitsApi.getCommits(int projectId,
String ref,
String path)
Get a list of file commits in a project
GET /projects/:id/repository/commits?path=:file_path
|
User |
UserApi.getCurrentUser()
Get currently authenticated user.
|
DeployKey |
DeployKeysApi.getDeployKey(Integer projectId,
Integer keyId)
Get a single deploy key for the specified project.
|
List<DeployKey> |
DeployKeysApi.getDeployKeys()
Get a list of all deploy keys across all projects of the GitLab instance.
|
Pager<DeployKey> |
DeployKeysApi.getDeployKeys(int itemsPerPage)
Get a Pager of all deploy keys across all projects of the GitLab instance.
|
List<DeployKey> |
DeployKeysApi.getDeployKeys(int page,
int perPage)
Get a list of all deploy keys across all projects of the GitLab instance using the specified page and per page settings.
|
List<Diff> |
CommitsApi.getDiff(int projectId,
String sha)
Get the list of diffs of a commit in a project.
|
List<Diff> |
CommitsApi.getDiff(String projectPath,
String sha)
Get the list of diffs of a commit in a project.
|
RepositoryFile |
RepositoryFileApi.getFile(String filePath,
Integer projectId,
String ref)
Get file from repository.
|
protected RepositoryFile |
RepositoryFileApi.getFileV3(String filePath,
Integer projectId,
String ref)
Get file from repository.
|
Group |
GroupApi.getGroup(Integer groupId)
Get all details of a group.
|
Group |
GroupApi.getGroup(String groupPath)
Get all details of a group.
|
List<Group> |
GroupApi.getGroups()
Get a list of groups.
|
Pager<Group> |
GroupApi.getGroups(int itemsPerPage)
Get a Pager of groups.
|
List<Group> |
GroupApi.getGroups(int page,
int perPage)
Get a list of groups (As user: my groups, as admin: all groups) and in the specified page range.
|
List<Group> |
GroupApi.getGroups(String search)
Get all groups that match your string in their name or path.
|
Pager<Group> |
GroupApi.getGroups(String search,
int itemsPerPage)
Get all groups that match your string in their name or path.
|
List<Group> |
GroupApi.getGroups(String search,
int page,
int perPage)
Get all groups that match your string in their name or path.
|
ProjectHook |
ProjectApi.getHook(Integer projectId,
Integer hookId)
Get a specific hook for project.
|
List<ProjectHook> |
ProjectApi.getHooks(Integer projectId)
Get list of project hooks.
|
Pager<ProjectHook> |
ProjectApi.getHooks(Integer projectId,
int itemsPerPage)
Get Pager of project hooks.
|
List<ProjectHook> |
ProjectApi.getHooks(Integer projectId,
int page,
int perPage)
Get list of project hooks in the specified page range.
|
ImpersonationToken |
UserApi.getImpersonationToken(Integer userId,
Integer tokenId)
Get an impersonation token of a user.
|
List<ImpersonationToken> |
UserApi.getImpersonationTokens(Integer userId)
Get a list of a specified user's impersonation tokens.
|
List<ImpersonationToken> |
UserApi.getImpersonationTokens(Integer userId,
Constants.ImpersonationState state)
Get a list of a specified user's impersonation tokens.
|
Issue |
ProjectApi.getIssue(Integer projectId,
Integer issueId)
Deprecated.
Will be removed in version 5.0, replaced by
IssuesApi.getIssue(Integer, Integer) |
Issue |
IssuesApi.getIssue(Integer projectId,
Integer issueId)
Get a single project issue.
|
Note |
NotesApi.getIssueNote(Integer projectId,
Integer issueIid,
Integer noteId)
Get the specified issues's note.
|
List<Note> |
NotesApi.getIssueNotes(Integer projectId,
Integer issueIid)
Get a list of the issues's notes.
|
Pager<Note> |
NotesApi.getIssueNotes(Integer projectId,
Integer issueIid,
int itemsPerPage)
Get a Pager of issues's notes.
|
List<Note> |
NotesApi.getIssueNotes(Integer projectId,
Integer issueIid,
int page,
int perPage)
Get a list of the issue's notes using the specified page and per page settings.
|
List<Issue> |
IssuesApi.getIssues()
Get all issues the authenticated user has access to.
|
Pager<Issue> |
IssuesApi.getIssues(int itemsPerPage)
Get a Pager of all issues the authenticated user has access to.
|
List<Issue> |
ProjectApi.getIssues(Integer projectId)
Deprecated.
Will be removed in version 5.0, replaced by
IssuesApi.getIssues(Integer) |
List<Issue> |
IssuesApi.getIssues(Integer projectId)
Get a list of project's issues.
|
Pager<Issue> |
ProjectApi.getIssues(Integer projectId,
int itemsPerPage)
Deprecated.
Will be removed in version 5.0, replaced by
IssuesApi.getIssues(Integer, int) |
Pager<Issue> |
IssuesApi.getIssues(Integer projectId,
int itemsPerPage)
Get a Pager of project's issues.
|
List<Issue> |
MilestonesApi.getIssues(Integer projectId,
Integer milestoneId)
Get the list of issues associated with the specified milestone.
|
List<Issue> |
ProjectApi.getIssues(Integer projectId,
int page,
int perPage)
Deprecated.
Will be removed in version 5.0, replaced by
IssuesApi.getIssues(Integer, int, int) |
List<Issue> |
IssuesApi.getIssues(Integer projectId,
int page,
int perPage)
Get a list of project's issues using the specified page and per page settings.
|
List<Issue> |
IssuesApi.getIssues(int page,
int perPage)
Get all issues the authenticated user has access to using the specified page and per page setting.
|
Job |
JobApi.getJob(int projectId,
int jobId)
Get single job in a project.
|
List<Job> |
JobApi.getJobs(int projectId)
Get a list of jobs in a project.
|
List<Job> |
JobApi.getJobs(int projectId,
Constants.JobScope scope)
Get a list of jobs in a project.
|
Pager<Job> |
JobApi.getJobs(int projectId,
int itemsPerPage)
Get a Pager of jobs in a project.
|
List<Job> |
JobApi.getJobs(int projectId,
int page,
int perPage)
Get a list of jobs in a project in the specified page range.
|
List<Job> |
JobApi.getJobsForPipeline(int projectId,
int pipelineId)
Get a list of jobs in a pipeline.
|
List<Job> |
JobApi.getJobsForPipeline(int projectId,
int pipelineId,
Constants.JobScope scope)
Get a list of jobs in a pipeline.
|
List<Label> |
LabelsApi.getLabels(Integer projectId)
Get all labels of the specified project.
|
List<Label> |
LabelsApi.getLabels(Integer projectId,
int page,
int perPage)
Get all labels of the specified project to using the specified page and per page setting
|
Member |
ProjectApi.getMember(Integer projectId,
Integer userId)
Gets a project team member.
|
Member |
GroupApi.getMember(int groupId,
int userId)
Get a group member viewable by the authenticated user.
|
List<Project> |
ProjectApi.getMemberProjects()
Get a list of projects that the authenticated user is a member of.
|
Pager<Project> |
ProjectApi.getMemberProjects(int itemsPerPage)
Get a Pager of projects that the authenticated user is a member of.
|
List<Project> |
ProjectApi.getMemberProjects(int page,
int perPage)
Get a list of projects that the authenticated user is a member of in the specified page range.
|
List<Member> |
GroupApi.getMembers(int groupId)
Get a list of group members viewable by the authenticated user.
|
List<Member> |
ProjectApi.getMembers(Integer projectId)
Get a list of project team members.
|
Pager<Member> |
ProjectApi.getMembers(Integer projectId,
int itemsPerPage)
Get a Pager of project team members.
|
List<Member> |
ProjectApi.getMembers(Integer projectId,
int page,
int perPage)
Get a list of project team members in the specified page range.
|
Pager<Member> |
GroupApi.getMembers(int groupId,
int itemsPerPage)
Get a Pager of group members viewable by the authenticated user.
|
List<Member> |
GroupApi.getMembers(int groupId,
int page,
int perPage)
Get a list of group members viewable by the authenticated user in the specified page range.
|
List<MergeRequest> |
MilestonesApi.getMergeRequest(Integer projectId,
Integer milestoneId)
Get the list of merge requests associated with the specified milestone.
|
MergeRequest |
MergeRequestApi.getMergeRequest(Integer projectId,
Integer mergeRequestIid)
Get information about a single merge request.
|
MergeRequest |
MergeRequestApi.getMergeRequestApprovals(Integer projectId,
Integer mergeRequestIid)
Get the merge request with approval information.
|
List<MergeRequest> |
MergeRequestApi.getMergeRequests(Integer projectId)
Get all merge requests for the specified project.
|
List<MergeRequest> |
MergeRequestApi.getMergeRequests(Integer projectId,
Constants.MergeRequestState state)
Get all merge requests with a specific state for the specified project.
|
Pager<MergeRequest> |
MergeRequestApi.getMergeRequests(Integer projectId,
Constants.MergeRequestState state,
int itemsPerPage)
Get all merge requests for the specified project.
|
List<MergeRequest> |
MergeRequestApi.getMergeRequests(Integer projectId,
Constants.MergeRequestState state,
int page,
int perPage)
Get all merge requests for the specified project.
|
Pager<MergeRequest> |
MergeRequestApi.getMergeRequests(Integer projectId,
int itemsPerPage)
Get all merge requests for the specified project.
|
List<MergeRequest> |
MergeRequestApi.getMergeRequests(Integer projectId,
int page,
int perPage)
Get all merge requests for the specified project.
|
Milestone |
MilestonesApi.getMilestone(Integer projectId,
int milestoneId)
Get the specified milestone.
|
List<Milestone> |
MilestonesApi.getMilestones(Integer projectId)
Get a list of project milestones.
|
List<Milestone> |
MilestonesApi.getMilestones(Integer projectId,
Constants.MilestoneState state)
Get a list of project milestones that have the specified state.
|
List<Milestone> |
MilestonesApi.getMilestones(Integer projectId,
Constants.MilestoneState state,
String search)
Get a list of project milestones that have the specified state and match the search string.
|
List<Milestone> |
MilestonesApi.getMilestones(Integer projectId,
int page,
int perPage)
Get a list of project milestones.
|
List<Milestone> |
MilestonesApi.getMilestones(Integer projectId,
String search)
Get a list of project milestones that have match the search string.
|
List<Namespace> |
NamespaceApi.getNamespaces()
Get a list of the namespaces of the authenticated user.
|
Pager<Namespace> |
NamespaceApi.getNamespaces(int itemsPerPage)
Get a Pager of the namespaces of the authenticated user.
|
List<Namespace> |
NamespaceApi.getNamespaces(int page,
int perPage)
Get a list of the namespaces of the authenticated user.
|
List<Note> |
NotesApi.getNotes(Integer projectId,
Integer issueIid)
Deprecated.
As of release 4.7.0, replaced by
NotesApi.getIssueNotes(Integer, Integer) |
Pager<Note> |
NotesApi.getNotes(Integer projectId,
Integer issueIid,
int itemsPerPage)
Deprecated.
As of release 4.7.0, replaced by
NotesApi.getIssueNotes(Integer, Integer, int) |
List<Note> |
NotesApi.getNotes(Integer projectId,
Integer issueIid,
int page,
int perPage)
Deprecated.
As of release 4.7.0, replaced by
NotesApi.getIssueNotes(Integer, Integer, int, int) |
List<Project> |
ProjectApi.getOwnedProjects()
Get a list of projects owned by the authenticated user.
|
Pager<Project> |
ProjectApi.getOwnedProjects(int itemsPerPage)
Get a Pager of projects owned by the authenticated user.
|
List<Project> |
ProjectApi.getOwnedProjects(int page,
int perPage)
Get a list of projects owned by the authenticated user in the specified page range.
|
Pipeline |
PipelineApi.getPipeline(int projectId,
int pipelineId)
Get single pipelines in a project.
|
List<Pipeline> |
PipelineApi.getPipelines(int projectId)
Get a list of pipelines in a project.
|
List<Pipeline> |
PipelineApi.getPipelines(int projectId,
Constants.PipelineScope scope,
PipelineStatus status,
String ref,
boolean yamlErrors,
String name,
String username,
Constants.PipelineOrderBy orderBy,
Constants.SortOrder sort)
Get a list of pipelines in a project.
|
Pager<Pipeline> |
PipelineApi.getPipelines(int projectId,
Constants.PipelineScope scope,
PipelineStatus status,
String ref,
boolean yamlErrors,
String name,
String username,
Constants.PipelineOrderBy orderBy,
Constants.SortOrder sort,
int itemsPerPage)
Get a Pager of pipelines in a project.
|
List<Pipeline> |
PipelineApi.getPipelines(int projectId,
Constants.PipelineScope scope,
PipelineStatus status,
String ref,
boolean yamlErrors,
String name,
String username,
Constants.PipelineOrderBy orderBy,
Constants.SortOrder sort,
int page,
int perPage)
Get a list of pipelines in a project in the specified page range.
|
Pager<Pipeline> |
PipelineApi.getPipelines(int projectId,
int itemsPerPage)
Get a Pager of pipelines in a project.
|
List<Pipeline> |
PipelineApi.getPipelines(int projectId,
int page,
int perPage)
Get a list of pipelines in a project in the specified page range.
|
Project |
ProjectApi.getProject(Integer projectId)
Get a specific project, which is owned by the authentication user.
|
Project |
ProjectApi.getProject(String namespace,
String project)
Get a specific project, which is owned by the authentication user.
|
List<DeployKey> |
DeployKeysApi.getProjectDeployKeys(Integer projectId)
Get a list of the deploy keys for the specified project.
|
Pager<DeployKey> |
DeployKeysApi.getProjectDeployKeys(Integer projectId,
Integer itemsPerPage)
Get a Pager of the deploy keys for the specified project.
|
List<DeployKey> |
DeployKeysApi.getProjectDeployKeys(Integer projectId,
int page,
int perPage)
Get a list of the deploy keys for the specified project using the specified page and per page settings.
|
List<Event> |
ProjectApi.getProjectEvents(Integer projectId)
Get the project events for specific project.
|
List<Event> |
EventsApi.getProjectEvents(Integer projectId,
Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder)
Get a list of events for the specified project.
|
Pager<Event> |
EventsApi.getProjectEvents(Integer projectId,
Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder,
int itemsPerPage)
Get a list of events for the specified project and in the specified page range.
|
List<Event> |
EventsApi.getProjectEvents(Integer projectId,
Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder,
int page,
int perPage)
Get a list of events for the specified project and in the specified page range.
|
Pager<Event> |
ProjectApi.getProjectEvents(Integer projectId,
int itemsPerPage)
Get a Pager of project events for specific project.
|
List<Event> |
ProjectApi.getProjectEvents(Integer projectId,
int page,
int perPage)
Get the project events for specific project.
|
List<Project> |
ProjectApi.getProjects()
Get a list of projects accessible by the authenticated user.
|
List<Project> |
ProjectApi.getProjects(Boolean archived,
Visibility visibility,
Constants.ProjectOrderBy orderBy,
Constants.SortOrder sort,
String search,
Boolean simple,
Boolean owned,
Boolean membership,
Boolean starred,
Boolean statistics)
Get a list of projects accessible by the authenticated user and matching the supplied filter parameters.
|
Pager<Project> |
ProjectApi.getProjects(Boolean archived,
Visibility visibility,
Constants.ProjectOrderBy orderBy,
Constants.SortOrder sort,
String search,
Boolean simple,
Boolean owned,
Boolean membership,
Boolean starred,
Boolean statistics,
int itemsPerPage)
Get a Pager of projects accessible by the authenticated user and matching the supplied filter parameters.
|
List<Project> |
ProjectApi.getProjects(Boolean archived,
Visibility visibility,
Constants.ProjectOrderBy orderBy,
Constants.SortOrder sort,
String search,
Boolean simple,
Boolean owned,
Boolean membership,
Boolean starred,
Boolean statistics,
int page,
int perPage)
Get a list of projects accessible by the authenticated user and matching the supplied filter parameters.
|
List<Project> |
ProjectApi.getProjects(Boolean archived,
Visibility visibility,
String orderBy,
String sort,
String search,
Boolean simple,
Boolean owned,
Boolean membership,
Boolean starred,
Boolean statistics)
Deprecated.
Will be removed in version 5.0, replaced by
ProjectApi.getProjects(Boolean, Visibility,
Constants.ProjectOrderBy, Constants.SortOrder, String, Boolean, Boolean, Boolean, Boolean, Boolean) |
Pager<Project> |
ProjectApi.getProjects(int itemsPerPage)
Get a Pager instance of projects accessible by the authenticated user.
|
List<Project> |
GroupApi.getProjects(int groupId)
Get a list of projects belonging to the specified group ID.
|
List<Project> |
ProjectApi.getProjects(int page,
int perPage)
Get a list of projects accessible by the authenticated user and in the specified page range.
|
Pager<Project> |
GroupApi.getProjects(int groupId,
int itemsPerPage)
Get a Pager of projects belonging to the specified group ID.
|
List<Project> |
GroupApi.getProjects(int groupId,
int page,
int perPage)
Get a list of projects belonging to the specified group ID in the specified page range.
|
List<Project> |
ProjectApi.getProjects(String search)
Get a list of projects accessible by the authenticated user that match the provided search string.
|
Pager<Project> |
ProjectApi.getProjects(String search,
int itemsPerPage)
Get a Pager of projects accessible by the authenticated user that match the provided search string.
|
List<Project> |
ProjectApi.getProjects(String search,
int page,
int perPage)
Get a list of projects accessible by the authenticated user that match the provided search string.
|
List<ProjectUser> |
ProjectApi.getProjectUsers(Integer projectId)
Get a list of project users.
|
List<ProjectUser> |
ProjectApi.getProjectUsers(Integer projectId,
String search)
Get a list of project users matching the specified search string.
|
InputStream |
RepositoryApi.getRawBlobContent(Integer projectId,
String sha)
Get the raw file contents for a blob by blob SHA.
|
InputStream |
RepositoryFileApi.getRawFile(Integer projectId,
String commitOrBranchName,
String filepath)
Get the raw file contents for a file by commit sha and path.
|
File |
RepositoryFileApi.getRawFile(Integer projectId,
String commitOrBranchName,
String filepath,
File directory)
Get the raw file for the file by commit sha and path.
|
String |
ProjectApi.getRawSnippetContent(Integer projectId,
Integer snippetId) |
InputStream |
RepositoryApi.getRepositoryArchive(Integer projectId,
String sha)
Get an archive of the complete repository by SHA (optional).
|
File |
RepositoryApi.getRepositoryArchive(Integer projectId,
String sha,
File directory)
Get an archive of the complete repository by SHA (optional) and saves to the specified directory.
|
Snippet |
ProjectApi.getSnippet(Integer projectId,
Integer snippetId)
Get a single of project snippet.
|
List<Snippet> |
ProjectApi.getSnippets(Integer projectId)
Get a list of project snippets.
|
Pager<Snippet> |
ProjectApi.getSnippets(Integer projectId,
int itemsPerPage)
Get a Pager of project's snippets.
|
List<Snippet> |
ProjectApi.getSnippets(Integer projectId,
int page,
int perPage)
Get a list of project snippets.
|
SshKey |
UserApi.getSshKey(Integer keyId)
Get a single SSH Key.
|
List<SshKey> |
UserApi.getSshKeys()
Get a list of currently authenticated user's SSH keys.
|
List<SshKey> |
UserApi.getSshKeys(Integer userId)
Get a list of a specified user's SSH keys.
|
List<Project> |
ProjectApi.getStarredProjects()
Get a list of projects starred by the authenticated user.
|
Pager<Project> |
ProjectApi.getStarredProjects(int itemsPerPage)
Get a Pager of projects starred by the authenticated user.
|
List<Project> |
ProjectApi.getStarredProjects(int page,
int perPage)
Get a list of projects starred by the authenticated user in the specified page range.
|
List<Group> |
GroupApi.getSubGroups(Integer groupId)
Get a list of visible direct subgroups in this group.
|
Pager<Group> |
GroupApi.getSubGroups(Integer groupId,
int itemsPerPage)
Get a Pager of visible direct subgroups in this group.
|
List<Group> |
GroupApi.getSubGroups(Integer groupId,
List<Integer> skipGroups,
Boolean allAvailable,
String search,
Constants.GroupOrderBy orderBy,
Constants.SortOrder sortOrder,
Boolean statistics,
Boolean owned)
Get a list of visible direct subgroups in this group.
|
Pager<Group> |
GroupApi.getSubGroups(Integer groupId,
List<Integer> skipGroups,
Boolean allAvailable,
String search,
Constants.GroupOrderBy orderBy,
Constants.SortOrder sortOrder,
Boolean statistics,
Boolean owned,
int itemsPerPage)
Get a Pager of visible direct subgroups in this group.
|
List<Group> |
GroupApi.getSubGroups(Integer groupId,
List<Integer> skipGroups,
Boolean allAvailable,
String search,
Constants.GroupOrderBy orderBy,
Constants.SortOrder sortOrder,
Boolean statistics,
Boolean owned,
int page,
int perPage)
Get a list of visible direct subgroups in this group.
|
List<SystemHook> |
SystemHooksApi.getSystemHooks()
Get a list of all system hooks.
|
Pager<SystemHook> |
SystemHooksApi.getSystemHooks(int itemsPerPage)
Get a Pager of all system hooks.
|
List<SystemHook> |
SystemHooksApi.getSystemHooks(int page,
int perPage)
Get a list of all system hooks using the specified page and per page settings.
|
List<Tag> |
RepositoryApi.getTags(Integer projectId)
Get a list of repository tags from a project, sorted by name in reverse alphabetical order.
|
Pager<Tag> |
RepositoryApi.getTags(Integer projectId,
int itemsPerPage)
Get a list of repository tags from a project, sorted by name in reverse alphabetical order.
|
List<Tag> |
RepositoryApi.getTags(Integer projectId,
int page,
int perPage)
Get a list of repository tags from a project, sorted by name in reverse alphabetical order and in the specified page range.
|
TimeStats |
IssuesApi.getTimeTrackingStats(Integer projectId,
Integer issueIid)
Get time tracking stats
GET /projects/:id/issues/:issue_iid/time_stats
|
String |
JobApi.getTrace(int projectId,
int jobId)
Get a trace of a specific job of a project
GET /projects/:id/jobs/:id/trace
|
List<TreeItem> |
RepositoryApi.getTree(Integer projectId)
Get a list of repository files and directories in a project.
|
Pager<TreeItem> |
RepositoryApi.getTree(Integer projectId,
int itemsPerPage)
Get a Pager of repository files and directories in a project.
|
List<TreeItem> |
RepositoryApi.getTree(Integer projectId,
String filePath,
String refName)
Get a list of repository files and directories in a project.
|
List<TreeItem> |
RepositoryApi.getTree(Integer projectId,
String filePath,
String refName,
Boolean recursive)
Get a list of repository files and directories in a project.
|
Pager<TreeItem> |
RepositoryApi.getTree(Integer projectId,
String filePath,
String refName,
Boolean recursive,
int itemsPerPage)
Get a Pager of repository files and directories in a project.
|
Pager<TreeItem> |
RepositoryApi.getTree(Integer projectId,
String filePath,
String refName,
int itemsPerPage)
Get a Pager of repository files and directories in a project.
|
User |
UserApi.getUser(int userId)
Get a single user.
|
User |
UserApi.getUser(String username)
Lookup a user by username.
|
List<Event> |
EventsApi.getUserEvents(Integer userId,
Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder)
Get a list of events for the specified user.
|
Pager<Event> |
EventsApi.getUserEvents(Integer userId,
Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder,
int itemsPerPage)
Get a list of events for the specified user and in the specified page range.
|
List<Event> |
EventsApi.getUserEvents(Integer userId,
Constants.ActionType action,
Constants.TargetType targetType,
Date before,
Date after,
Constants.SortOrder sortOrder,
int page,
int perPage)
Get a list of events for the specified user and in the specified page range.
|
List<User> |
UserApi.getUsers()
Get a list of users.
|
Pager<User> |
UserApi.getUsers(int itemsPerPage)
Get a Pager of users.
|
List<User> |
UserApi.getUsers(int page,
int perPage)
Get a list of users using the specified page and per page settings.
|
Version |
GitLabApi.getVersion()
Get the version info for the GitLab server using the GitLab Version API.
|
protected javax.ws.rs.core.Response |
AbstractApi.getWithAccepts(javax.ws.rs.core.Response.Status expectedStatus,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams,
String accepts,
Object... pathArgs)
Perform an HTTP GET call with the specified query parameters and path objects, returning
a ClientResponse instance with the data returned from the endpoint.
|
abstract void |
HookManager.handleEvent(javax.servlet.http.HttpServletRequest request)
Parses and verifies an Event instance from the HTTP request and
fires it off to the registered listeners.
|
List<T> |
Pager.last()
Returns the last page of List.
|
static GitLabApi |
GitLabApi.login(GitLabApi.ApiVersion apiVersion,
String url,
String username,
String password)
Logs into GitLab using provided
username and password , and creates a new GitLabApi instance
using returned private token and the specified GitLab API version. |
static GitLabApi |
GitLabApi.login(GitLabApi.ApiVersion apiVersion,
String url,
String username,
String password,
boolean ignoreCertificateErrors)
Logs into GitLab using provided
username and password , and creates a new GitLabApi instance
using returned private token and the specified GitLab API version. |
Session |
SessionApi.login(String username,
String email,
String password)
Login to get private token.
|
static GitLabApi |
GitLabApi.login(String url,
String username,
String password)
Logs into GitLab using provided
username and password , and creates a new GitLabApi instance
using returned private token using GitLab API version 4. |
static GitLabApi |
GitLabApi.login(String url,
String username,
String password,
boolean ignoreCertificateErrors)
Logs into GitLab using provided
username and password , and creates a new GitLabApi instance
using returned private token using GitLab API version 4. |
ProjectHook |
ProjectApi.modifyHook(ProjectHook hook)
Modifies a hook for project.
|
User |
UserApi.modifyUser(User user,
String password,
Integer projectsLimit)
Modifies an existing user.
|
static GitLabApi |
GitLabApi.oauth2Login(GitLabApi.ApiVersion apiVersion,
String url,
String username,
String password,
String secretToken,
Map<String,Object> clientConfigProperties,
boolean ignoreCertificateErrors)
Logs into GitLab using OAuth2 with the provided
username and password ,
and creates a new GitLabApi instance using returned access token. |
static GitLabApi |
GitLabApi.oauth2Login(String url,
String username,
String password)
Logs into GitLab using OAuth2 with the provided
username and password ,
and creates a new GitLabApi instance using returned access token. |
static GitLabApi |
GitLabApi.oauth2Login(String url,
String username,
String password,
boolean ignoreCertificateErrors)
Logs into GitLab using OAuth2 with the provided
username and password ,
and creates a new GitLabApi instance using returned access token. |
static GitLabApi |
GitLabApi.oauth2Login(String url,
String username,
String password,
String secretToken,
Map<String,Object> clientConfigProperties,
boolean ignoreCertificateErrors)
Logs into GitLab using OAuth2 with the provided
username and password ,
and creates a new GitLabApi instance using returned access token. |
Job |
JobApi.playJob(int projectId,
int jobId)
Play specified job in a project.
|
protected javax.ws.rs.core.Response |
AbstractApi.post(javax.ws.rs.core.Response.Status expectedStatus,
javax.ws.rs.core.Form formData,
Object... pathArgs)
Perform an HTTP POST call with the specified form data and path objects, returning
a ClientResponse instance with the data returned from the endpoint.
|
protected javax.ws.rs.core.Response |
AbstractApi.post(javax.ws.rs.core.Response.Status expectedStatus,
javax.ws.rs.core.Form formData,
URL url)
Perform an HTTP POST call with the specified form data and URL, returning
a ClientResponse instance with the data returned from the endpoint.
|
protected javax.ws.rs.core.Response |
AbstractApi.post(javax.ws.rs.core.Response.Status expectedStatus,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams,
Object... pathArgs)
Perform an HTTP POST call with the specified form data and path objects, returning
a ClientResponse instance with the data returned from the endpoint.
|
protected javax.ws.rs.core.Response |
AbstractApi.post(javax.ws.rs.core.Response.Status expectedStatus,
Object payload,
Object... pathArgs)
Perform an HTTP POST call with the specified payload object and path objects, returning
a ClientResponse instance with the data returned from the endpoint.
|
List<T> |
Pager.previous()
Returns the previous page of List.
|
Branch |
RepositoryApi.protectBranch(Integer projectId,
String branchName)
Protects a single project repository branch.
|
protected javax.ws.rs.core.Response |
AbstractApi.put(javax.ws.rs.core.Response.Status expectedStatus,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams,
Object... pathArgs)
Perform an HTTP PUT call with the specified form data and path objects, returning
a ClientResponse instance with the data returned from the endpoint.
|
protected javax.ws.rs.core.Response |
AbstractApi.put(javax.ws.rs.core.Response.Status expectedStatus,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams,
URL url)
Perform an HTTP PUT call with the specified form data and URL, returning
a ClientResponse instance with the data returned from the endpoint.
|
protected javax.ws.rs.core.Response |
AbstractApi.putWithFormData(javax.ws.rs.core.Response.Status expectedStatus,
javax.ws.rs.core.Form formData,
Object... pathArgs)
Perform an HTTP PUT call with the specified form data and path objects, returning
a ClientResponse instance with the data returned from the endpoint.
|
void |
ProjectApi.removeMember(Integer projectId,
Integer userId)
Removes user from project team.
|
void |
GroupApi.removeMember(Integer groupId,
Integer userId)
Removes member from the group.
|
TimeStats |
IssuesApi.resetEstimatedTime(Integer projectId,
Integer issueIid)
Resets the estimated time for this issue to 0 seconds.
|
TimeStats |
IssuesApi.resetSpentTime(Integer projectId,
Integer issueIid)
Resets the total spent time for this issue to 0 seconds.
|
Job |
JobApi.retryJob(int projectId,
int jobId)
Retry specified job in a project.
|
Pipeline |
PipelineApi.retryPipelineJob(int projectId,
int pipelineId)
Retry a job in specified pipelines in a project.
|
void |
UserApi.revokeImpersonationToken(Integer userId,
Integer tokenId)
Revokes an impersonation token.
|
void |
ServicesApi.setGitLabCI(Integer projectId,
String token,
String projectCIUrl)
Activates the gitlab-ci service.
|
void |
ServicesApi.setGitLabCI(Project project,
String token,
String projectCIUrl)
Activates the gitlab-ci service.
|
void |
ServicesApi.setHipChat(Integer projectId,
String token,
String room,
String server)
Activates HipChat notifications.
|
void |
ServicesApi.setHipChat(Project project,
String token,
String room,
String server)
Activates HipChat notifications.
|
void |
GitLabApi.setSudoAsId(Integer sudoAsId)
Sets up all future calls to the GitLab API to be done as another user specified by provided user ID.
|
void |
ProjectApi.shareProject(Integer projectId,
Integer groupId,
AccessLevel accessLevel,
Date expiresAt)
Share a project with the specified group.
|
Label |
LabelsApi.subscribeLabel(Integer projectId,
Integer labelId)
Subscribe a specified label
|
void |
GitLabApi.sudo(String sudoAsUsername)
Sets up all future calls to the GitLab API to be done as another user specified by sudoAsUsername.
|
void |
SystemHooksApi.testSystemHook(Integer hookId)
Test a system hook.
|
void |
SystemHooksApi.testSystemHook(SystemHook hook)
Test a system hook.
|
MergeRequest |
MergeRequestApi.unapproveMergeRequest(Integer projectId,
Integer mergeRequestIid)
Unapprove a merge request.
|
User |
UserApi.unblockUser(Integer userId)
Unblocks the specified user.
|
Branch |
RepositoryApi.unprotectBranch(Integer projectId,
String branchName)
Unprotects a single project repository branch.
|
void |
ProjectApi.unshareProject(Integer projectId,
Integer groupId)
Unshare the project from the group.
|
Label |
LabelsApi.unsubscribeLabel(Integer projectId,
Integer labelId)
Unsubscribe a specified label
|
RepositoryFile |
RepositoryFileApi.updateFile(RepositoryFile file,
Integer projectId,
String branchName,
String commitMessage)
Update existing file in repository
PUT /projects/:id/repository/files
file_path (required) - Full path to new file.
|
Group |
GroupApi.updateGroup(Integer groupId,
String name,
String path,
String description,
Boolean membershipLock,
Boolean shareWithGroupLock,
Visibility visibility,
Boolean lfsEnabled,
Boolean requestAccessEnabled,
Integer parentId,
Integer sharedRunnersMinutesLimit)
Deprecated.
Will be removed in version 5.0, replaced by
GroupApi.updateGroup(Integer, String, String, String,
Visibility, Boolean, Boolean, Integer) |
Group |
GroupApi.updateGroup(Integer groupId,
String name,
String path,
String description,
Visibility visibility,
Boolean lfsEnabled,
Boolean requestAccessEnabled,
Integer parentId)
Updates a project group.
|
Issue |
IssuesApi.updateIssue(Integer projectId,
Integer issueIid,
String title,
String description,
Boolean confidential,
List<Integer> assigneeIds,
Integer milestoneId,
String labels,
Constants.StateEvent stateEvent,
Date updatedAt,
Date dueDate)
Updates an existing project issue.
|
Note |
NotesApi.updateIssueNote(Integer projectId,
Integer issueIid,
Integer nodeId,
String body)
Update the specified issues's note.
|
Label |
LabelsApi.updateLabel(Integer projectId,
String name,
String newName,
String color,
String description,
Integer priority)
Update the specified label
|
Label |
LabelsApi.updateLabelColor(Integer projectId,
String name,
String color,
String description,
Integer priority)
Update the specified label
|
Label |
LabelsApi.updateLabelName(Integer projectId,
String name,
String newName,
String description,
Integer priority)
Update the specified label
|
Member |
ProjectApi.updateMember(Integer projectId,
Integer userId,
AccessLevel accessLevel)
Updates a member of a project.
|
Member |
GroupApi.updateMember(Integer groupId,
Integer userId,
AccessLevel accessLevel)
Updates a member of a group.
|
Member |
ProjectApi.updateMember(Integer projectId,
Integer userId,
AccessLevel accessLevel,
Date expiresAt)
Updates a member of a project.
|
Member |
GroupApi.updateMember(Integer groupId,
Integer userId,
AccessLevel accessLevel,
Date expiresAt)
Updates a member of a group.
|
Member |
ProjectApi.updateMember(Integer projectId,
Integer userId,
Integer accessLevel)
Updates a member of a project.
|
Member |
GroupApi.updateMember(Integer groupId,
Integer userId,
Integer accessLevel)
Updates a member of a group.
|
Member |
ProjectApi.updateMember(Integer projectId,
Integer userId,
Integer accessLevel,
Date expiresAt)
Updates a member of a project.
|
Member |
GroupApi.updateMember(Integer groupId,
Integer userId,
Integer accessLevel,
Date expiresAt)
Updates a member of a group.
|
MergeRequest |
MergeRequestApi.updateMergeRequest(Integer projectId,
Integer mergeRequestIid,
String targetBranch,
String title,
Integer assigneeId,
String description,
Constants.StateEvent stateEvent,
String labels,
Integer milestoneId)
Updates an existing merge request.
|
MergeRequest |
MergeRequestApi.updateMergeRequest(Integer projectId,
Integer mergeRequestIid,
String sourceBranch,
String targetBranch,
String title,
String description,
Integer assigneeId)
Deprecated.
as of release 4.4.3
|
Milestone |
MilestonesApi.updateMilestone(Integer projectId,
Integer milestoneId,
String title,
String description,
Date dueDate,
Date startDate,
Constants.MilestoneState milestoneState)
Update the specified milestone.
|
Project |
ProjectApi.updateProject(Project project)
Updates a project.
|
Snippet |
ProjectApi.updateSnippet(Integer projectId,
Integer snippetId,
String title,
String filename,
String description,
String code,
Visibility visibility)
Updates an existing project snippet.
|
protected String |
AbstractApi.urlEncode(String s) |
protected javax.ws.rs.core.Response |
AbstractApi.validate(javax.ws.rs.core.Response response,
javax.ws.rs.core.Response.Status expected)
Validates response the response from the server against the expected HTTP status and
the returned secret token, if either is not correct will throw a GitLabApiException.
|
Modifier and Type | Method and Description |
---|---|
void |
SystemHookManager.fireEvent(SystemHookEvent event)
Fire the event to the registered listeners.
|
void |
SystemHookManager.handleEvent(javax.servlet.http.HttpServletRequest request)
Parses and verifies an SystemHookEvent instance from the HTTP request and
fires it off to the registered listeners.
|
void |
SystemHookManager.handleEvent(SystemHookEvent event)
Verifies the provided Event and fires it off to the registered listeners.
|
Modifier and Type | Method and Description |
---|---|
void |
WebHookManager.fireEvent(Event event)
Fire the event to the registered listeners.
|
void |
WebHookManager.handleEvent(Event event)
Verifies the provided Event and fires it off to the registered listeners.
|
void |
WebHookManager.handleEvent(javax.servlet.http.HttpServletRequest request)
Parses and verifies an Event instance from the HTTP request and
fires it off to the registered listeners.
|
Copyright © 2018. All rights reserved.