id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
115,700
splitwise/TokenAutoComplete
library/src/main/java/com/tokenautocomplete/TokenCompleteTextView.java
TokenCompleteTextView.insertSpan
private void insertSpan(TokenImageSpan tokenSpan) { CharSequence ssb = tokenizer.wrapTokenValue(tokenToString(tokenSpan.token)); Editable editable = getText(); if (editable == null) return; // If we haven't hidden any objects yet, we can try adding it if (hiddenContent == null)...
java
private void insertSpan(TokenImageSpan tokenSpan) { CharSequence ssb = tokenizer.wrapTokenValue(tokenToString(tokenSpan.token)); Editable editable = getText(); if (editable == null) return; // If we haven't hidden any objects yet, we can try adding it if (hiddenContent == null)...
[ "private", "void", "insertSpan", "(", "TokenImageSpan", "tokenSpan", ")", "{", "CharSequence", "ssb", "=", "tokenizer", ".", "wrapTokenValue", "(", "tokenToString", "(", "tokenSpan", ".", "token", ")", ")", ";", "Editable", "editable", "=", "getText", "(", ")"...
Insert a new span for an Object @param tokenSpan span to insert
[ "Insert", "a", "new", "span", "for", "an", "Object" ]
3f92f90c4c42efc7129d91cbc3d3ec2d1a7bfac5
https://github.com/splitwise/TokenAutoComplete/blob/3f92f90c4c42efc7129d91cbc3d3ec2d1a7bfac5/library/src/main/java/com/tokenautocomplete/TokenCompleteTextView.java#L1061-L1095
115,701
splitwise/TokenAutoComplete
library/src/main/java/com/tokenautocomplete/TokenCompleteTextView.java
TokenCompleteTextView.reifyParameterizedTypeClass
private Class reifyParameterizedTypeClass() { //Borrowed from http://codyaray.com/2013/01/finding-generic-type-parameters-with-guava //Figure out what class of objects we have Class<?> viewClass = getClass(); while (!viewClass.getSuperclass().equals(TokenCompleteTextView.class)) { ...
java
private Class reifyParameterizedTypeClass() { //Borrowed from http://codyaray.com/2013/01/finding-generic-type-parameters-with-guava //Figure out what class of objects we have Class<?> viewClass = getClass(); while (!viewClass.getSuperclass().equals(TokenCompleteTextView.class)) { ...
[ "private", "Class", "reifyParameterizedTypeClass", "(", ")", "{", "//Borrowed from http://codyaray.com/2013/01/finding-generic-type-parameters-with-guava", "//Figure out what class of objects we have", "Class", "<", "?", ">", "viewClass", "=", "getClass", "(", ")", ";", "while", ...
Used to determine if we can use the Parcelable interface
[ "Used", "to", "determine", "if", "we", "can", "use", "the", "Parcelable", "interface" ]
3f92f90c4c42efc7129d91cbc3d3ec2d1a7bfac5
https://github.com/splitwise/TokenAutoComplete/blob/3f92f90c4c42efc7129d91cbc3d3ec2d1a7bfac5/library/src/main/java/com/tokenautocomplete/TokenCompleteTextView.java#L1326-L1340
115,702
splitwise/TokenAutoComplete
library/src/main/java/com/tokenautocomplete/TokenCompleteTextView.java
TokenCompleteTextView.canDeleteSelection
@SuppressWarnings("BooleanMethodIsAlwaysInverted") public boolean canDeleteSelection(int beforeLength) { if (getObjects().size() < 1) return true; // if beforeLength is 1, we either have no selection or the call is coming from OnKey Event. // In these scenarios, getSelectionStart() will ret...
java
@SuppressWarnings("BooleanMethodIsAlwaysInverted") public boolean canDeleteSelection(int beforeLength) { if (getObjects().size() < 1) return true; // if beforeLength is 1, we either have no selection or the call is coming from OnKey Event. // In these scenarios, getSelectionStart() will ret...
[ "@", "SuppressWarnings", "(", "\"BooleanMethodIsAlwaysInverted\"", ")", "public", "boolean", "canDeleteSelection", "(", "int", "beforeLength", ")", "{", "if", "(", "getObjects", "(", ")", ".", "size", "(", ")", "<", "1", ")", "return", "true", ";", "// if befo...
Checks if selection can be deleted. This method is called from TokenInputConnection . @param beforeLength the number of characters before the current selection end to check @return true if there are no non-deletable pieces of the section
[ "Checks", "if", "selection", "can", "be", "deleted", ".", "This", "method", "is", "called", "from", "TokenInputConnection", "." ]
3f92f90c4c42efc7129d91cbc3d3ec2d1a7bfac5
https://github.com/splitwise/TokenAutoComplete/blob/3f92f90c4c42efc7129d91cbc3d3ec2d1a7bfac5/library/src/main/java/com/tokenautocomplete/TokenCompleteTextView.java#L1525-L1562
115,703
timols/java-gitlab-api
src/main/java/org/gitlab/api/models/CreateUserRequest.java
CreateUserRequest.toQuery
public Query toQuery() throws UnsupportedEncodingException{ return new Query() .appendIf("email", email) .appendIf("password", password) .appendIf("reset_password", resetPassword) .appendIf("username", username) .appendIf("name", name) .appendIf("skype", skype) .appendIf("linkedin", link...
java
public Query toQuery() throws UnsupportedEncodingException{ return new Query() .appendIf("email", email) .appendIf("password", password) .appendIf("reset_password", resetPassword) .appendIf("username", username) .appendIf("name", name) .appendIf("skype", skype) .appendIf("linkedin", link...
[ "public", "Query", "toQuery", "(", ")", "throws", "UnsupportedEncodingException", "{", "return", "new", "Query", "(", ")", ".", "appendIf", "(", "\"email\"", ",", "email", ")", ".", "appendIf", "(", "\"password\"", ",", "password", ")", ".", "appendIf", "(",...
Generates a query based on this request's properties. @return {@link Query} @throws UnsupportedEncodingException
[ "Generates", "a", "query", "based", "on", "this", "request", "s", "properties", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/models/CreateUserRequest.java#L51-L74
115,704
timols/java-gitlab-api
src/main/java/org/gitlab/api/http/GitlabHTTPRequestor.java
GitlabHTTPRequestor.authenticate
public GitlabHTTPRequestor authenticate(String token, TokenType type, AuthMethod method) { this.apiToken = token; this.tokenType = type; this.authMethod = method; return this; }
java
public GitlabHTTPRequestor authenticate(String token, TokenType type, AuthMethod method) { this.apiToken = token; this.tokenType = type; this.authMethod = method; return this; }
[ "public", "GitlabHTTPRequestor", "authenticate", "(", "String", "token", ",", "TokenType", "type", ",", "AuthMethod", "method", ")", "{", "this", ".", "apiToken", "=", "token", ";", "this", ".", "tokenType", "=", "type", ";", "this", ".", "authMethod", "=", ...
Sets authentication data for the request. Has a fluent api for method chaining. @param token The token value @param type The type of the token @param method The authentication method @return this
[ "Sets", "authentication", "data", "for", "the", "request", ".", "Has", "a", "fluent", "api", "for", "method", "chaining", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/http/GitlabHTTPRequestor.java#L66-L71
115,705
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.findUsers
public List<GitlabUser> findUsers(String emailOrUsername) throws IOException { List<GitlabUser> users = new ArrayList<>(); if (emailOrUsername != null && !emailOrUsername.equals("")) { String tailUrl = GitlabUser.URL + "?search=" + emailOrUsername; GitlabUser[] response = retriev...
java
public List<GitlabUser> findUsers(String emailOrUsername) throws IOException { List<GitlabUser> users = new ArrayList<>(); if (emailOrUsername != null && !emailOrUsername.equals("")) { String tailUrl = GitlabUser.URL + "?search=" + emailOrUsername; GitlabUser[] response = retriev...
[ "public", "List", "<", "GitlabUser", ">", "findUsers", "(", "String", "emailOrUsername", ")", "throws", "IOException", "{", "List", "<", "GitlabUser", ">", "users", "=", "new", "ArrayList", "<>", "(", ")", ";", "if", "(", "emailOrUsername", "!=", "null", "...
Finds users by email address or username. @param emailOrUsername Some portion of the email address or username @return A non-null List of GitlabUser instances. If the search term is null or empty a List with zero GitlabUsers is returned. @throws IOException on gitlab api call error
[ "Finds", "users", "by", "email", "address", "or", "username", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L205-L213
115,706
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getUser
public GitlabUser getUser() throws IOException { String tailUrl = GitlabUser.USER_URL; return retrieve().to(tailUrl, GitlabUser.class); }
java
public GitlabUser getUser() throws IOException { String tailUrl = GitlabUser.USER_URL; return retrieve().to(tailUrl, GitlabUser.class); }
[ "public", "GitlabUser", "getUser", "(", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabUser", ".", "USER_URL", ";", "return", "retrieve", "(", ")", ".", "to", "(", "tailUrl", ",", "GitlabUser", ".", "class", ")", ";", "}" ]
Return API User
[ "Return", "API", "User" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L218-L221
115,707
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.createUser
public GitlabUser createUser(String email, String password, String username, String fullName, String skypeId, String linkedIn, String twitter, String website_url, Integer projects_limit, String extern_uid, String extern_p...
java
public GitlabUser createUser(String email, String password, String username, String fullName, String skypeId, String linkedIn, String twitter, String website_url, Integer projects_limit, String extern_uid, String extern_p...
[ "public", "GitlabUser", "createUser", "(", "String", "email", ",", "String", "password", ",", "String", "username", ",", "String", "fullName", ",", "String", "skypeId", ",", "String", "linkedIn", ",", "String", "twitter", ",", "String", "website_url", ",", "In...
Create a new User @param email User email @param password Password @param username User name @param fullName Full name @param skypeId Skype Id @param linkedIn LinkedIn @param twitter Twitter @param website_url Website URL...
[ "Create", "a", "new", "User" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L256-L284
115,708
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.createUser
public GitlabUser createUser(CreateUserRequest request) throws IOException { String tailUrl = GitlabUser.USERS_URL + request.toQuery().toString(); return dispatch().to(tailUrl, GitlabUser.class); }
java
public GitlabUser createUser(CreateUserRequest request) throws IOException { String tailUrl = GitlabUser.USERS_URL + request.toQuery().toString(); return dispatch().to(tailUrl, GitlabUser.class); }
[ "public", "GitlabUser", "createUser", "(", "CreateUserRequest", "request", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabUser", ".", "USERS_URL", "+", "request", ".", "toQuery", "(", ")", ".", "toString", "(", ")", ";", "return", "dispatc...
Create a new user. This may succeed only if the requester is an administrator. @param request An object that represents the parameters for the request. @return {@link GitlabUser} @throws IOException on gitlab api call error
[ "Create", "a", "new", "user", ".", "This", "may", "succeed", "only", "if", "the", "requester", "is", "an", "administrator", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L293-L296
115,709
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.updateUser
public GitlabUser updateUser(Integer targetUserId, String email, String password, String username, String fullName, String skypeId, String linkedIn, String twitter, String website_url, Integer projects_limit, ...
java
public GitlabUser updateUser(Integer targetUserId, String email, String password, String username, String fullName, String skypeId, String linkedIn, String twitter, String website_url, Integer projects_limit, ...
[ "public", "GitlabUser", "updateUser", "(", "Integer", "targetUserId", ",", "String", "email", ",", "String", "password", ",", "String", "username", ",", "String", "fullName", ",", "String", "skypeId", ",", "String", "linkedIn", ",", "String", "twitter", ",", "...
Update a user @param targetUserId User ID @param email User email @param password Password @param username User name @param fullName Full name @param skypeId Skype Id @param linkedIn LinkedIn @param twitter Twitter @param ...
[ "Update", "a", "user" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L321-L348
115,710
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.blockUser
public void blockUser(Integer targetUserId) throws IOException { String tailUrl = GitlabUser.USERS_URL + "/" + targetUserId + GitlabUser.BLOCK_URL; retrieve().method(POST).to(tailUrl, Void.class); }
java
public void blockUser(Integer targetUserId) throws IOException { String tailUrl = GitlabUser.USERS_URL + "/" + targetUserId + GitlabUser.BLOCK_URL; retrieve().method(POST).to(tailUrl, Void.class); }
[ "public", "void", "blockUser", "(", "Integer", "targetUserId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabUser", ".", "USERS_URL", "+", "\"/\"", "+", "targetUserId", "+", "GitlabUser", ".", "BLOCK_URL", ";", "retrieve", "(", ")", ".", ...
Block a user @param targetUserId The id of the Gitlab user @throws IOException on gitlab api call error
[ "Block", "a", "user" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L356-L361
115,711
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.unblockUser
public void unblockUser(Integer targetUserId) throws IOException { String tailUrl = GitlabUser.USERS_URL + "/" + targetUserId + GitlabUser.UNBLOCK_URL; retrieve().method(POST).to(tailUrl, Void.class); }
java
public void unblockUser(Integer targetUserId) throws IOException { String tailUrl = GitlabUser.USERS_URL + "/" + targetUserId + GitlabUser.UNBLOCK_URL; retrieve().method(POST).to(tailUrl, Void.class); }
[ "public", "void", "unblockUser", "(", "Integer", "targetUserId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabUser", ".", "USERS_URL", "+", "\"/\"", "+", "targetUserId", "+", "GitlabUser", ".", "UNBLOCK_URL", ";", "retrieve", "(", ")", "...
Unblock a user @param targetUserId The id of the Gitlab user @throws IOException on gitlab api call error
[ "Unblock", "a", "user" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L369-L374
115,712
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.createSSHKey
public GitlabSSHKey createSSHKey(Integer targetUserId, String title, String key) throws IOException { Query query = new Query() .append("title", title) .append("key", key); String tailUrl = GitlabUser.USERS_URL + "/" + targetUserId + GitlabSSHKey.KEYS_URL + query.toStri...
java
public GitlabSSHKey createSSHKey(Integer targetUserId, String title, String key) throws IOException { Query query = new Query() .append("title", title) .append("key", key); String tailUrl = GitlabUser.USERS_URL + "/" + targetUserId + GitlabSSHKey.KEYS_URL + query.toStri...
[ "public", "GitlabSSHKey", "createSSHKey", "(", "Integer", "targetUserId", ",", "String", "title", ",", "String", "key", ")", "throws", "IOException", "{", "Query", "query", "=", "new", "Query", "(", ")", ".", "append", "(", "\"title\"", ",", "title", ")", ...
Create a new ssh key for the user @param targetUserId The id of the Gitlab user @param title The title of the ssh key @param key The public key @return The new GitlabSSHKey @throws IOException on gitlab api call error
[ "Create", "a", "new", "ssh", "key", "for", "the", "user" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L385-L394
115,713
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.createSSHKey
public GitlabSSHKey createSSHKey(String title, String key) throws IOException { Query query = new Query() .append("title", title) .append("key", key); String tailUrl = GitlabUser.USER_URL + GitlabSSHKey.KEYS_URL + query.toString(); return dispatch().to(tailUrl,...
java
public GitlabSSHKey createSSHKey(String title, String key) throws IOException { Query query = new Query() .append("title", title) .append("key", key); String tailUrl = GitlabUser.USER_URL + GitlabSSHKey.KEYS_URL + query.toString(); return dispatch().to(tailUrl,...
[ "public", "GitlabSSHKey", "createSSHKey", "(", "String", "title", ",", "String", "key", ")", "throws", "IOException", "{", "Query", "query", "=", "new", "Query", "(", ")", ".", "append", "(", "\"title\"", ",", "title", ")", ".", "append", "(", "\"key\"", ...
Create a new ssh key for the authenticated user. @param title The title of the ssh key @param key The public key @return The new GitlabSSHKey @throws IOException on gitlab api call error
[ "Create", "a", "new", "ssh", "key", "for", "the", "authenticated", "user", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L404-L413
115,714
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.deleteSSHKey
public void deleteSSHKey(Integer targetUserId, Integer targetKeyId) throws IOException { String tailUrl = GitlabUser.USERS_URL + "/" + targetUserId + GitlabSSHKey.KEYS_URL + "/" + targetKeyId; retrieve().method(DELETE).to(tailUrl, Void.class); }
java
public void deleteSSHKey(Integer targetUserId, Integer targetKeyId) throws IOException { String tailUrl = GitlabUser.USERS_URL + "/" + targetUserId + GitlabSSHKey.KEYS_URL + "/" + targetKeyId; retrieve().method(DELETE).to(tailUrl, Void.class); }
[ "public", "void", "deleteSSHKey", "(", "Integer", "targetUserId", ",", "Integer", "targetKeyId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabUser", ".", "USERS_URL", "+", "\"/\"", "+", "targetUserId", "+", "GitlabSSHKey", ".", "KEYS_URL", ...
Delete user's ssh key @param targetUserId The id of the Gitlab user @param targetKeyId The id of the Gitlab ssh key @throws IOException on gitlab api call error
[ "Delete", "user", "s", "ssh", "key" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L422-L425
115,715
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getSSHKeys
public List<GitlabSSHKey> getSSHKeys(Integer targetUserId) throws IOException { String tailUrl = GitlabUser.USERS_URL + "/" + targetUserId + GitlabSSHKey.KEYS_URL; return Arrays.asList(retrieve().to(tailUrl, GitlabSSHKey[].class)); }
java
public List<GitlabSSHKey> getSSHKeys(Integer targetUserId) throws IOException { String tailUrl = GitlabUser.USERS_URL + "/" + targetUserId + GitlabSSHKey.KEYS_URL; return Arrays.asList(retrieve().to(tailUrl, GitlabSSHKey[].class)); }
[ "public", "List", "<", "GitlabSSHKey", ">", "getSSHKeys", "(", "Integer", "targetUserId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabUser", ".", "USERS_URL", "+", "\"/\"", "+", "targetUserId", "+", "GitlabSSHKey", ".", "KEYS_URL", ";", ...
Gets all ssh keys for a user @param targetUserId The id of the GitLab User @return The list of user ssh keys @throws IOException on gitlab api call error
[ "Gets", "all", "ssh", "keys", "for", "a", "user" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L435-L438
115,716
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getSSHKey
public GitlabSSHKey getSSHKey(Integer keyId) throws IOException { String tailUrl = GitlabSSHKey.KEYS_URL + "/" + keyId; return retrieve().to(tailUrl, GitlabSSHKey.class); }
java
public GitlabSSHKey getSSHKey(Integer keyId) throws IOException { String tailUrl = GitlabSSHKey.KEYS_URL + "/" + keyId; return retrieve().to(tailUrl, GitlabSSHKey.class); }
[ "public", "GitlabSSHKey", "getSSHKey", "(", "Integer", "keyId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabSSHKey", ".", "KEYS_URL", "+", "\"/\"", "+", "keyId", ";", "return", "retrieve", "(", ")", ".", "to", "(", "tailUrl", ",", "...
Get key with user information by ID of an SSH key. @param keyId The ID of an SSH key @return The SSH key with user information @throws IOException on gitlab api call error
[ "Get", "key", "with", "user", "information", "by", "ID", "of", "an", "SSH", "key", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L447-L450
115,717
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.deleteUser
public void deleteUser(Integer targetUserId) throws IOException { String tailUrl = GitlabUser.USERS_URL + "/" + targetUserId; retrieve().method(DELETE).to(tailUrl, Void.class); }
java
public void deleteUser(Integer targetUserId) throws IOException { String tailUrl = GitlabUser.USERS_URL + "/" + targetUserId; retrieve().method(DELETE).to(tailUrl, Void.class); }
[ "public", "void", "deleteUser", "(", "Integer", "targetUserId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabUser", ".", "USERS_URL", "+", "\"/\"", "+", "targetUserId", ";", "retrieve", "(", ")", ".", "method", "(", "DELETE", ")", ".",...
Delete a user @param targetUserId The target User ID @throws IOException on gitlab api call error
[ "Delete", "a", "user" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L458-L461
115,718
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getGroup
public GitlabGroup getGroup(String path) throws IOException { String tailUrl = GitlabGroup.URL + "/" + URLEncoder.encode(path, "UTF-8"); return retrieve().to(tailUrl, GitlabGroup.class); }
java
public GitlabGroup getGroup(String path) throws IOException { String tailUrl = GitlabGroup.URL + "/" + URLEncoder.encode(path, "UTF-8"); return retrieve().to(tailUrl, GitlabGroup.class); }
[ "public", "GitlabGroup", "getGroup", "(", "String", "path", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabGroup", ".", "URL", "+", "\"/\"", "+", "URLEncoder", ".", "encode", "(", "path", ",", "\"UTF-8\"", ")", ";", "return", "retrieve",...
Get a group by path @param path Path of the group @return {@link GitlabGroup} object @throws IOException on gitlab api call error
[ "Get", "a", "group", "by", "path" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L475-L478
115,719
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getGroupProjects
public List<GitlabProject> getGroupProjects(Integer groupId) { String tailUrl = GitlabGroup.URL + "/" + groupId + GitlabProject.URL + PARAM_MAX_ITEMS_PER_PAGE; return retrieve().getAll(tailUrl, GitlabProject[].class); }
java
public List<GitlabProject> getGroupProjects(Integer groupId) { String tailUrl = GitlabGroup.URL + "/" + groupId + GitlabProject.URL + PARAM_MAX_ITEMS_PER_PAGE; return retrieve().getAll(tailUrl, GitlabProject[].class); }
[ "public", "List", "<", "GitlabProject", ">", "getGroupProjects", "(", "Integer", "groupId", ")", "{", "String", "tailUrl", "=", "GitlabGroup", ".", "URL", "+", "\"/\"", "+", "groupId", "+", "GitlabProject", ".", "URL", "+", "PARAM_MAX_ITEMS_PER_PAGE", ";", "re...
Get all the projects for a group. @param groupId the target group's id. @return a list of projects for the group
[ "Get", "all", "the", "projects", "for", "a", "group", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L513-L516
115,720
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getGroupMembers
public List<GitlabGroupMember> getGroupMembers(Integer groupId) { String tailUrl = GitlabGroup.URL + "/" + groupId + GitlabGroupMember.URL + PARAM_MAX_ITEMS_PER_PAGE; return retrieve().getAll(tailUrl, GitlabGroupMember[].class); }
java
public List<GitlabGroupMember> getGroupMembers(Integer groupId) { String tailUrl = GitlabGroup.URL + "/" + groupId + GitlabGroupMember.URL + PARAM_MAX_ITEMS_PER_PAGE; return retrieve().getAll(tailUrl, GitlabGroupMember[].class); }
[ "public", "List", "<", "GitlabGroupMember", ">", "getGroupMembers", "(", "Integer", "groupId", ")", "{", "String", "tailUrl", "=", "GitlabGroup", ".", "URL", "+", "\"/\"", "+", "groupId", "+", "GitlabGroupMember", ".", "URL", "+", "PARAM_MAX_ITEMS_PER_PAGE", ";"...
Gets all members of a Group @param groupId The id of the GitLab Group @return The Group Members
[ "Gets", "all", "members", "of", "a", "Group" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L534-L537
115,721
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.updateGroup
public GitlabGroup updateGroup(GitlabGroup group, GitlabUser sudoUser) throws IOException { Query query = new Query() .appendIf("name", group.getName()) .appendIf("path", group.getPath()) .appendIf("description", group.getDescription()) .appendIf(...
java
public GitlabGroup updateGroup(GitlabGroup group, GitlabUser sudoUser) throws IOException { Query query = new Query() .appendIf("name", group.getName()) .appendIf("path", group.getPath()) .appendIf("description", group.getDescription()) .appendIf(...
[ "public", "GitlabGroup", "updateGroup", "(", "GitlabGroup", "group", ",", "GitlabUser", "sudoUser", ")", "throws", "IOException", "{", "Query", "query", "=", "new", "Query", "(", ")", ".", "appendIf", "(", "\"name\"", ",", "group", ".", "getName", "(", ")", ...
Updates a Group @param group the group object @param sudoUser The user to create the group on behalf of @return The GitLab Group @throws IOException on gitlab api call error
[ "Updates", "a", "Group" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L689-L708
115,722
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.deleteGroup
public void deleteGroup(Integer groupId) throws IOException { String tailUrl = GitlabGroup.URL + "/" + groupId; retrieve().method(DELETE).to(tailUrl, Void.class); }
java
public void deleteGroup(Integer groupId) throws IOException { String tailUrl = GitlabGroup.URL + "/" + groupId; retrieve().method(DELETE).to(tailUrl, Void.class); }
[ "public", "void", "deleteGroup", "(", "Integer", "groupId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabGroup", ".", "URL", "+", "\"/\"", "+", "groupId", ";", "retrieve", "(", ")", ".", "method", "(", "DELETE", ")", ".", "to", "("...
Delete a group. @param groupId the group id @throws IOException on gitlab api call error
[ "Delete", "a", "group", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L770-L773
115,723
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getAllProjects
public List<GitlabProject> getAllProjects() { String tailUrl = GitlabProject.URL; return retrieve().getAll(tailUrl, GitlabProject[].class); }
java
public List<GitlabProject> getAllProjects() { String tailUrl = GitlabProject.URL; return retrieve().getAll(tailUrl, GitlabProject[].class); }
[ "public", "List", "<", "GitlabProject", ">", "getAllProjects", "(", ")", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", ";", "return", "retrieve", "(", ")", ".", "getAll", "(", "tailUrl", ",", "GitlabProject", "[", "]", ".", "class", ")", ";...
Get's all projects in Gitlab, requires sudo user @return A list of gitlab projects
[ "Get", "s", "all", "projects", "in", "Gitlab", "requires", "sudo", "user" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L780-L783
115,724
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getProject
public GitlabProject getProject(Serializable projectId) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId); return retrieve().to(tailUrl, GitlabProject.class); }
java
public GitlabProject getProject(Serializable projectId) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId); return retrieve().to(tailUrl, GitlabProject.class); }
[ "public", "GitlabProject", "getProject", "(", "Serializable", "projectId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "sanitizeProjectId", "(", "projectId", ")", ";", "return", "retrieve", "(", ")...
Get Project by project Id @param projectId - gitlab project Id @return {@link GitlabProject} @throws IOException on gitlab api call error
[ "Get", "Project", "by", "project", "Id" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L792-L795
115,725
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getProject
public GitlabProject getProject(String namespace, String projectName) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeGroupId(namespace) + "%2F" + sanitizeProjectId(projectName); return retrieve().to(tailUrl, GitlabProject.class); }
java
public GitlabProject getProject(String namespace, String projectName) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeGroupId(namespace) + "%2F" + sanitizeProjectId(projectName); return retrieve().to(tailUrl, GitlabProject.class); }
[ "public", "GitlabProject", "getProject", "(", "String", "namespace", ",", "String", "projectName", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "sanitizeGroupId", "(", "namespace", ")", "+", "\"%2F\...
use namespace & project name to get project
[ "use", "namespace", "&", "project", "name", "to", "get", "project" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L800-L803
115,726
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getProjectsWithPagination
public List<GitlabProject> getProjectsWithPagination(int page, int perPage) throws IOException { Pagination pagination = new Pagination() .withPage(page) .withPerPage(perPage); return getProjectsWithPagination(pagination); }
java
public List<GitlabProject> getProjectsWithPagination(int page, int perPage) throws IOException { Pagination pagination = new Pagination() .withPage(page) .withPerPage(perPage); return getProjectsWithPagination(pagination); }
[ "public", "List", "<", "GitlabProject", ">", "getProjectsWithPagination", "(", "int", "page", ",", "int", "perPage", ")", "throws", "IOException", "{", "Pagination", "pagination", "=", "new", "Pagination", "(", ")", ".", "withPage", "(", "page", ")", ".", "w...
Get a list of projects of size perPage accessible by the authenticated user. @param page page offset. @param perPage number elements to get after page offset. @return A list of gitlab projects @throws IOException on Gitlab API call error
[ "Get", "a", "list", "of", "projects", "of", "size", "perPage", "accessible", "by", "the", "authenticated", "user", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L839-L844
115,727
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getProjectsWithPagination
public List<GitlabProject> getProjectsWithPagination(Pagination pagination) throws IOException { StringBuilder tailUrl = new StringBuilder(GitlabProject.URL); if (pagination != null) { Query query = pagination.asQuery(); tailUrl.append(query.toString()); } retur...
java
public List<GitlabProject> getProjectsWithPagination(Pagination pagination) throws IOException { StringBuilder tailUrl = new StringBuilder(GitlabProject.URL); if (pagination != null) { Query query = pagination.asQuery(); tailUrl.append(query.toString()); } retur...
[ "public", "List", "<", "GitlabProject", ">", "getProjectsWithPagination", "(", "Pagination", "pagination", ")", "throws", "IOException", "{", "StringBuilder", "tailUrl", "=", "new", "StringBuilder", "(", "GitlabProject", ".", "URL", ")", ";", "if", "(", "paginatio...
Get a list of projects by pagination accessible by the authenticated user. @param pagination @return @throws IOException on gitlab api call error
[ "Get", "a", "list", "of", "projects", "by", "pagination", "accessible", "by", "the", "authenticated", "user", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L853-L862
115,728
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getOwnedProjects
public List<GitlabProject> getOwnedProjects() throws IOException { Query query = new Query().append("owned", "true"); query.mergeWith(new Pagination().withPerPage(Pagination.MAX_ITEMS_PER_PAGE).asQuery()); String tailUrl = GitlabProject.URL + query.toString(); return retrieve().getAll(ta...
java
public List<GitlabProject> getOwnedProjects() throws IOException { Query query = new Query().append("owned", "true"); query.mergeWith(new Pagination().withPerPage(Pagination.MAX_ITEMS_PER_PAGE).asQuery()); String tailUrl = GitlabProject.URL + query.toString(); return retrieve().getAll(ta...
[ "public", "List", "<", "GitlabProject", ">", "getOwnedProjects", "(", ")", "throws", "IOException", "{", "Query", "query", "=", "new", "Query", "(", ")", ".", "append", "(", "\"owned\"", ",", "\"true\"", ")", ";", "query", ".", "mergeWith", "(", "new", "...
Get a list of projects owned by the authenticated user. @return A list of gitlab projects @throws IOException on gitlab api call error
[ "Get", "a", "list", "of", "projects", "owned", "by", "the", "authenticated", "user", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L870-L875
115,729
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getProjectsViaSudoWithPagination
public List<GitlabProject> getProjectsViaSudoWithPagination(GitlabUser user, int page, int perPage) throws IOException { Pagination pagination = new Pagination() .withPage(page) .withPerPage(perPage); return getProjectsViaSudoWithPagination(user, pagination); }
java
public List<GitlabProject> getProjectsViaSudoWithPagination(GitlabUser user, int page, int perPage) throws IOException { Pagination pagination = new Pagination() .withPage(page) .withPerPage(perPage); return getProjectsViaSudoWithPagination(user, pagination); }
[ "public", "List", "<", "GitlabProject", ">", "getProjectsViaSudoWithPagination", "(", "GitlabUser", "user", ",", "int", "page", ",", "int", "perPage", ")", "throws", "IOException", "{", "Pagination", "pagination", "=", "new", "Pagination", "(", ")", ".", "withPa...
Get a list of projects of perPage elements accessible by the authenticated user given page offset @param user Gitlab User to invoke sudo with @param page Page offset @param perPage Number of elements to get after page offset @return A list of gitlab projects @throws IOException Gitlab API call error
[ "Get", "a", "list", "of", "projects", "of", "perPage", "elements", "accessible", "by", "the", "authenticated", "user", "given", "page", "offset" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L926-L931
115,730
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getProjectsViaSudoWithPagination
public List<GitlabProject> getProjectsViaSudoWithPagination(GitlabUser user, Pagination pagination) throws IOException { StringBuilder tailUrl = new StringBuilder(GitlabProject.URL); Query query = new Query() .appendIf(PARAM_SUDO, user.getId()); if (pagination != null) { ...
java
public List<GitlabProject> getProjectsViaSudoWithPagination(GitlabUser user, Pagination pagination) throws IOException { StringBuilder tailUrl = new StringBuilder(GitlabProject.URL); Query query = new Query() .appendIf(PARAM_SUDO, user.getId()); if (pagination != null) { ...
[ "public", "List", "<", "GitlabProject", ">", "getProjectsViaSudoWithPagination", "(", "GitlabUser", "user", ",", "Pagination", "pagination", ")", "throws", "IOException", "{", "StringBuilder", "tailUrl", "=", "new", "StringBuilder", "(", "GitlabProject", ".", "URL", ...
Get a list of projects of with Pagination. @param user Gitlab User to invoke sudo with @param pagination @return A list of gitlab projects @throws IOException Gitlab API call error
[ "Get", "a", "list", "of", "projects", "of", "with", "Pagination", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L941-L953
115,731
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getNamespaces
public List<GitlabNamespace> getNamespaces() { String tailUrl = GitlabNamespace.URL + PARAM_MAX_ITEMS_PER_PAGE; return retrieve().getAll(tailUrl, GitlabNamespace[].class); }
java
public List<GitlabNamespace> getNamespaces() { String tailUrl = GitlabNamespace.URL + PARAM_MAX_ITEMS_PER_PAGE; return retrieve().getAll(tailUrl, GitlabNamespace[].class); }
[ "public", "List", "<", "GitlabNamespace", ">", "getNamespaces", "(", ")", "{", "String", "tailUrl", "=", "GitlabNamespace", ".", "URL", "+", "PARAM_MAX_ITEMS_PER_PAGE", ";", "return", "retrieve", "(", ")", ".", "getAll", "(", "tailUrl", ",", "GitlabNamespace", ...
Get a list of the namespaces of the authenticated user. If the user is an administrator, a list of all namespaces in the GitLab instance is shown. @return A list of gitlab namespace
[ "Get", "a", "list", "of", "the", "namespaces", "of", "the", "authenticated", "user", ".", "If", "the", "user", "is", "an", "administrator", "a", "list", "of", "all", "namespaces", "in", "the", "GitLab", "instance", "is", "shown", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L961-L964
115,732
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.uploadFile
public GitlabUpload uploadFile(GitlabProject project, File file) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(project.getId()) + GitlabUpload.URL; return dispatch().withAttachment("file", file).to(tailUrl, GitlabUpload.class); }
java
public GitlabUpload uploadFile(GitlabProject project, File file) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(project.getId()) + GitlabUpload.URL; return dispatch().withAttachment("file", file).to(tailUrl, GitlabUpload.class); }
[ "public", "GitlabUpload", "uploadFile", "(", "GitlabProject", "project", ",", "File", "file", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "sanitizeProjectId", "(", "project", ".", "getId", "(", "...
Uploads a file to a project @param project @param file @return @throws IOException on gitlab api call error
[ "Uploads", "a", "file", "to", "a", "project" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L974-L977
115,733
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getProjectJobs
public List<GitlabJob> getProjectJobs(Integer projectId) { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabJob.URL + PARAM_MAX_ITEMS_PER_PAGE; return retrieve().getAll(tailUrl, GitlabJob[].class); }
java
public List<GitlabJob> getProjectJobs(Integer projectId) { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabJob.URL + PARAM_MAX_ITEMS_PER_PAGE; return retrieve().getAll(tailUrl, GitlabJob[].class); }
[ "public", "List", "<", "GitlabJob", ">", "getProjectJobs", "(", "Integer", "projectId", ")", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "sanitizeProjectId", "(", "projectId", ")", "+", "GitlabJob", ".", "URL", "+", "PARAM_...
Gets a list of a project's jobs in Gitlab @param projectId the project id @return A list of project jobs
[ "Gets", "a", "list", "of", "a", "project", "s", "jobs", "in", "Gitlab" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L995-L998
115,734
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getProjectJob
public GitlabJob getProjectJob(Integer projectId, Integer jobId) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabJob.URL + "/" + jobId; return retrieve().to(tailUrl, GitlabJob.class); }
java
public GitlabJob getProjectJob(Integer projectId, Integer jobId) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabJob.URL + "/" + jobId; return retrieve().to(tailUrl, GitlabJob.class); }
[ "public", "GitlabJob", "getProjectJob", "(", "Integer", "projectId", ",", "Integer", "jobId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "sanitizeProjectId", "(", "projectId", ")", "+", "GitlabJob...
Gets a build for a project @param projectId the project id @param jobId the build id @return A list of project jobs @throws IOException on gitlab api call error
[ "Gets", "a", "build", "for", "a", "project" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L1087-L1090
115,735
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getJobArtifact
public byte[] getJobArtifact(GitlabProject project, GitlabJob job) throws IOException { return getJobArtifact(project.getId(), job.getId()); }
java
public byte[] getJobArtifact(GitlabProject project, GitlabJob job) throws IOException { return getJobArtifact(project.getId(), job.getId()); }
[ "public", "byte", "[", "]", "getJobArtifact", "(", "GitlabProject", "project", ",", "GitlabJob", "job", ")", "throws", "IOException", "{", "return", "getJobArtifact", "(", "project", ".", "getId", "(", ")", ",", "job", ".", "getId", "(", ")", ")", ";", "...
Get build artifacts of a project build @param project The Project @param job The build @throws IOException on gitlab api call error
[ "Get", "build", "artifacts", "of", "a", "project", "build" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L1099-L1101
115,736
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.createProject
public GitlabProject createProject(String name) throws IOException { return createProject(name, null, null, null, null, null, null, null, null, null, null); }
java
public GitlabProject createProject(String name) throws IOException { return createProject(name, null, null, null, null, null, null, null, null, null, null); }
[ "public", "GitlabProject", "createProject", "(", "String", "name", ")", "throws", "IOException", "{", "return", "createProject", "(", "name", ",", "null", ",", "null", ",", "null", ",", "null", ",", "null", ",", "null", ",", "null", ",", "null", ",", "nu...
Creates a private Project @param name The name of the project @return The GitLab Project @throws IOException on gitlab api call error
[ "Creates", "a", "private", "Project" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L1190-L1192
115,737
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.createUserProject
public GitlabProject createUserProject(Integer userId, String name) throws IOException { return createUserProject(userId, name, null, null, null, null, null, null, null, null, null); }
java
public GitlabProject createUserProject(Integer userId, String name) throws IOException { return createUserProject(userId, name, null, null, null, null, null, null, null, null, null); }
[ "public", "GitlabProject", "createUserProject", "(", "Integer", "userId", ",", "String", "name", ")", "throws", "IOException", "{", "return", "createUserProject", "(", "userId", ",", "name", ",", "null", ",", "null", ",", "null", ",", "null", ",", "null", ",...
Creates a Project for a specific User @param userId The id of the user to create the project for @param name The name of the project @return The GitLab Project @throws IOException on gitlab api call error
[ "Creates", "a", "Project", "for", "a", "specific", "User" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L1276-L1278
115,738
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.updateProject
@Deprecated public GitlabProject updateProject( Integer projectId, String name, String description, String defaultBranch, Boolean issuesEnabled, Boolean wallEnabled, Boolean mergeRequestsEnabled, Boolean wikiEnabled, ...
java
@Deprecated public GitlabProject updateProject( Integer projectId, String name, String description, String defaultBranch, Boolean issuesEnabled, Boolean wallEnabled, Boolean mergeRequestsEnabled, Boolean wikiEnabled, ...
[ "@", "Deprecated", "public", "GitlabProject", "updateProject", "(", "Integer", "projectId", ",", "String", "name", ",", "String", "description", ",", "String", "defaultBranch", ",", "Boolean", "issuesEnabled", ",", "Boolean", "wallEnabled", ",", "Boolean", "mergeReq...
Updates a Project @param projectId The id of the project to update @param name The name of the project @param description A description for the project, null otherwise @param defaultBranch The branch displayed in the Gitlab UI when a user navigates to the project @param issue...
[ "Updates", "a", "Project" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L1355-L1382
115,739
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.deleteProject
public void deleteProject(Serializable projectId) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId); retrieve().method(DELETE).to(tailUrl, null); }
java
public void deleteProject(Serializable projectId) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId); retrieve().method(DELETE).to(tailUrl, null); }
[ "public", "void", "deleteProject", "(", "Serializable", "projectId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "sanitizeProjectId", "(", "projectId", ")", ";", "retrieve", "(", ")", ".", "metho...
Delete a Project. @param projectId The id of the project to delete @throws IOException on gitlab api call error
[ "Delete", "a", "Project", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L1390-L1393
115,740
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getMergeRequestApprovals
public GitlabMergeRequestApprovals getMergeRequestApprovals(GitlabMergeRequest mr) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(mr.getProjectId()) + GitlabMergeRequest.URL + "/" + mr.getIid() + GitlabMergeRequestApprovals.URL; return retrieve().to(tai...
java
public GitlabMergeRequestApprovals getMergeRequestApprovals(GitlabMergeRequest mr) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(mr.getProjectId()) + GitlabMergeRequest.URL + "/" + mr.getIid() + GitlabMergeRequestApprovals.URL; return retrieve().to(tai...
[ "public", "GitlabMergeRequestApprovals", "getMergeRequestApprovals", "(", "GitlabMergeRequest", "mr", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "sanitizeProjectId", "(", "mr", ".", "getProjectId", "(",...
Get information about the approvals present and required for a merge request EE only.
[ "Get", "information", "about", "the", "approvals", "present", "and", "required", "for", "a", "merge", "request", "EE", "only", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L1494-L1498
115,741
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.setMergeRequestApprovals
public GitlabMergeRequestApprovals setMergeRequestApprovals(GitlabMergeRequest mr, int count) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(mr.getProjectId()) + GitlabMergeRequest.URL + "/" + mr.getIid() + GitlabMergeRequestApprovals.URL; return dispat...
java
public GitlabMergeRequestApprovals setMergeRequestApprovals(GitlabMergeRequest mr, int count) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(mr.getProjectId()) + GitlabMergeRequest.URL + "/" + mr.getIid() + GitlabMergeRequestApprovals.URL; return dispat...
[ "public", "GitlabMergeRequestApprovals", "setMergeRequestApprovals", "(", "GitlabMergeRequest", "mr", ",", "int", "count", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "sanitizeProjectId", "(", "mr", "....
Set the number of required approvers. EE only.
[ "Set", "the", "number", "of", "required", "approvers", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L1505-L1511
115,742
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.cherryPick
public GitlabCommit cherryPick(Serializable projectId, String sha, String targetBranchName) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + "/repository/commits/" + sha + "/cherry_pick"; return retrieve().with("branch", targetBranchName).to(tailUrl, GitlabC...
java
public GitlabCommit cherryPick(Serializable projectId, String sha, String targetBranchName) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + "/repository/commits/" + sha + "/cherry_pick"; return retrieve().with("branch", targetBranchName).to(tailUrl, GitlabC...
[ "public", "GitlabCommit", "cherryPick", "(", "Serializable", "projectId", ",", "String", "sha", ",", "String", "targetBranchName", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "sanitizeProjectId", "("...
Cherry picks a commit. @param projectId The id of the project @param sha The sha of the commit @param targetBranchName The branch on which the commit must be cherry-picked @return the commit of the cherry-pick. @throws IOException on gitlab api call error
[ "Cherry", "picks", "a", "commit", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L1539-L1542
115,743
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getMergeRequestByIid
public GitlabMergeRequest getMergeRequestByIid(Serializable projectId, Integer mergeRequestIid) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabMergeRequest.URL + "/" + mergeRequestIid; return retrieve().to(tailUrl, GitlabMergeRequest.class); }
java
public GitlabMergeRequest getMergeRequestByIid(Serializable projectId, Integer mergeRequestIid) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabMergeRequest.URL + "/" + mergeRequestIid; return retrieve().to(tailUrl, GitlabMergeRequest.class); }
[ "public", "GitlabMergeRequest", "getMergeRequestByIid", "(", "Serializable", "projectId", ",", "Integer", "mergeRequestIid", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "sanitizeProjectId", "(", "project...
Return Merge Request. @param projectId The id of the project @param mergeRequestIid The internal id of the merge request @return the Gitlab Merge Request @throws IOException on gitlab api call error
[ "Return", "Merge", "Request", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L1557-L1560
115,744
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.createMergeRequest
public GitlabMergeRequest createMergeRequest(Serializable projectId, String sourceBranch, String targetBranch, Integer assigneeId, String title) throws IOException { Query query = new Query() .appendIf("target_branch", targetBranch) ...
java
public GitlabMergeRequest createMergeRequest(Serializable projectId, String sourceBranch, String targetBranch, Integer assigneeId, String title) throws IOException { Query query = new Query() .appendIf("target_branch", targetBranch) ...
[ "public", "GitlabMergeRequest", "createMergeRequest", "(", "Serializable", "projectId", ",", "String", "sourceBranch", ",", "String", "targetBranch", ",", "Integer", "assigneeId", ",", "String", "title", ")", "throws", "IOException", "{", "Query", "query", "=", "new...
Create a new MergeRequest @param projectId @param sourceBranch @param targetBranch @param assigneeId @param title @return GitlabMergeRequest @throws IOException on gitlab api call error
[ "Create", "a", "new", "MergeRequest" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L1600-L1612
115,745
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.updateMergeRequest
public GitlabMergeRequest updateMergeRequest(Serializable projectId, Integer mergeRequestIid, String targetBranch, Integer assigneeId, String title, String description, String stateEvent, String labels) throws IOException ...
java
public GitlabMergeRequest updateMergeRequest(Serializable projectId, Integer mergeRequestIid, String targetBranch, Integer assigneeId, String title, String description, String stateEvent, String labels) throws IOException ...
[ "public", "GitlabMergeRequest", "updateMergeRequest", "(", "Serializable", "projectId", ",", "Integer", "mergeRequestIid", ",", "String", "targetBranch", ",", "Integer", "assigneeId", ",", "String", "title", ",", "String", "description", ",", "String", "stateEvent", "...
Updates a Merge Request @param projectId The id of the project @param mergeRequestIid The internal id of the merge request to update @param targetBranch The target branch of the merge request, otherwise null to leave it untouched @param assigneeId The id of the assignee, otherwise null to leave it untouc...
[ "Updates", "a", "Merge", "Request" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L1629-L1644
115,746
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getNote
public GitlabNote getNote(GitlabMergeRequest mergeRequest, Integer noteId) throws IOException { String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + mergeRequest.getIid() + GitlabNote.URL + "/" + noteId; retu...
java
public GitlabNote getNote(GitlabMergeRequest mergeRequest, Integer noteId) throws IOException { String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + mergeRequest.getIid() + GitlabNote.URL + "/" + noteId; retu...
[ "public", "GitlabNote", "getNote", "(", "GitlabMergeRequest", "mergeRequest", ",", "Integer", "noteId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "mergeRequest", ".", "getProjectId", "(", ")", "+...
Get a Note from a Merge Request. @param mergeRequest The merge request @param noteId The id of the note @return the Gitlab Note @throws IOException on gitlab api call error
[ "Get", "a", "Note", "from", "a", "Merge", "Request", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L1676-L1683
115,747
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.createDiscussion
public GitlabDiscussion createDiscussion(GitlabMergeRequest mergeRequest, String body, String positionBaseSha, String positionStartSha, String positionHeadSha) throws IOException { return createTextDiscussion(mergeRequest, body, null, positionBaseSha, positionStartSha, po...
java
public GitlabDiscussion createDiscussion(GitlabMergeRequest mergeRequest, String body, String positionBaseSha, String positionStartSha, String positionHeadSha) throws IOException { return createTextDiscussion(mergeRequest, body, null, positionBaseSha, positionStartSha, po...
[ "public", "GitlabDiscussion", "createDiscussion", "(", "GitlabMergeRequest", "mergeRequest", ",", "String", "body", ",", "String", "positionBaseSha", ",", "String", "positionStartSha", ",", "String", "positionHeadSha", ")", "throws", "IOException", "{", "return", "creat...
Create a discussion just with the required arguments. @param mergeRequest The merge request where the discussion is created. @param body The content of a discussion. @param positionBaseSha The base commit SHA in the source branch. @param positionStartSha The SHA referencing the commit in the targe...
[ "Create", "a", "discussion", "just", "with", "the", "required", "arguments", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L1750-L1756
115,748
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.checkRequiredCreateDiscussionArguments
private void checkRequiredCreateDiscussionArguments(String body, String positionBaseSha, String positionStartSha, String positionHeadSha) { if (body == null || body.isEmpty()) { throw new IllegalArgumentException("Missing required argument 'body'!"); } else if (positionBaseSha ==...
java
private void checkRequiredCreateDiscussionArguments(String body, String positionBaseSha, String positionStartSha, String positionHeadSha) { if (body == null || body.isEmpty()) { throw new IllegalArgumentException("Missing required argument 'body'!"); } else if (positionBaseSha ==...
[ "private", "void", "checkRequiredCreateDiscussionArguments", "(", "String", "body", ",", "String", "positionBaseSha", ",", "String", "positionStartSha", ",", "String", "positionHeadSha", ")", "{", "if", "(", "body", "==", "null", "||", "body", ".", "isEmpty", "(",...
Check if the required arguments to create a discussion are present and contain values. @param body The content of a discussion. @param positionBaseSha The base commit SHA in the source branch. @param positionStartSha The SHA referencing commit in target branch @param positionHeadSha The SHA referenci...
[ "Check", "if", "the", "required", "arguments", "to", "create", "a", "discussion", "are", "present", "and", "contain", "values", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L1858-L1869
115,749
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.resolveDiscussion
public GitlabDiscussion resolveDiscussion(GitlabMergeRequest mergeRequest, int discussionId, boolean resolved) throws IOException { String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + mergeRequest.getIid() + GitlabDi...
java
public GitlabDiscussion resolveDiscussion(GitlabMergeRequest mergeRequest, int discussionId, boolean resolved) throws IOException { String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + mergeRequest.getIid() + GitlabDi...
[ "public", "GitlabDiscussion", "resolveDiscussion", "(", "GitlabMergeRequest", "mergeRequest", ",", "int", "discussionId", ",", "boolean", "resolved", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "mergeR...
Resolve or unresolve a whole discussion of a merge request. @param mergeRequest The merge request of the discussion. @param discussionId The id of the discussion to resolve. @param resolved Resolve or unresolve the note. @return The discussion object. @throws IOException on a GitLab api call error
[ "Resolve", "or", "unresolve", "a", "whole", "discussion", "of", "a", "merge", "request", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L1881-L1889
115,750
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.addDiscussionNote
public GitlabNote addDiscussionNote(GitlabMergeRequest mergeRequest, int discussionId, String body) throws IOException { String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + mergeRequest.getIid() + GitlabDiscussion.UR...
java
public GitlabNote addDiscussionNote(GitlabMergeRequest mergeRequest, int discussionId, String body) throws IOException { String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + mergeRequest.getIid() + GitlabDiscussion.UR...
[ "public", "GitlabNote", "addDiscussionNote", "(", "GitlabMergeRequest", "mergeRequest", ",", "int", "discussionId", ",", "String", "body", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "mergeRequest", ...
Add a note to existing merge request discussion. @param mergeRequest The merge request of the discussion. @param discussionId The id of the discussion to add a note to. @param body The content of the discussion. @return The added note object. @throws IOException on a GitLab api call error
[ "Add", "a", "note", "to", "existing", "merge", "request", "discussion", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L1901-L1908
115,751
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.modifyDiscussionNote
public GitlabNote modifyDiscussionNote(GitlabMergeRequest mergeRequest, int discussionId, int noteId, String body, Boolean resolved) throws IOException { boolean bodyHasValue = false; if (body != null && !body.isEmpty()) { bodyHasValue = true; } if ((!bodyHasValue...
java
public GitlabNote modifyDiscussionNote(GitlabMergeRequest mergeRequest, int discussionId, int noteId, String body, Boolean resolved) throws IOException { boolean bodyHasValue = false; if (body != null && !body.isEmpty()) { bodyHasValue = true; } if ((!bodyHasValue...
[ "public", "GitlabNote", "modifyDiscussionNote", "(", "GitlabMergeRequest", "mergeRequest", ",", "int", "discussionId", ",", "int", "noteId", ",", "String", "body", ",", "Boolean", "resolved", ")", "throws", "IOException", "{", "boolean", "bodyHasValue", "=", "false"...
Modify or resolve an existing discussion note of the given merge request. @param mergeRequest The merge request of the discussion. @param discussionId The id of the discussion to modify. @param noteId The id of the discussion note. @param body The content of the discussion. @param resolved Resol...
[ "Modify", "or", "resolve", "an", "existing", "discussion", "note", "of", "the", "given", "merge", "request", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L1922-L1939
115,752
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.deleteDiscussionNote
public void deleteDiscussionNote(GitlabMergeRequest mergeRequest, int discussionId, int noteId) throws IOException { String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + mergeRequest.getIid() + GitlabDiscussion.URL + "/" + discus...
java
public void deleteDiscussionNote(GitlabMergeRequest mergeRequest, int discussionId, int noteId) throws IOException { String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + mergeRequest.getIid() + GitlabDiscussion.URL + "/" + discus...
[ "public", "void", "deleteDiscussionNote", "(", "GitlabMergeRequest", "mergeRequest", ",", "int", "discussionId", ",", "int", "noteId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "mergeRequest", ".",...
Delete a discussion note of a merge request. @param mergeRequest The merge request of the discussion. @param discussionId The id of the discussion to resolve. @param noteId The id of a discussion note. @return The deleted note object. @throws IOException on a GitLab api call error
[ "Delete", "a", "discussion", "note", "of", "a", "merge", "request", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L1951-L1957
115,753
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.createRepositoryFile
public GitlabSimpleRepositoryFile createRepositoryFile(GitlabProject project, String path, String branchName, String commitMsg, String content) throws IOException { String tailUrl = GitlabProject.URL + "/" + project.getId() + "/repository/files/" + sanitizePath(path); GitlabHTTPRequestor requestor = dis...
java
public GitlabSimpleRepositoryFile createRepositoryFile(GitlabProject project, String path, String branchName, String commitMsg, String content) throws IOException { String tailUrl = GitlabProject.URL + "/" + project.getId() + "/repository/files/" + sanitizePath(path); GitlabHTTPRequestor requestor = dis...
[ "public", "GitlabSimpleRepositoryFile", "createRepositoryFile", "(", "GitlabProject", "project", ",", "String", "path", ",", "String", "branchName", ",", "String", "commitMsg", ",", "String", "content", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "G...
Creates a new file in the repository @param project The Project @param path The file path inside the repository @param branchName The name of a repository branch @param commitMsg The commit message @param content The base64 encoded content of the file @throws IOException on gitlab api call error
[ "Creates", "a", "new", "file", "in", "the", "repository" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L2207-L2217
115,754
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.updateRepositoryFile
public GitlabSimpleRepositoryFile updateRepositoryFile(GitlabProject project, String path, String branchName, String commitMsg, String content) throws IOException { String tailUrl = GitlabProject.URL + "/" + project.getId() + "/repository/files/" + sanitizePath(path); GitlabHTTPRequestor requestor = ret...
java
public GitlabSimpleRepositoryFile updateRepositoryFile(GitlabProject project, String path, String branchName, String commitMsg, String content) throws IOException { String tailUrl = GitlabProject.URL + "/" + project.getId() + "/repository/files/" + sanitizePath(path); GitlabHTTPRequestor requestor = ret...
[ "public", "GitlabSimpleRepositoryFile", "updateRepositoryFile", "(", "GitlabProject", "project", ",", "String", "path", ",", "String", "branchName", ",", "String", "commitMsg", ",", "String", "content", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "G...
Updates the content of an existing file in the repository @param project The Project @param path The file path inside the repository @param branchName The name of a repository branch @param commitMsg The commit message @param content The base64 encoded content of the file @throws IOException on gitlab api...
[ "Updates", "the", "content", "of", "an", "existing", "file", "in", "the", "repository" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L2229-L2239
115,755
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.deleteRepositoryFile
public void deleteRepositoryFile(GitlabProject project, String path, String branchName, String commitMsg) throws IOException { Query query = new Query() .append("branch", branchName) .append("commit_message", commitMsg); String tailUrl = GitlabProject.URL + "/" + project....
java
public void deleteRepositoryFile(GitlabProject project, String path, String branchName, String commitMsg) throws IOException { Query query = new Query() .append("branch", branchName) .append("commit_message", commitMsg); String tailUrl = GitlabProject.URL + "/" + project....
[ "public", "void", "deleteRepositoryFile", "(", "GitlabProject", "project", ",", "String", "path", ",", "String", "branchName", ",", "String", "commitMsg", ")", "throws", "IOException", "{", "Query", "query", "=", "new", "Query", "(", ")", ".", "append", "(", ...
Deletes an existing file in the repository @param project The Project @param path The file path inside the repository @param branchName The name of a repository branch @param commitMsg The commit message @throws IOException on gitlab api call error
[ "Deletes", "an", "existing", "file", "in", "the", "repository" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L2250-L2256
115,756
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.updateNote
public GitlabNote updateNote(GitlabMergeRequest mergeRequest, Integer noteId, String body) throws IOException { Query query = new Query() .appendIf("body", body); String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + merg...
java
public GitlabNote updateNote(GitlabMergeRequest mergeRequest, Integer noteId, String body) throws IOException { Query query = new Query() .appendIf("body", body); String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + merg...
[ "public", "GitlabNote", "updateNote", "(", "GitlabMergeRequest", "mergeRequest", ",", "Integer", "noteId", ",", "String", "body", ")", "throws", "IOException", "{", "Query", "query", "=", "new", "Query", "(", ")", ".", "appendIf", "(", "\"body\"", ",", "body",...
Update a Merge Request Note @param mergeRequest The merge request @param noteId The id of the note @param body The content of the note @return the Gitlab Note @throws IOException on gitlab api call error
[ "Update", "a", "Merge", "Request", "Note" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L2267-L2275
115,757
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.deleteNote
public void deleteNote(GitlabMergeRequest mergeRequest, GitlabNote noteToDelete) throws IOException { String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + mergeRequest.getIid() + GitlabNote.URL + "/" + noteToDelete.getId(); retrieve().me...
java
public void deleteNote(GitlabMergeRequest mergeRequest, GitlabNote noteToDelete) throws IOException { String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + mergeRequest.getIid() + GitlabNote.URL + "/" + noteToDelete.getId(); retrieve().me...
[ "public", "void", "deleteNote", "(", "GitlabMergeRequest", "mergeRequest", ",", "GitlabNote", "noteToDelete", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "mergeRequest", ".", "getProjectId", "(", ")"...
Delete a Merge Request Note @param mergeRequest The merge request @param noteToDelete The note to delete @throws IOException on gitlab api call error
[ "Delete", "a", "Merge", "Request", "Note" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L2291-L2295
115,758
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.deleteBranch
public void deleteBranch(Serializable projectId, String branchName) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabBranch.URL + '/' + sanitizePath(branchName); retrieve().method(DELETE).to(tailUrl, Void.class); }
java
public void deleteBranch(Serializable projectId, String branchName) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabBranch.URL + '/' + sanitizePath(branchName); retrieve().method(DELETE).to(tailUrl, Void.class); }
[ "public", "void", "deleteBranch", "(", "Serializable", "projectId", ",", "String", "branchName", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "sanitizeProjectId", "(", "projectId", ")", "+", "Gitlab...
Delete Branch. @param projectId The id of the project @param branchName The name of the branch to delete @throws IOException on gitlab api call error
[ "Delete", "Branch", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L2345-L2348
115,759
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getProjectBadge
public GitlabBadge getProjectBadge(Serializable projectId, Integer badgeId) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabBadge.URL + "/" + badgeId; return retrieve().to(tailUrl, GitlabBadge.class); }
java
public GitlabBadge getProjectBadge(Serializable projectId, Integer badgeId) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabBadge.URL + "/" + badgeId; return retrieve().to(tailUrl, GitlabBadge.class); }
[ "public", "GitlabBadge", "getProjectBadge", "(", "Serializable", "projectId", ",", "Integer", "badgeId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "sanitizeProjectId", "(", "projectId", ")", "+", ...
Get project badge @param projectId The id of the project for which the badge should be retrieved @param badgeId The id of the badge that should be retrieved @return The badge with a given id @throws IOException on GitLab API call error
[ "Get", "project", "badge" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L2617-L2621
115,760
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.addProjectBadge
public GitlabBadge addProjectBadge(Serializable projectId, String linkUrl, String imageUrl) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabBadge.URL; return dispatch().with("link_url", linkUrl) .with("image_url", imageUrl) ...
java
public GitlabBadge addProjectBadge(Serializable projectId, String linkUrl, String imageUrl) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabBadge.URL; return dispatch().with("link_url", linkUrl) .with("image_url", imageUrl) ...
[ "public", "GitlabBadge", "addProjectBadge", "(", "Serializable", "projectId", ",", "String", "linkUrl", ",", "String", "imageUrl", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "sanitizeProjectId", "("...
Add project badge @param projectId The id of the project for which the badge should be added @param linkUrl The URL that the badge should link to @param imageUrl The URL to the badge image @return The created badge @throws IOException on GitLab API call error
[ "Add", "project", "badge" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L2633-L2638
115,761
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.editProjectBadge
public GitlabBadge editProjectBadge(Serializable projectId, Integer badgeId, String linkUrl, String imageUrl) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabBadge.URL + "/" + badgeId; GitlabHTTPRequestor requestor = retrieve().method(...
java
public GitlabBadge editProjectBadge(Serializable projectId, Integer badgeId, String linkUrl, String imageUrl) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabBadge.URL + "/" + badgeId; GitlabHTTPRequestor requestor = retrieve().method(...
[ "public", "GitlabBadge", "editProjectBadge", "(", "Serializable", "projectId", ",", "Integer", "badgeId", ",", "String", "linkUrl", ",", "String", "imageUrl", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", ...
Edit project badge @param projectId The id of the project for which the badge should be edited @param badgeId The id of the badge that should be edited @param linkUrl The URL that the badge should link to @param imageUrl The URL to the badge image @return The updated badge @throws IOException on GitLab API call ...
[ "Edit", "project", "badge" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L2651-L2658
115,762
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.deleteProjectBadge
public void deleteProjectBadge(Serializable projectId, Integer badgeId) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabBadge.URL + "/" + badgeId; retrieve().method(DELETE).to(tailUrl, Void.class); }
java
public void deleteProjectBadge(Serializable projectId, Integer badgeId) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabBadge.URL + "/" + badgeId; retrieve().method(DELETE).to(tailUrl, Void.class); }
[ "public", "void", "deleteProjectBadge", "(", "Serializable", "projectId", ",", "Integer", "badgeId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "sanitizeProjectId", "(", "projectId", ")", "+", "Gi...
Delete project badge @param projectId The id of the project for which the badge should be deleted @param badgeId The id of the badge that should be deleted @throws IOException on GitLab API call error
[ "Delete", "project", "badge" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L2667-L2671
115,763
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getGroupBadge
public GitlabBadge getGroupBadge(Integer groupId, Integer badgeId) throws IOException { String tailUrl = GitlabGroup.URL + "/" + groupId + GitlabBadge.URL + "/" + badgeId; return retrieve().to(tailUrl, GitlabBadge.class); }
java
public GitlabBadge getGroupBadge(Integer groupId, Integer badgeId) throws IOException { String tailUrl = GitlabGroup.URL + "/" + groupId + GitlabBadge.URL + "/" + badgeId; return retrieve().to(tailUrl, GitlabBadge.class); }
[ "public", "GitlabBadge", "getGroupBadge", "(", "Integer", "groupId", ",", "Integer", "badgeId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabGroup", ".", "URL", "+", "\"/\"", "+", "groupId", "+", "GitlabBadge", ".", "URL", "+", "\"/\"", ...
Get group badge @param groupId The id of the group for which the badge should be retrieved @param badgeId The id of the badge that should be retrieved @return The badge with a given id @throws IOException on GitLab API call error
[ "Get", "group", "badge" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L2695-L2699
115,764
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.addGroupBadge
public GitlabBadge addGroupBadge(Integer groupId, String linkUrl, String imageUrl) throws IOException { String tailUrl = GitlabGroup.URL + "/" + groupId + GitlabBadge.URL; return dispatch().with("link_url", linkUrl) .with("image_url", imageUrl) .to(tailUrl, GitlabBadge.cl...
java
public GitlabBadge addGroupBadge(Integer groupId, String linkUrl, String imageUrl) throws IOException { String tailUrl = GitlabGroup.URL + "/" + groupId + GitlabBadge.URL; return dispatch().with("link_url", linkUrl) .with("image_url", imageUrl) .to(tailUrl, GitlabBadge.cl...
[ "public", "GitlabBadge", "addGroupBadge", "(", "Integer", "groupId", ",", "String", "linkUrl", ",", "String", "imageUrl", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabGroup", ".", "URL", "+", "\"/\"", "+", "groupId", "+", "GitlabBadge", ...
Add group badge @param groupId The id of the group for which the badge should be added @param linkUrl The URL that the badge should link to @param imageUrl The URL to the badge image @return The created badge @throws IOException on GitLab API call error
[ "Add", "group", "badge" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L2711-L2716
115,765
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.editGroupBadge
public GitlabBadge editGroupBadge(Integer groupId, Integer badgeId, String linkUrl, String imageUrl) throws IOException { String tailUrl = GitlabGroup.URL + "/" + groupId + GitlabBadge.URL + "/" + badgeId; GitlabHTTPRequestor requestor = retrieve().method(PUT); requestor.with("li...
java
public GitlabBadge editGroupBadge(Integer groupId, Integer badgeId, String linkUrl, String imageUrl) throws IOException { String tailUrl = GitlabGroup.URL + "/" + groupId + GitlabBadge.URL + "/" + badgeId; GitlabHTTPRequestor requestor = retrieve().method(PUT); requestor.with("li...
[ "public", "GitlabBadge", "editGroupBadge", "(", "Integer", "groupId", ",", "Integer", "badgeId", ",", "String", "linkUrl", ",", "String", "imageUrl", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabGroup", ".", "URL", "+", "\"/\"", "+", "gr...
Edit group badge @param groupId The id of the group for which the badge should be edited @param badgeId The id of the badge that should be edited @param linkUrl The URL that the badge should link to @param imageUrl The URL to the badge image @return The updated badge @throws IOException on GitLab API call error
[ "Edit", "group", "badge" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L2729-L2736
115,766
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.deleteGroupBadge
public void deleteGroupBadge(Integer groupId, Integer badgeId) throws IOException { String tailUrl = GitlabGroup.URL + "/" + groupId + GitlabBadge.URL + "/" + badgeId; retrieve().method(DELETE).to(tailUrl, Void.class); }
java
public void deleteGroupBadge(Integer groupId, Integer badgeId) throws IOException { String tailUrl = GitlabGroup.URL + "/" + groupId + GitlabBadge.URL + "/" + badgeId; retrieve().method(DELETE).to(tailUrl, Void.class); }
[ "public", "void", "deleteGroupBadge", "(", "Integer", "groupId", ",", "Integer", "badgeId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabGroup", ".", "URL", "+", "\"/\"", "+", "groupId", "+", "GitlabBadge", ".", "URL", "+", "\"/\"", "+...
Delete group badge @param groupId The id of the group for which the badge should be deleted @param badgeId The id of the badge that should be deleted @throws IOException on GitLab API call error
[ "Delete", "group", "badge" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L2745-L2749
115,767
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getLabels
public List<GitlabLabel> getLabels(Serializable projectId) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabLabel.URL; GitlabLabel[] labels = retrieve().to(tailUrl, GitlabLabel[].class); return Arrays.asList(labels); }
java
public List<GitlabLabel> getLabels(Serializable projectId) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabLabel.URL; GitlabLabel[] labels = retrieve().to(tailUrl, GitlabLabel[].class); return Arrays.asList(labels); }
[ "public", "List", "<", "GitlabLabel", ">", "getLabels", "(", "Serializable", "projectId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "sanitizeProjectId", "(", "projectId", ")", "+", "GitlabLabel",...
Gets labels associated with a project. @param projectId The ID of the project. @return A non-null list of labels. @throws IOException on gitlab api call error
[ "Gets", "labels", "associated", "with", "a", "project", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L2758-L2763
115,768
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.updateLabel
public GitlabLabel updateLabel(Serializable projectId, String name, String newName, String newColor) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabLabel...
java
public GitlabLabel updateLabel(Serializable projectId, String name, String newName, String newColor) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabLabel...
[ "public", "GitlabLabel", "updateLabel", "(", "Serializable", "projectId", ",", "String", "name", ",", "String", "newName", ",", "String", "newColor", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "...
Updates an existing label. @param projectId The ID of the project containing the label. @param name The name of the label to update. @param newName The updated name. @param newColor The updated color. @return The updated, deserialized label. @throws IOException on gitlab api call error
[ "Updates", "an", "existing", "label", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L2850-L2864
115,769
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.createMilestone
public GitlabMilestone createMilestone( Serializable projectId, String title, String description, Date dueDate, Date startDate) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabMilestone.URL; ...
java
public GitlabMilestone createMilestone( Serializable projectId, String title, String description, Date dueDate, Date startDate) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabMilestone.URL; ...
[ "public", "GitlabMilestone", "createMilestone", "(", "Serializable", "projectId", ",", "String", "title", ",", "String", "description", ",", "Date", "dueDate", ",", "Date", "startDate", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ...
Cretaes a new project milestone. @param projectId The ID of the project. @param title The title of the milestone. @param description The description of the milestone. (Optional) @param dueDate The date the milestone is due. (Optional) @param startDate The start date of the milestone. (Optional) @return T...
[ "Cretaes", "a", "new", "project", "milestone", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L2895-L2914
115,770
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.createMilestone
public GitlabMilestone createMilestone( Serializable projectId, GitlabMilestone milestone) throws IOException { String title = milestone.getTitle(); String description = milestone.getDescription(); Date dateDue = milestone.getDueDate(); Date dateStart = milestone....
java
public GitlabMilestone createMilestone( Serializable projectId, GitlabMilestone milestone) throws IOException { String title = milestone.getTitle(); String description = milestone.getDescription(); Date dateDue = milestone.getDueDate(); Date dateStart = milestone....
[ "public", "GitlabMilestone", "createMilestone", "(", "Serializable", "projectId", ",", "GitlabMilestone", "milestone", ")", "throws", "IOException", "{", "String", "title", "=", "milestone", ".", "getTitle", "(", ")", ";", "String", "description", "=", "milestone", ...
Creates a new project milestone. @param projectId The ID of the project. @param milestone The milestone to create. @return The newly created, de-serialized milestone. @throws IOException on gitlab api call error
[ "Creates", "a", "new", "project", "milestone", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L2924-L2932
115,771
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getNamespaceMembers
public List<GitlabProjectMember> getNamespaceMembers(Integer namespaceId) throws IOException { String tailUrl = GitlabGroup.URL + "/" + namespaceId + GitlabProjectMember.URL; return Arrays.asList(retrieve().to(tailUrl, GitlabProjectMember[].class)); }
java
public List<GitlabProjectMember> getNamespaceMembers(Integer namespaceId) throws IOException { String tailUrl = GitlabGroup.URL + "/" + namespaceId + GitlabProjectMember.URL; return Arrays.asList(retrieve().to(tailUrl, GitlabProjectMember[].class)); }
[ "public", "List", "<", "GitlabProjectMember", ">", "getNamespaceMembers", "(", "Integer", "namespaceId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabGroup", ".", "URL", "+", "\"/\"", "+", "namespaceId", "+", "GitlabProjectMember", ".", "URL...
This will fail, if the given namespace is a user and not a group @param namespaceId Namespace ID @return A list of Gitlab Project members @throws IOException on gitlab api call error
[ "This", "will", "fail", "if", "the", "given", "namespace", "is", "a", "user", "and", "not", "a", "group" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3140-L3143
115,772
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.transfer
public void transfer(Integer namespaceId, Integer projectId) throws IOException { Query query = new Query().append("namespace", String.valueOf(namespaceId)); String tailUrl = GitlabProject.URL + "/" + projectId + "/transfer" + query.toString(); retrieve().method(PUT).to(tailUrl, Void.class); ...
java
public void transfer(Integer namespaceId, Integer projectId) throws IOException { Query query = new Query().append("namespace", String.valueOf(namespaceId)); String tailUrl = GitlabProject.URL + "/" + projectId + "/transfer" + query.toString(); retrieve().method(PUT).to(tailUrl, Void.class); ...
[ "public", "void", "transfer", "(", "Integer", "namespaceId", ",", "Integer", "projectId", ")", "throws", "IOException", "{", "Query", "query", "=", "new", "Query", "(", ")", ".", "append", "(", "\"namespace\"", ",", "String", ".", "valueOf", "(", "namespaceI...
Transfer a project to the given namespace @param namespaceId Namespace ID @param projectId Project ID @throws IOException on gitlab api call error
[ "Transfer", "a", "project", "to", "the", "given", "namespace" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3152-L3156
115,773
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.createDeployKey
public GitlabSSHKey createDeployKey(Integer targetProjectId, String title, String key) throws IOException { return createDeployKey(targetProjectId, title, key, false); }
java
public GitlabSSHKey createDeployKey(Integer targetProjectId, String title, String key) throws IOException { return createDeployKey(targetProjectId, title, key, false); }
[ "public", "GitlabSSHKey", "createDeployKey", "(", "Integer", "targetProjectId", ",", "String", "title", ",", "String", "key", ")", "throws", "IOException", "{", "return", "createDeployKey", "(", "targetProjectId", ",", "title", ",", "key", ",", "false", ")", ";"...
Create a new deploy key for the project @param targetProjectId The id of the Gitlab project @param title The title of the ssh key @param key The public key @return The new GitlabSSHKey @throws IOException on gitlab api call error
[ "Create", "a", "new", "deploy", "key", "for", "the", "project" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3167-L3169
115,774
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.createPushDeployKey
public GitlabSSHKey createPushDeployKey(Integer targetProjectId, String title, String key) throws IOException { return createDeployKey(targetProjectId, title, key, true); }
java
public GitlabSSHKey createPushDeployKey(Integer targetProjectId, String title, String key) throws IOException { return createDeployKey(targetProjectId, title, key, true); }
[ "public", "GitlabSSHKey", "createPushDeployKey", "(", "Integer", "targetProjectId", ",", "String", "title", ",", "String", "key", ")", "throws", "IOException", "{", "return", "createDeployKey", "(", "targetProjectId", ",", "title", ",", "key", ",", "true", ")", ...
Create a new deploy key for the project which can push. @param targetProjectId The id of the Gitlab project @param title The title of the ssh key @param key The public key @return The new GitlabSSHKey @throws IOException on gitlab api call error
[ "Create", "a", "new", "deploy", "key", "for", "the", "project", "which", "can", "push", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3180-L3182
115,775
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.deleteDeployKey
public void deleteDeployKey(Integer targetProjectId, Integer targetKeyId) throws IOException { String tailUrl = GitlabProject.URL + "/" + targetProjectId + GitlabSSHKey.DEPLOY_KEYS_URL + "/" + targetKeyId; retrieve().method(DELETE).to(tailUrl, Void.class); }
java
public void deleteDeployKey(Integer targetProjectId, Integer targetKeyId) throws IOException { String tailUrl = GitlabProject.URL + "/" + targetProjectId + GitlabSSHKey.DEPLOY_KEYS_URL + "/" + targetKeyId; retrieve().method(DELETE).to(tailUrl, Void.class); }
[ "public", "void", "deleteDeployKey", "(", "Integer", "targetProjectId", ",", "Integer", "targetKeyId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "targetProjectId", "+", "GitlabSSHKey", ".", "DEPLOY...
Delete a deploy key for a project @param targetProjectId The id of the Gitlab project @param targetKeyId The id of the Gitlab ssh key @throws IOException on gitlab api call error
[ "Delete", "a", "deploy", "key", "for", "a", "project" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3203-L3206
115,776
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getDeployKeys
public List<GitlabSSHKey> getDeployKeys(Integer targetProjectId) throws IOException { String tailUrl = GitlabProject.URL + "/" + targetProjectId + GitlabSSHKey.DEPLOY_KEYS_URL; return Arrays.asList(retrieve().to(tailUrl, GitlabSSHKey[].class)); }
java
public List<GitlabSSHKey> getDeployKeys(Integer targetProjectId) throws IOException { String tailUrl = GitlabProject.URL + "/" + targetProjectId + GitlabSSHKey.DEPLOY_KEYS_URL; return Arrays.asList(retrieve().to(tailUrl, GitlabSSHKey[].class)); }
[ "public", "List", "<", "GitlabSSHKey", ">", "getDeployKeys", "(", "Integer", "targetProjectId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "targetProjectId", "+", "GitlabSSHKey", ".", "DEPLOY_KEYS_U...
Gets all deploy keys for a project @param targetProjectId The id of the Gitlab project @return The list of project deploy keys @throws IOException on gitlab api call error
[ "Gets", "all", "deploy", "keys", "for", "a", "project" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3215-L3218
115,777
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getSystemHooks
public List<GitlabSystemHook> getSystemHooks() throws IOException { String tailUrl = GitlabSystemHook.URL; return Arrays.asList(retrieve().to(tailUrl, GitlabSystemHook[].class)); }
java
public List<GitlabSystemHook> getSystemHooks() throws IOException { String tailUrl = GitlabSystemHook.URL; return Arrays.asList(retrieve().to(tailUrl, GitlabSystemHook[].class)); }
[ "public", "List", "<", "GitlabSystemHook", ">", "getSystemHooks", "(", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabSystemHook", ".", "URL", ";", "return", "Arrays", ".", "asList", "(", "retrieve", "(", ")", ".", "to", "(", "tailUrl", ...
Get list of system hooks @return The system hooks list @throws IOException on gitlab api call error
[ "Get", "list", "of", "system", "hooks" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3231-L3234
115,778
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.addSystemHook
public GitlabSystemHook addSystemHook(String url) throws IOException { String tailUrl = GitlabSystemHook.URL; return dispatch().with("url", url).to(tailUrl, GitlabSystemHook.class); }
java
public GitlabSystemHook addSystemHook(String url) throws IOException { String tailUrl = GitlabSystemHook.URL; return dispatch().with("url", url).to(tailUrl, GitlabSystemHook.class); }
[ "public", "GitlabSystemHook", "addSystemHook", "(", "String", "url", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabSystemHook", ".", "URL", ";", "return", "dispatch", "(", ")", ".", "with", "(", "\"url\"", ",", "url", ")", ".", "to", ...
Add new system hook hook @param url System hook url @throws IOException on gitlab api call error
[ "Add", "new", "system", "hook", "hook" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3242-L3245
115,779
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.deleteSystemHook
public GitlabSystemHook deleteSystemHook(Integer hookId) throws IOException { String tailUrl = GitlabSystemHook.URL + "/" + hookId; return retrieve().method(DELETE).to(tailUrl, GitlabSystemHook.class); }
java
public GitlabSystemHook deleteSystemHook(Integer hookId) throws IOException { String tailUrl = GitlabSystemHook.URL + "/" + hookId; return retrieve().method(DELETE).to(tailUrl, GitlabSystemHook.class); }
[ "public", "GitlabSystemHook", "deleteSystemHook", "(", "Integer", "hookId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabSystemHook", ".", "URL", "+", "\"/\"", "+", "hookId", ";", "return", "retrieve", "(", ")", ".", "method", "(", "DELE...
Delete system hook @throws IOException on gitlab api call error
[ "Delete", "system", "hook" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3262-L3265
115,780
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.createCommitComment
public CommitComment createCommitComment(Serializable projectId, String sha, String note, String path, String line, String line_type) throws IOException { Query query = new Query() .append("id", projectId.toString()) .appendIf("sha", ...
java
public CommitComment createCommitComment(Serializable projectId, String sha, String note, String path, String line, String line_type) throws IOException { Query query = new Query() .append("id", projectId.toString()) .appendIf("sha", ...
[ "public", "CommitComment", "createCommitComment", "(", "Serializable", "projectId", ",", "String", "sha", ",", "String", "note", ",", "String", "path", ",", "String", "line", ",", "String", "line_type", ")", "throws", "IOException", "{", "Query", "query", "=", ...
Post comment to commit @param projectId (required) - The ID of a project @param sha (required) - The name of a repository branch or tag or if not given the default branch @param note (required) - Text of comment @param path (optional) - The file path @param line (optional) - The line number @param...
[ "Post", "comment", "to", "commit" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3312-L3325
115,781
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getCommitComments
public List<CommitComment> getCommitComments(Integer projectId, String sha) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + "/repository/commits/" + sha + CommitComment.URL; return Arrays.asList(retrieve().to(tailUrl, CommitComment[].class)); }
java
public List<CommitComment> getCommitComments(Integer projectId, String sha) throws IOException { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + "/repository/commits/" + sha + CommitComment.URL; return Arrays.asList(retrieve().to(tailUrl, CommitComment[].class)); }
[ "public", "List", "<", "CommitComment", ">", "getCommitComments", "(", "Integer", "projectId", ",", "String", "sha", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "sanitizeProjectId", "(", "projectId...
Get the comments of a commit @param projectId (required) - The ID of a project @param sha (required) - The name of a repository branch or tag or if not given the default branch @return A CommitComment @throws IOException on gitlab api call error @see <a href="http://doc.gitlab.com/ce/api/commits.html#post-commen...
[ "Get", "the", "comments", "of", "a", "commit" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3336-L3341
115,782
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getTag
public GitlabTag getTag(GitlabProject project, String tagName) throws IOException { String tailUrl = GitlabProject.URL + "/" + project.getId() + GitlabTag.URL + "/" + tagName; return retrieve().to(tailUrl, GitlabTag.class); }
java
public GitlabTag getTag(GitlabProject project, String tagName) throws IOException { String tailUrl = GitlabProject.URL + "/" + project.getId() + GitlabTag.URL + "/" + tagName; return retrieve().to(tailUrl, GitlabTag.class); }
[ "public", "GitlabTag", "getTag", "(", "GitlabProject", "project", ",", "String", "tagName", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "project", ".", "getId", "(", ")", "+", "GitlabTag", ".",...
Get a single repository tag in a specific project @param project (required) The ID or URL-encoded path of the project @param tagName (required) The name of the tag @return the found git tag object @throws IOException on gitlab api call error
[ "Get", "a", "single", "repository", "tag", "in", "a", "specific", "project" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3373-L3376
115,783
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getAllAwards
public List<GitlabAward> getAllAwards(GitlabMergeRequest mergeRequest) { String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + mergeRequest.getIid() + GitlabAward.URL + PARAM_MAX_ITEMS_PER_PAGE; return retrieve().getAll(tailUrl, GitlabAw...
java
public List<GitlabAward> getAllAwards(GitlabMergeRequest mergeRequest) { String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + mergeRequest.getIid() + GitlabAward.URL + PARAM_MAX_ITEMS_PER_PAGE; return retrieve().getAll(tailUrl, GitlabAw...
[ "public", "List", "<", "GitlabAward", ">", "getAllAwards", "(", "GitlabMergeRequest", "mergeRequest", ")", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "mergeRequest", ".", "getProjectId", "(", ")", "+", "GitlabMergeRequest", "....
Get all awards for a merge request @param mergeRequest
[ "Get", "all", "awards", "for", "a", "merge", "request" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3449-L3454
115,784
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getAward
public GitlabAward getAward(GitlabMergeRequest mergeRequest, Integer awardId) throws IOException { String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + mergeRequest.getIid() + GitlabAward.URL + "/" + awardId; return retrieve().to(tailUr...
java
public GitlabAward getAward(GitlabMergeRequest mergeRequest, Integer awardId) throws IOException { String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + mergeRequest.getIid() + GitlabAward.URL + "/" + awardId; return retrieve().to(tailUr...
[ "public", "GitlabAward", "getAward", "(", "GitlabMergeRequest", "mergeRequest", ",", "Integer", "awardId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "mergeRequest", ".", "getProjectId", "(", ")", ...
Get a specific award for a merge request @param mergeRequest @param awardId @throws IOException on gitlab api call error
[ "Get", "a", "specific", "award", "for", "a", "merge", "request" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3463-L3468
115,785
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.createAward
public GitlabAward createAward(GitlabMergeRequest mergeRequest, String awardName) throws IOException { Query query = new Query().append("name", awardName); String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + mergeRequest.getIid() + Gitl...
java
public GitlabAward createAward(GitlabMergeRequest mergeRequest, String awardName) throws IOException { Query query = new Query().append("name", awardName); String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + mergeRequest.getIid() + Gitl...
[ "public", "GitlabAward", "createAward", "(", "GitlabMergeRequest", "mergeRequest", ",", "String", "awardName", ")", "throws", "IOException", "{", "Query", "query", "=", "new", "Query", "(", ")", ".", "append", "(", "\"name\"", ",", "awardName", ")", ";", "Stri...
Create an award for a merge request @param mergeRequest @param awardName @throws IOException on gitlab api call error
[ "Create", "an", "award", "for", "a", "merge", "request" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3477-L3483
115,786
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.deleteAward
public void deleteAward(GitlabMergeRequest mergeRequest, GitlabAward award) throws IOException { String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + mergeRequest.getIid() + GitlabAward.URL + "/" + award.getId(); retrieve().method(DELET...
java
public void deleteAward(GitlabMergeRequest mergeRequest, GitlabAward award) throws IOException { String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() + GitlabMergeRequest.URL + "/" + mergeRequest.getIid() + GitlabAward.URL + "/" + award.getId(); retrieve().method(DELET...
[ "public", "void", "deleteAward", "(", "GitlabMergeRequest", "mergeRequest", ",", "GitlabAward", "award", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "mergeRequest", ".", "getProjectId", "(", ")", "...
Delete an award for a merge request @param mergeRequest @param award @throws IOException on gitlab api call error
[ "Delete", "an", "award", "for", "a", "merge", "request" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3492-L3497
115,787
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getAllAwards
public List<GitlabAward> getAllAwards(GitlabIssue issue) { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabAward.URL + PARAM_MAX_ITEMS_PER_PAGE; return retrieve().getAll(tailUrl, GitlabAward[].class); }
java
public List<GitlabAward> getAllAwards(GitlabIssue issue) { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabAward.URL + PARAM_MAX_ITEMS_PER_PAGE; return retrieve().getAll(tailUrl, GitlabAward[].class); }
[ "public", "List", "<", "GitlabAward", ">", "getAllAwards", "(", "GitlabIssue", "issue", ")", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "issue", ".", "getProjectId", "(", ")", "+", "GitlabIssue", ".", "URL", "+", "\"/\""...
Get all awards for an issue @param issue
[ "Get", "all", "awards", "for", "an", "issue" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3504-L3509
115,788
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getAward
public GitlabAward getAward(GitlabIssue issue, Integer awardId) throws IOException { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabAward.URL + "/" + awardId; return retrieve().to(tailUrl, GitlabAward.class); }
java
public GitlabAward getAward(GitlabIssue issue, Integer awardId) throws IOException { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabAward.URL + "/" + awardId; return retrieve().to(tailUrl, GitlabAward.class); }
[ "public", "GitlabAward", "getAward", "(", "GitlabIssue", "issue", ",", "Integer", "awardId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "issue", ".", "getProjectId", "(", ")", "+", "GitlabIssue"...
Get a specific award for an issue @param issue @param awardId @throws IOException on gitlab api call error
[ "Get", "a", "specific", "award", "for", "an", "issue" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3518-L3523
115,789
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.createAward
public GitlabAward createAward(GitlabIssue issue, Integer noteId, String awardName) throws IOException { Query query = new Query().append("name", awardName); String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabNote.URL + noteId ...
java
public GitlabAward createAward(GitlabIssue issue, Integer noteId, String awardName) throws IOException { Query query = new Query().append("name", awardName); String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabNote.URL + noteId ...
[ "public", "GitlabAward", "createAward", "(", "GitlabIssue", "issue", ",", "Integer", "noteId", ",", "String", "awardName", ")", "throws", "IOException", "{", "Query", "query", "=", "new", "Query", "(", ")", ".", "append", "(", "\"name\"", ",", "awardName", "...
Create an award for an issue note @param issue @param noteId @param awardName @throws IOException on gitlab api call error
[ "Create", "an", "award", "for", "an", "issue", "note" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3589-L3595
115,790
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.deleteAward
public void deleteAward(GitlabIssue issue, Integer noteId, GitlabAward award) throws IOException { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabNote.URL + noteId + GitlabAward.URL + "/" + award.getId(); retrieve().method(...
java
public void deleteAward(GitlabIssue issue, Integer noteId, GitlabAward award) throws IOException { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabNote.URL + noteId + GitlabAward.URL + "/" + award.getId(); retrieve().method(...
[ "public", "void", "deleteAward", "(", "GitlabIssue", "issue", ",", "Integer", "noteId", ",", "GitlabAward", "award", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "issue", ".", "getProjectId", "(",...
Delete an award for an issue note @param issue @param noteId @param award @throws IOException on gitlab api call error
[ "Delete", "an", "award", "for", "an", "issue", "note" ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3605-L3609
115,791
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getBuildVariables
public List<GitlabBuildVariable> getBuildVariables(Integer projectId) throws IOException { String tailUrl = GitlabProject.URL + "/" + projectId + GitlabBuildVariable.URL; GitlabBuildVariable[] variables = retrieve().to(tailUrl, GitlabBuildVariable[].class); return Arrays.asList(varia...
java
public List<GitlabBuildVariable> getBuildVariables(Integer projectId) throws IOException { String tailUrl = GitlabProject.URL + "/" + projectId + GitlabBuildVariable.URL; GitlabBuildVariable[] variables = retrieve().to(tailUrl, GitlabBuildVariable[].class); return Arrays.asList(varia...
[ "public", "List", "<", "GitlabBuildVariable", ">", "getBuildVariables", "(", "Integer", "projectId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "projectId", "+", "GitlabBuildVariable", ".", "URL", ...
Gets build variables associated with a project. @param projectId The ID of the project. @return A non-null list of variables. @throws IOException on gitlab api call error
[ "Gets", "build", "variables", "associated", "with", "a", "project", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3618-L3623
115,792
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.createBuildVariable
public GitlabBuildVariable createBuildVariable( Integer projectId, String key, String value) throws IOException { String tailUrl = GitlabProject.URL + "/" + projectId + GitlabBuildVariable.URL; return dispatch().with("key", key) .with("value", value) ...
java
public GitlabBuildVariable createBuildVariable( Integer projectId, String key, String value) throws IOException { String tailUrl = GitlabProject.URL + "/" + projectId + GitlabBuildVariable.URL; return dispatch().with("key", key) .with("value", value) ...
[ "public", "GitlabBuildVariable", "createBuildVariable", "(", "Integer", "projectId", ",", "String", "key", ",", "String", "value", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "projectId", "+", "Git...
Creates a new build variable. @param projectId The ID of the project containing the new variable. @param key The key of the variable. @param value The value of the variable @return The newly created variable. @throws IOException on gitlab api call error
[ "Creates", "a", "new", "build", "variable", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3675-L3683
115,793
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.createBuildVariable
public GitlabBuildVariable createBuildVariable(Integer projectId, GitlabBuildVariable variable) throws IOException { String key = variable.getKey(); String value = variable.getValue(); return createBuildVariable(projectId, key, value); }
java
public GitlabBuildVariable createBuildVariable(Integer projectId, GitlabBuildVariable variable) throws IOException { String key = variable.getKey(); String value = variable.getValue(); return createBuildVariable(projectId, key, value); }
[ "public", "GitlabBuildVariable", "createBuildVariable", "(", "Integer", "projectId", ",", "GitlabBuildVariable", "variable", ")", "throws", "IOException", "{", "String", "key", "=", "variable", ".", "getKey", "(", ")", ";", "String", "value", "=", "variable", ".",...
Creates a new variable. @param projectId The ID of the project containing the variable. @param variable The variable to create. @return The newly created variable.
[ "Creates", "a", "new", "variable", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3692-L3697
115,794
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.updateBuildVariable
public GitlabBuildVariable updateBuildVariable(Integer projectId, String key, String newValue) throws IOException { String tailUrl = GitlabProject.URL + "/" + projectId + GitlabB...
java
public GitlabBuildVariable updateBuildVariable(Integer projectId, String key, String newValue) throws IOException { String tailUrl = GitlabProject.URL + "/" + projectId + GitlabB...
[ "public", "GitlabBuildVariable", "updateBuildVariable", "(", "Integer", "projectId", ",", "String", "key", ",", "String", "newValue", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "projectId", "+", "...
Updates an existing variable. @param projectId The ID of the project containing the variable. @param key The key of the variable to update. @param newValue The updated value. @return The updated, deserialized variable. @throws IOException on gitlab api call error
[ "Updates", "an", "existing", "variable", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3736-L3748
115,795
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getPipelineTriggers
public List<GitlabTrigger> getPipelineTriggers(GitlabProject project) { if (!project.isJobsEnabled()) { // if the project has not allowed jobs, you will only get a 403 forbidden message which is // not helpful. throw new IllegalStateException("Jobs are not enabled for " + pro...
java
public List<GitlabTrigger> getPipelineTriggers(GitlabProject project) { if (!project.isJobsEnabled()) { // if the project has not allowed jobs, you will only get a 403 forbidden message which is // not helpful. throw new IllegalStateException("Jobs are not enabled for " + pro...
[ "public", "List", "<", "GitlabTrigger", ">", "getPipelineTriggers", "(", "GitlabProject", "project", ")", "{", "if", "(", "!", "project", ".", "isJobsEnabled", "(", ")", ")", "{", "// if the project has not allowed jobs, you will only get a 403 forbidden message which is", ...
Returns the list of build triggers for a project. @param project the project @return list of build triggers @throws IllegalStateException if jobs are not enabled for the project
[ "Returns", "the", "list", "of", "build", "triggers", "for", "a", "project", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3757-L3765
115,796
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.getEmailsOnPush
public GitlabServiceEmailOnPush getEmailsOnPush(Integer projectId) throws IOException { String tailUrl = GitlabProject.URL + "/" + projectId + GitlabServiceEmailOnPush.URL; return retrieve().to(tailUrl, GitlabServiceEmailOnPush.class); }
java
public GitlabServiceEmailOnPush getEmailsOnPush(Integer projectId) throws IOException { String tailUrl = GitlabProject.URL + "/" + projectId + GitlabServiceEmailOnPush.URL; return retrieve().to(tailUrl, GitlabServiceEmailOnPush.class); }
[ "public", "GitlabServiceEmailOnPush", "getEmailsOnPush", "(", "Integer", "projectId", ")", "throws", "IOException", "{", "String", "tailUrl", "=", "GitlabProject", ".", "URL", "+", "\"/\"", "+", "projectId", "+", "GitlabServiceEmailOnPush", ".", "URL", ";", "return"...
Gets email-on-push service setup for a projectId. @param projectId The ID of the project containing the variable. @throws IOException on gitlab api call error
[ "Gets", "email", "-", "on", "-", "push", "service", "setup", "for", "a", "projectId", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3773-L3776
115,797
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.updateEmailsOnPush
public boolean updateEmailsOnPush(Integer projectId, String emailAddress) throws IOException { GitlabServiceEmailOnPush emailOnPush = this.getEmailsOnPush(projectId); GitlabEmailonPushProperties properties = emailOnPush.getProperties(); String appendedRecipients = properties.getRecipients(); ...
java
public boolean updateEmailsOnPush(Integer projectId, String emailAddress) throws IOException { GitlabServiceEmailOnPush emailOnPush = this.getEmailsOnPush(projectId); GitlabEmailonPushProperties properties = emailOnPush.getProperties(); String appendedRecipients = properties.getRecipients(); ...
[ "public", "boolean", "updateEmailsOnPush", "(", "Integer", "projectId", ",", "String", "emailAddress", ")", "throws", "IOException", "{", "GitlabServiceEmailOnPush", "emailOnPush", "=", "this", ".", "getEmailsOnPush", "(", "projectId", ")", ";", "GitlabEmailonPushProper...
Update recipients for email-on-push service for a projectId. @param projectId The ID of the project containing the variable. @param emailAddress The emailaddress of the recipent who is going to receive push notification. @return @throws IOException on gitlab api call error
[ "Update", "recipients", "for", "email", "-", "on", "-", "push", "service", "for", "a", "projectId", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3786-L3803
115,798
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.searchProjects
public List<GitlabProject> searchProjects(String search) throws IOException { Query query = new Query() .append("search", search); String tailUrl = GitlabProject.URL + query.toString(); GitlabProject[] response = retrieve().to(tailUrl, GitlabProject[].class); return Array...
java
public List<GitlabProject> searchProjects(String search) throws IOException { Query query = new Query() .append("search", search); String tailUrl = GitlabProject.URL + query.toString(); GitlabProject[] response = retrieve().to(tailUrl, GitlabProject[].class); return Array...
[ "public", "List", "<", "GitlabProject", ">", "searchProjects", "(", "String", "search", ")", "throws", "IOException", "{", "Query", "query", "=", "new", "Query", "(", ")", ".", "append", "(", "\"search\"", ",", "search", ")", ";", "String", "tailUrl", "=",...
Get a list of projects accessible by the authenticated user by search. @return A list of gitlab projects @throws IOException on gitlab api call error
[ "Get", "a", "list", "of", "projects", "accessible", "by", "the", "authenticated", "user", "by", "search", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3870-L3876
115,799
timols/java-gitlab-api
src/main/java/org/gitlab/api/GitlabAPI.java
GitlabAPI.shareProjectWithGroup
public void shareProjectWithGroup(GitlabAccessLevel accessLevel, String expiration, GitlabGroup group, GitlabProject project) throws IOException { Query query = new Query() .append("group_id", group.getId().toString()) .append("group_access", String.valueOf(accessLevel.accessValu...
java
public void shareProjectWithGroup(GitlabAccessLevel accessLevel, String expiration, GitlabGroup group, GitlabProject project) throws IOException { Query query = new Query() .append("group_id", group.getId().toString()) .append("group_access", String.valueOf(accessLevel.accessValu...
[ "public", "void", "shareProjectWithGroup", "(", "GitlabAccessLevel", "accessLevel", ",", "String", "expiration", ",", "GitlabGroup", "group", ",", "GitlabProject", "project", ")", "throws", "IOException", "{", "Query", "query", "=", "new", "Query", "(", ")", ".", ...
Share a project with a group. @param accessLevel The permissions level to grant the group. @param group The group to share with. @param project The project to be shared. @param expiration Share expiration date in ISO 8601 format: 2016-09-26 or {@code null}. @throws IOException on gitlab api call error
[ "Share", "a", "project", "with", "a", "group", "." ]
f03eedf952cfbb40306be3bf9234dcf78fab029e
https://github.com/timols/java-gitlab-api/blob/f03eedf952cfbb40306be3bf9234dcf78fab029e/src/main/java/org/gitlab/api/GitlabAPI.java#L3887-L3895