public class GitLabApi extends Object
Constructor and Description |
---|
GitLabApi(String hostUrl,
String privateToken)
Constructs a GitLabApi instance set up to interact with the GitLab server
specified by hostUrl.
|
Modifier and Type | Method and Description |
---|---|
static GitLabApi |
create(String url,
String username,
String password)
Logs into GitLab using provided
username and password , and creates a new
GitLabApi instance using returned private token |
CommitsApi |
getCommitsApi()
Gets the CommitsApi instance owned by this GitLabApi instance.
|
GroupApi |
getGroupApi()
Gets the GroupApi instance owned by this GitLabApi instance.
|
MergeRequestApi |
getMergeRequestApi()
Gets the MergeRequestApi instance owned by this GitLabApi instance.
|
ProjectApi |
getProjectApi()
Gets the ProjectApi instance owned by this GitLabApi instance.
|
RepositoryApi |
getRepositoryApi()
Gets the RepositoryApi instance owned by this GitLabApi instance.
|
RepositoryFileApi |
getRepositoryFileApi()
Gets the RepositoryFileApi instance owned by this GitLabApi instance.
|
SessionApi |
getSessionApi()
Gets the SessionApi instance owned by this GitLabApi instance.
|
UserApi |
getUserApi()
Gets the UserApi instance owned by this GitLabApi instance.
|
public static GitLabApi create(String url, String username, String password) throws GitLabApiException
username
and password
, and creates a new
GitLabApi
instance using returned private tokenurl
- GitLab URLusername
- user name for which private token should be obtainedpassword
- password for a given username
GitLabApi
instance configured for a user-specific tokenGitLabApiException
public CommitsApi getCommitsApi()
public MergeRequestApi getMergeRequestApi()
public GroupApi getGroupApi()
public ProjectApi getProjectApi()
public RepositoryApi getRepositoryApi()
public RepositoryFileApi getRepositoryFileApi()
public SessionApi getSessionApi()
public UserApi getUserApi()
Copyright © 2015. All rights reserved.