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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
64,400 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/NamespaceApi.java | NamespaceApi.findNamespacesStream | public Stream<Namespace> findNamespacesStream(String query) throws GitLabApiException {
return (findNamespaces(query, getDefaultPerPage()).stream());
} | java | public Stream<Namespace> findNamespacesStream(String query) throws GitLabApiException {
return (findNamespaces(query, getDefaultPerPage()).stream());
} | [
"public",
"Stream",
"<",
"Namespace",
">",
"findNamespacesStream",
"(",
"String",
"query",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"findNamespaces",
"(",
"query",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"stream",
"(",
")",
")",
";",
"}... | Get all namespaces that match a string in their name or path as a Stream.
<pre><code>GitLab Endpoint: GET /namespaces?search=:query</code></pre>
@param query the search string
@return a Stream with the matching namespaces
@throws GitLabApiException if any exception occurs | [
"Get",
"all",
"namespaces",
"that",
"match",
"a",
"string",
"in",
"their",
"name",
"or",
"path",
"as",
"a",
"Stream",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/NamespaceApi.java#L130-L132 |
64,401 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/webhook/WebHookManager.java | WebHookManager.handleEvent | public void handleEvent(HttpServletRequest request) throws GitLabApiException {
String eventName = request.getHeader("X-Gitlab-Event");
if (eventName == null || eventName.trim().isEmpty()) {
LOGGER.warning("X-Gitlab-Event header is missing!");
return;
}
... | java | public void handleEvent(HttpServletRequest request) throws GitLabApiException {
String eventName = request.getHeader("X-Gitlab-Event");
if (eventName == null || eventName.trim().isEmpty()) {
LOGGER.warning("X-Gitlab-Event header is missing!");
return;
}
... | [
"public",
"void",
"handleEvent",
"(",
"HttpServletRequest",
"request",
")",
"throws",
"GitLabApiException",
"{",
"String",
"eventName",
"=",
"request",
".",
"getHeader",
"(",
"\"X-Gitlab-Event\"",
")",
";",
"if",
"(",
"eventName",
"==",
"null",
"||",
"eventName",
... | Parses and verifies an Event instance from the HTTP request and
fires it off to the registered listeners.
@param request the HttpServletRequest to read the Event instance from
@throws GitLabApiException if the parsed event is not supported | [
"Parses",
"and",
"verifies",
"an",
"Event",
"instance",
"from",
"the",
"HTTP",
"request",
"and",
"fires",
"it",
"off",
"to",
"the",
"registered",
"listeners",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/webhook/WebHookManager.java#L53-L109 |
64,402 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/EventsApi.java | EventsApi.getAuthenticatedUserEvents | public List<Event> getAuthenticatedUserEvents(ActionType action, TargetType targetType,
Date before, Date after, SortOrder sortOrder) throws GitLabApiException {
return (getAuthenticatedUserEvents(action, targetType, before, after, sortOrder, getDefaultPerPage()).all());
} | java | public List<Event> getAuthenticatedUserEvents(ActionType action, TargetType targetType,
Date before, Date after, SortOrder sortOrder) throws GitLabApiException {
return (getAuthenticatedUserEvents(action, targetType, before, after, sortOrder, getDefaultPerPage()).all());
} | [
"public",
"List",
"<",
"Event",
">",
"getAuthenticatedUserEvents",
"(",
"ActionType",
"action",
",",
"TargetType",
"targetType",
",",
"Date",
"before",
",",
"Date",
"after",
",",
"SortOrder",
"sortOrder",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
... | Get a list of events for the authenticated user.
<pre><code>GitLab Endpoint: GET /events</code></pre>
@param action include only events of a particular action type, optional
@param targetType include only events of a particular target type, optional
@param before include only events created before a particular date, ... | [
"Get",
"a",
"list",
"of",
"events",
"for",
"the",
"authenticated",
"user",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/EventsApi.java#L34-L37 |
64,403 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/EventsApi.java | EventsApi.getAuthenticatedUserEventsStream | public Stream<Event> getAuthenticatedUserEventsStream(ActionType action, TargetType targetType,
Date before, Date after, SortOrder sortOrder) throws GitLabApiException {
return (getAuthenticatedUserEvents(action, targetType, before, after, sortOrder, getDefaultPerPage()).stream());
} | java | public Stream<Event> getAuthenticatedUserEventsStream(ActionType action, TargetType targetType,
Date before, Date after, SortOrder sortOrder) throws GitLabApiException {
return (getAuthenticatedUserEvents(action, targetType, before, after, sortOrder, getDefaultPerPage()).stream());
} | [
"public",
"Stream",
"<",
"Event",
">",
"getAuthenticatedUserEventsStream",
"(",
"ActionType",
"action",
",",
"TargetType",
"targetType",
",",
"Date",
"before",
",",
"Date",
"after",
",",
"SortOrder",
"sortOrder",
")",
"throws",
"GitLabApiException",
"{",
"return",
... | Get a Stream of events for the authenticated user.
<pre><code>GitLab Endpoint: GET /events</code></pre>
@param action include only events of a particular action type, optional
@param targetType include only events of a particular target type, optional
@param before include only events created before a particular date... | [
"Get",
"a",
"Stream",
"of",
"events",
"for",
"the",
"authenticated",
"user",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/EventsApi.java#L110-L113 |
64,404 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/EventsApi.java | EventsApi.getUserEvents | public List<Event> getUserEvents(Object userIdOrUsername, ActionType action, TargetType targetType,
Date before, Date after, SortOrder sortOrder) throws GitLabApiException {
return (getUserEvents(userIdOrUsername, action, targetType, before, after, sortOrder, getDefaultPerPage()).all());
} | java | public List<Event> getUserEvents(Object userIdOrUsername, ActionType action, TargetType targetType,
Date before, Date after, SortOrder sortOrder) throws GitLabApiException {
return (getUserEvents(userIdOrUsername, action, targetType, before, after, sortOrder, getDefaultPerPage()).all());
} | [
"public",
"List",
"<",
"Event",
">",
"getUserEvents",
"(",
"Object",
"userIdOrUsername",
",",
"ActionType",
"action",
",",
"TargetType",
"targetType",
",",
"Date",
"before",
",",
"Date",
"after",
",",
"SortOrder",
"sortOrder",
")",
"throws",
"GitLabApiException",
... | Get a list of events for the specified user.
<pre><code>GitLab Endpoint: GET /users/:userId/events</code></pre>
@param userIdOrUsername the user ID, username of the user, or a User instance holding the user ID or username
@param action include only events of a particular action type, optional
@param targetType includ... | [
"Get",
"a",
"list",
"of",
"events",
"for",
"the",
"specified",
"user",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/EventsApi.java#L129-L132 |
64,405 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/EventsApi.java | EventsApi.getUserEvents | public Pager<Event> getUserEvents(Object userIdOrUsername, ActionType action, TargetType targetType, Date before, Date after,
SortOrder sortOrder, int itemsPerPage) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("action", action)
... | java | public Pager<Event> getUserEvents(Object userIdOrUsername, ActionType action, TargetType targetType, Date before, Date after,
SortOrder sortOrder, int itemsPerPage) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("action", action)
... | [
"public",
"Pager",
"<",
"Event",
">",
"getUserEvents",
"(",
"Object",
"userIdOrUsername",
",",
"ActionType",
"action",
",",
"TargetType",
"targetType",
",",
"Date",
"before",
",",
"Date",
"after",
",",
"SortOrder",
"sortOrder",
",",
"int",
"itemsPerPage",
")",
... | Get a list of events for the specified user and in the specified page range.
<pre><code>GitLab Endpoint: GET /users/:userId/events</code></pre>
@param userIdOrUsername the user ID, username of the user, or a User instance holding the user ID or username
@param action include only events of a particular action type, o... | [
"Get",
"a",
"list",
"of",
"events",
"for",
"the",
"specified",
"user",
"and",
"in",
"the",
"specified",
"page",
"range",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/EventsApi.java#L182-L194 |
64,406 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/EventsApi.java | EventsApi.getUserEventsStream | public Stream<Event> getUserEventsStream(Object userIdOrUsername, ActionType action, TargetType targetType,
Date before, Date after, SortOrder sortOrder) throws GitLabApiException {
return (getUserEvents(userIdOrUsername, action, targetType, before, after, sortOrder, getDefaultPerPage()).stream());
... | java | public Stream<Event> getUserEventsStream(Object userIdOrUsername, ActionType action, TargetType targetType,
Date before, Date after, SortOrder sortOrder) throws GitLabApiException {
return (getUserEvents(userIdOrUsername, action, targetType, before, after, sortOrder, getDefaultPerPage()).stream());
... | [
"public",
"Stream",
"<",
"Event",
">",
"getUserEventsStream",
"(",
"Object",
"userIdOrUsername",
",",
"ActionType",
"action",
",",
"TargetType",
"targetType",
",",
"Date",
"before",
",",
"Date",
"after",
",",
"SortOrder",
"sortOrder",
")",
"throws",
"GitLabApiExce... | Get a Stream of events for the specified user.
<pre><code>GitLab Endpoint: GET /users/:userId/events</code></pre>
@param userIdOrUsername the user ID, username of the user, or a User instance holding the user ID or username
@param action include only events of a particular action type, optional
@param targetType incl... | [
"Get",
"a",
"Stream",
"of",
"events",
"for",
"the",
"specified",
"user",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/EventsApi.java#L210-L213 |
64,407 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/EventsApi.java | EventsApi.getProjectEvents | public List<Event> getProjectEvents(Object projectIdOrPath, ActionType action, TargetType targetType,
Date before, Date after, SortOrder sortOrder) throws GitLabApiException {
return (getProjectEvents(projectIdOrPath, action, targetType, before, after, sortOrder, getDefaultPerPage()).all());
} | java | public List<Event> getProjectEvents(Object projectIdOrPath, ActionType action, TargetType targetType,
Date before, Date after, SortOrder sortOrder) throws GitLabApiException {
return (getProjectEvents(projectIdOrPath, action, targetType, before, after, sortOrder, getDefaultPerPage()).all());
} | [
"public",
"List",
"<",
"Event",
">",
"getProjectEvents",
"(",
"Object",
"projectIdOrPath",
",",
"ActionType",
"action",
",",
"TargetType",
"targetType",
",",
"Date",
"before",
",",
"Date",
"after",
",",
"SortOrder",
"sortOrder",
")",
"throws",
"GitLabApiException"... | Get a list of events for the specified project.
<pre><code>GitLab Endpoint: GET /:projectId/events</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param action include only events of a particular action type, optional
@param targetType include only eve... | [
"Get",
"a",
"list",
"of",
"events",
"for",
"the",
"specified",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/EventsApi.java#L229-L232 |
64,408 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/EventsApi.java | EventsApi.getProjectEvents | public List<Event> getProjectEvents(Integer projectIdOrPath, ActionType action, TargetType targetType,
Date before, Date after, SortOrder sortOrder, int page, int perPage) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("action", action)
... | java | public List<Event> getProjectEvents(Integer projectIdOrPath, ActionType action, TargetType targetType,
Date before, Date after, SortOrder sortOrder, int page, int perPage) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("action", action)
... | [
"public",
"List",
"<",
"Event",
">",
"getProjectEvents",
"(",
"Integer",
"projectIdOrPath",
",",
"ActionType",
"action",
",",
"TargetType",
"targetType",
",",
"Date",
"before",
",",
"Date",
"after",
",",
"SortOrder",
"sortOrder",
",",
"int",
"page",
",",
"int"... | Get a list of events for the specified project and in the specified page range.
<pre><code>GitLab Endpoint: GET /projects/:projectId/events</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param action include only events of a particular action type, op... | [
"Get",
"a",
"list",
"of",
"events",
"for",
"the",
"specified",
"project",
"and",
"in",
"the",
"specified",
"page",
"range",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/EventsApi.java#L250-L265 |
64,409 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/EventsApi.java | EventsApi.getProjectEventsStream | public Stream<Event> getProjectEventsStream(Object projectIdOrPath, ActionType action, TargetType targetType,
Date before, Date after, SortOrder sortOrder) throws GitLabApiException {
return (getProjectEvents(projectIdOrPath, action, targetType, before, after, sortOrder, getDefaultPerPage()).stream(... | java | public Stream<Event> getProjectEventsStream(Object projectIdOrPath, ActionType action, TargetType targetType,
Date before, Date after, SortOrder sortOrder) throws GitLabApiException {
return (getProjectEvents(projectIdOrPath, action, targetType, before, after, sortOrder, getDefaultPerPage()).stream(... | [
"public",
"Stream",
"<",
"Event",
">",
"getProjectEventsStream",
"(",
"Object",
"projectIdOrPath",
",",
"ActionType",
"action",
",",
"TargetType",
"targetType",
",",
"Date",
"before",
",",
"Date",
"after",
",",
"SortOrder",
"sortOrder",
")",
"throws",
"GitLabApiEx... | Get a Stream of events for the specified project.
<pre><code>GitLab Endpoint: GET /:projectId/events</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param action include only events of a particular action type, optional
@param targetType include only e... | [
"Get",
"a",
"Stream",
"of",
"events",
"for",
"the",
"specified",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/EventsApi.java#L310-L313 |
64,410 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getProjects | public Pager<Project> getProjects(int itemsPerPage) throws GitLabApiException {
return (new Pager<Project>(this, Project.class, itemsPerPage, null, "projects"));
} | java | public Pager<Project> getProjects(int itemsPerPage) throws GitLabApiException {
return (new Pager<Project>(this, Project.class, itemsPerPage, null, "projects"));
} | [
"public",
"Pager",
"<",
"Project",
">",
"getProjects",
"(",
"int",
"itemsPerPage",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"new",
"Pager",
"<",
"Project",
">",
"(",
"this",
",",
"Project",
".",
"class",
",",
"itemsPerPage",
",",
"null",
",... | Get a Pager instance of projects accessible by the authenticated user.
<pre><code>GET /projects</code></pre>
@param itemsPerPage the number of Project instances that will be fetched per page
@return a Pager instance of projects accessible by the authenticated user
@throws GitLabApiException if any exception occurs | [
"Get",
"a",
"Pager",
"instance",
"of",
"projects",
"accessible",
"by",
"the",
"authenticated",
"user",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L100-L102 |
64,411 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getProjects | public Pager<Project> getProjects(Boolean archived, Visibility visibility, ProjectOrderBy orderBy,
SortOrder sort, String search, Boolean simple, Boolean owned, Boolean membership,
Boolean starred, Boolean statistics, int itemsPerPage) throws GitLabApiException {
GitLabApiForm formData ... | java | public Pager<Project> getProjects(Boolean archived, Visibility visibility, ProjectOrderBy orderBy,
SortOrder sort, String search, Boolean simple, Boolean owned, Boolean membership,
Boolean starred, Boolean statistics, int itemsPerPage) throws GitLabApiException {
GitLabApiForm formData ... | [
"public",
"Pager",
"<",
"Project",
">",
"getProjects",
"(",
"Boolean",
"archived",
",",
"Visibility",
"visibility",
",",
"ProjectOrderBy",
"orderBy",
",",
"SortOrder",
"sort",
",",
"String",
"search",
",",
"Boolean",
"simple",
",",
"Boolean",
"owned",
",",
"Bo... | Get a Pager of projects accessible by the authenticated user and matching the supplied filter parameters.
All filter parameters are optional.
<pre><code>GET /projects</code></pre>
@param archived limit by archived status
@param visibility limit by visibility public, internal, or private
@param orderBy return projects... | [
"Get",
"a",
"Pager",
"of",
"projects",
"accessible",
"by",
"the",
"authenticated",
"user",
"and",
"matching",
"the",
"supplied",
"filter",
"parameters",
".",
"All",
"filter",
"parameters",
"are",
"optional",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L241-L258 |
64,412 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getProjects | public List<Project> getProjects(String search) throws GitLabApiException {
return (getProjects(search, getDefaultPerPage()).all());
} | java | public List<Project> getProjects(String search) throws GitLabApiException {
return (getProjects(search, getDefaultPerPage()).all());
} | [
"public",
"List",
"<",
"Project",
">",
"getProjects",
"(",
"String",
"search",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getProjects",
"(",
"search",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"all",
"(",
")",
")",
";",
"}"
] | Get a list of projects accessible by the authenticated user that match the provided search string.
<pre><code>GET /projects?search=search</code></pre>
@param search the project name search criteria
@return a list of projects accessible by the authenticated user that match the provided search string
@throws GitLabApiE... | [
"Get",
"a",
"list",
"of",
"projects",
"accessible",
"by",
"the",
"authenticated",
"user",
"that",
"match",
"the",
"provided",
"search",
"string",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L269-L271 |
64,413 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getProjects | public Pager<Project> getProjects(String search, int itemsPerPage) throws GitLabApiException {
Form formData = new GitLabApiForm().withParam("search", search);
return (new Pager<Project>(this, Project.class, itemsPerPage, formData.asMap(), "projects"));
} | java | public Pager<Project> getProjects(String search, int itemsPerPage) throws GitLabApiException {
Form formData = new GitLabApiForm().withParam("search", search);
return (new Pager<Project>(this, Project.class, itemsPerPage, formData.asMap(), "projects"));
} | [
"public",
"Pager",
"<",
"Project",
">",
"getProjects",
"(",
"String",
"search",
",",
"int",
"itemsPerPage",
")",
"throws",
"GitLabApiException",
"{",
"Form",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"search\"",
",",
"search",... | Get a Pager of projects accessible by the authenticated user that match the provided search string.
<pre><code>GET /projects?search=search</code></pre>
@param search the project name search criteria
@param itemsPerPage the number of Project instances that will be fetched per page
@return a Pager of projects accessibl... | [
"Get",
"a",
"Pager",
"of",
"projects",
"accessible",
"by",
"the",
"authenticated",
"user",
"that",
"match",
"the",
"provided",
"search",
"string",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L300-L303 |
64,414 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getProjectsStream | public Stream<Project> getProjectsStream(String search) throws GitLabApiException {
return (getProjects(search, getDefaultPerPage()).stream());
} | java | public Stream<Project> getProjectsStream(String search) throws GitLabApiException {
return (getProjects(search, getDefaultPerPage()).stream());
} | [
"public",
"Stream",
"<",
"Project",
">",
"getProjectsStream",
"(",
"String",
"search",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getProjects",
"(",
"search",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"stream",
"(",
")",
")",
";",
"}"
] | Get a Stream of projects accessible by the authenticated user that match the provided search string.
<pre><code>GET /projects?search=search</code></pre>
@param search the project name search criteria
@return a Stream of projects accessible by the authenticated user that match the provided search string
@throws GitLab... | [
"Get",
"a",
"Stream",
"of",
"projects",
"accessible",
"by",
"the",
"authenticated",
"user",
"that",
"match",
"the",
"provided",
"search",
"string",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L314-L316 |
64,415 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getMemberProjects | public Pager<Project> getMemberProjects(int itemsPerPage) throws GitLabApiException {
Form formData = new GitLabApiForm().withParam("membership", true);
return (new Pager<Project>(this, Project.class, itemsPerPage, formData.asMap(), "projects"));
} | java | public Pager<Project> getMemberProjects(int itemsPerPage) throws GitLabApiException {
Form formData = new GitLabApiForm().withParam("membership", true);
return (new Pager<Project>(this, Project.class, itemsPerPage, formData.asMap(), "projects"));
} | [
"public",
"Pager",
"<",
"Project",
">",
"getMemberProjects",
"(",
"int",
"itemsPerPage",
")",
"throws",
"GitLabApiException",
"{",
"Form",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"membership\"",
",",
"true",
")",
";",
"retur... | Get a Pager of projects that the authenticated user is a member of.
<pre><code>GET /projects?membership=true</code></pre>
@param itemsPerPage the number of Project instances that will be fetched per page
@return a Pager o Project instances that the authenticated user is a member of
@throws GitLabApiException if any e... | [
"Get",
"a",
"Pager",
"of",
"projects",
"that",
"the",
"authenticated",
"user",
"is",
"a",
"member",
"of",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L355-L358 |
64,416 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getStarredProjects | public List<Project> getStarredProjects(int page, int perPage) throws GitLabApiException {
Form formData = new GitLabApiForm().withParam("starred", true).withParam(PAGE_PARAM, page).withParam(PER_PAGE_PARAM, perPage);
Response response = get(Response.Status.OK, formData.asMap(), "projects");
ret... | java | public List<Project> getStarredProjects(int page, int perPage) throws GitLabApiException {
Form formData = new GitLabApiForm().withParam("starred", true).withParam(PAGE_PARAM, page).withParam(PER_PAGE_PARAM, perPage);
Response response = get(Response.Status.OK, formData.asMap(), "projects");
ret... | [
"public",
"List",
"<",
"Project",
">",
"getStarredProjects",
"(",
"int",
"page",
",",
"int",
"perPage",
")",
"throws",
"GitLabApiException",
"{",
"Form",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"starred\"",
",",
"true",
")... | Get a list of projects starred by the authenticated user in the specified page range.
<pre><code>GET /projects?starred=true</code></pre>
@param page the page to get
@param perPage the number of projects per page
@return a list of projects starred by the authenticated user
@throws GitLabApiException if any exception o... | [
"Get",
"a",
"list",
"of",
"projects",
"starred",
"by",
"the",
"authenticated",
"user",
"in",
"the",
"specified",
"page",
"range",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L448-L452 |
64,417 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getStarredProjects | public Pager<Project> getStarredProjects(int itemsPerPage) throws GitLabApiException {
Form formData = new GitLabApiForm().withParam("starred", true).withParam(PER_PAGE_PARAM, getDefaultPerPage());
return (new Pager<Project>(this, Project.class, itemsPerPage, formData.asMap(), "projects"));
} | java | public Pager<Project> getStarredProjects(int itemsPerPage) throws GitLabApiException {
Form formData = new GitLabApiForm().withParam("starred", true).withParam(PER_PAGE_PARAM, getDefaultPerPage());
return (new Pager<Project>(this, Project.class, itemsPerPage, formData.asMap(), "projects"));
} | [
"public",
"Pager",
"<",
"Project",
">",
"getStarredProjects",
"(",
"int",
"itemsPerPage",
")",
"throws",
"GitLabApiException",
"{",
"Form",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"starred\"",
",",
"true",
")",
".",
"withPar... | Get a Pager of projects starred by the authenticated user.
<pre><code>GET /projects?starred=true</code></pre>
@param itemsPerPage the number of Project instances that will be fetched per page
@return a Pager of projects starred by the authenticated user
@throws GitLabApiException if any exception occurs | [
"Get",
"a",
"Pager",
"of",
"projects",
"starred",
"by",
"the",
"authenticated",
"user",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L463-L466 |
64,418 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getUserProjects | public List<Project> getUserProjects(Object userIdOrUsername, ProjectFilter filter) throws GitLabApiException {
return (getUserProjects(userIdOrUsername, filter, getDefaultPerPage()).all());
} | java | public List<Project> getUserProjects(Object userIdOrUsername, ProjectFilter filter) throws GitLabApiException {
return (getUserProjects(userIdOrUsername, filter, getDefaultPerPage()).all());
} | [
"public",
"List",
"<",
"Project",
">",
"getUserProjects",
"(",
"Object",
"userIdOrUsername",
",",
"ProjectFilter",
"filter",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getUserProjects",
"(",
"userIdOrUsername",
",",
"filter",
",",
"getDefaultPerPage",
... | Get a list of visible projects owned by the given user.
<pre><code>GET /users/:user_id/projects</code></pre>
@param userIdOrUsername the user ID, username of the user, or a User instance holding the user ID or username
@param filter the ProjectFilter instance holding the filter values for the query
@return a list of ... | [
"Get",
"a",
"list",
"of",
"visible",
"projects",
"owned",
"by",
"the",
"given",
"user",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L490-L492 |
64,419 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getUserProjects | public List<Project> getUserProjects(Object userIdOrUsername, ProjectFilter filter, int page, int perPage) throws GitLabApiException {
GitLabApiForm formData = filter.getQueryParams(page, perPage);
Response response = get(Response.Status.OK, formData.asMap(),
"users", getUserIdOrUsername... | java | public List<Project> getUserProjects(Object userIdOrUsername, ProjectFilter filter, int page, int perPage) throws GitLabApiException {
GitLabApiForm formData = filter.getQueryParams(page, perPage);
Response response = get(Response.Status.OK, formData.asMap(),
"users", getUserIdOrUsername... | [
"public",
"List",
"<",
"Project",
">",
"getUserProjects",
"(",
"Object",
"userIdOrUsername",
",",
"ProjectFilter",
"filter",
",",
"int",
"page",
",",
"int",
"perPage",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"filter",
".",
"ge... | Get a list of visible projects owned by the given user in the specified page range.
<pre><code>GET /users/:user_id/projects</code></pre>
@param userIdOrUsername the user ID, username of the user, or a User instance holding the user ID or username
@param filter the ProjectFilter instance holding the filter values for ... | [
"Get",
"a",
"list",
"of",
"visible",
"projects",
"owned",
"by",
"the",
"given",
"user",
"in",
"the",
"specified",
"page",
"range",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L506-L511 |
64,420 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getUserProjects | public Pager<Project> getUserProjects(Object userIdOrUsername, ProjectFilter filter, int itemsPerPage) throws GitLabApiException {
GitLabApiForm formData = filter.getQueryParams();
return (new Pager<Project>(this, Project.class, itemsPerPage, formData.asMap(),
"users", getUserIdOrUsernam... | java | public Pager<Project> getUserProjects(Object userIdOrUsername, ProjectFilter filter, int itemsPerPage) throws GitLabApiException {
GitLabApiForm formData = filter.getQueryParams();
return (new Pager<Project>(this, Project.class, itemsPerPage, formData.asMap(),
"users", getUserIdOrUsernam... | [
"public",
"Pager",
"<",
"Project",
">",
"getUserProjects",
"(",
"Object",
"userIdOrUsername",
",",
"ProjectFilter",
"filter",
",",
"int",
"itemsPerPage",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"filter",
".",
"getQueryParams",
"("... | Get a Pager of visible projects owned by the given user.
<pre><code>GET /users/:user_id/projects</code></pre>
@param userIdOrUsername the user ID, username of the user, or a User instance holding the user ID or username
@param filter the ProjectFilter instance holding the filter values for the query
@param itemsPerPa... | [
"Get",
"a",
"Pager",
"of",
"visible",
"projects",
"owned",
"by",
"the",
"given",
"user",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L524-L528 |
64,421 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getUserProjectsStream | public Stream<Project> getUserProjectsStream(Object userIdOrUsername, ProjectFilter filter) throws GitLabApiException {
return (getUserProjects(userIdOrUsername, filter, getDefaultPerPage()).stream());
} | java | public Stream<Project> getUserProjectsStream(Object userIdOrUsername, ProjectFilter filter) throws GitLabApiException {
return (getUserProjects(userIdOrUsername, filter, getDefaultPerPage()).stream());
} | [
"public",
"Stream",
"<",
"Project",
">",
"getUserProjectsStream",
"(",
"Object",
"userIdOrUsername",
",",
"ProjectFilter",
"filter",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getUserProjects",
"(",
"userIdOrUsername",
",",
"filter",
",",
"getDefaultPer... | Get a Stream of visible projects owned by the given user.
<pre><code>GET /users/:user_id/projects</code></pre>
@param userIdOrUsername the user ID, username of the user, or a User instance holding the user ID or username
@param filter the ProjectFilter instance holding the filter values for the query
@return a Stream... | [
"Get",
"a",
"Stream",
"of",
"visible",
"projects",
"owned",
"by",
"the",
"given",
"user",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L540-L542 |
64,422 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.createProject | public Project createProject(Integer groupId, String projectName) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("namespace_id", groupId).withParam("name", projectName, true);
Response response = post(Response.Status.CREATED, formData, "projects");
return (res... | java | public Project createProject(Integer groupId, String projectName) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("namespace_id", groupId).withParam("name", projectName, true);
Response response = post(Response.Status.CREATED, formData, "projects");
return (res... | [
"public",
"Project",
"createProject",
"(",
"Integer",
"groupId",
",",
"String",
"projectName",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"namespace_id\"",
",",
"groupId",
... | Create a new project in the specified group.
@param groupId the group ID to create the project under
@param projectName the name of the project top create
@return the created project
@throws GitLabApiException if any exception occurs | [
"Create",
"a",
"new",
"project",
"in",
"the",
"specified",
"group",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L714-L718 |
64,423 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.forkProject | public Project forkProject(Object projectIdOrPath, String namespace) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("namespace", namespace, true);
Response.Status expectedStatus = (isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.CREATED);
Re... | java | public Project forkProject(Object projectIdOrPath, String namespace) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("namespace", namespace, true);
Response.Status expectedStatus = (isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.CREATED);
Re... | [
"public",
"Project",
"forkProject",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"namespace",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"namespace\"",
",",
"namespace",
... | Forks a project into the user namespace of the authenticated user or the one provided.
The forking operation for a project is asynchronous and is completed in a background job.
The request will return immediately.
<pre><code>POST /projects/:id/fork</code></pre>
@param projectIdOrPath the project in the form of an Int... | [
"Forks",
"a",
"project",
"into",
"the",
"user",
"namespace",
"of",
"the",
"authenticated",
"user",
"or",
"the",
"one",
"provided",
".",
"The",
"forking",
"operation",
"for",
"a",
"project",
"is",
"asynchronous",
"and",
"is",
"completed",
"in",
"a",
"backgrou... | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1104-L1109 |
64,424 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getMembers | public List<Member> getMembers(Object projectIdOrPath) throws GitLabApiException {
return (getMembers(projectIdOrPath, getDefaultPerPage()).all());
} | java | public List<Member> getMembers(Object projectIdOrPath) throws GitLabApiException {
return (getMembers(projectIdOrPath, getDefaultPerPage()).all());
} | [
"public",
"List",
"<",
"Member",
">",
"getMembers",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getMembers",
"(",
"projectIdOrPath",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"all",
"(",
")",
")",
";",
"}"
... | Get a list of project team members.
<pre><code>GET /projects/:id/members</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@return the members belonging to the specified project
@throws GitLabApiException if any exception occurs | [
"Get",
"a",
"list",
"of",
"project",
"team",
"members",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1169-L1171 |
64,425 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getMembers | public List<Member> getMembers(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage), "projects", getProjectIdOrPath(projectIdOrPath), "members");
return (response.readEntity(new GenericType<List<Member>>(... | java | public List<Member> getMembers(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage), "projects", getProjectIdOrPath(projectIdOrPath), "members");
return (response.readEntity(new GenericType<List<Member>>(... | [
"public",
"List",
"<",
"Member",
">",
"getMembers",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"page",
",",
"int",
"perPage",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"... | Get a list of project team members in the specified page range.
<pre><code>GET /projects/:id/members</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param page the page to get
@param perPage the number of Member instances per page
@retu... | [
"Get",
"a",
"list",
"of",
"project",
"team",
"members",
"in",
"the",
"specified",
"page",
"range",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1184-L1187 |
64,426 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getMembers | public Pager<Member> getMembers(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return (new Pager<Member>(this, Member.class, itemsPerPage, null, "projects", getProjectIdOrPath(projectIdOrPath), "members"));
} | java | public Pager<Member> getMembers(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return (new Pager<Member>(this, Member.class, itemsPerPage, null, "projects", getProjectIdOrPath(projectIdOrPath), "members"));
} | [
"public",
"Pager",
"<",
"Member",
">",
"getMembers",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"itemsPerPage",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"new",
"Pager",
"<",
"Member",
">",
"(",
"this",
",",
"Member",
".",
"class",
",",
"... | Get a Pager of project team members.
<pre><code>GET /projects/:id/members</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param itemsPerPage the number of Project instances that will be fetched per page
@return the members belonging to ... | [
"Get",
"a",
"Pager",
"of",
"project",
"team",
"members",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1199-L1201 |
64,427 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getMembersStream | public Stream<Member> getMembersStream(Object projectIdOrPath) throws GitLabApiException {
return (getMembers(projectIdOrPath, getDefaultPerPage()).stream());
} | java | public Stream<Member> getMembersStream(Object projectIdOrPath) throws GitLabApiException {
return (getMembers(projectIdOrPath, getDefaultPerPage()).stream());
} | [
"public",
"Stream",
"<",
"Member",
">",
"getMembersStream",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getMembers",
"(",
"projectIdOrPath",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"stream",
"(",
")",
")",
... | Get a Stream of project team members.
<pre><code>GET /projects/:id/members</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@return a Stream of the members belonging to the specified project
@throws GitLabApiException if any exception occ... | [
"Get",
"a",
"Stream",
"of",
"project",
"team",
"members",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1212-L1214 |
64,428 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.addMember | public Member addMember(Object projectIdOrPath, Integer userId, Integer accessLevel) throws GitLabApiException {
return (addMember(projectIdOrPath, userId, accessLevel, null));
} | java | public Member addMember(Object projectIdOrPath, Integer userId, Integer accessLevel) throws GitLabApiException {
return (addMember(projectIdOrPath, userId, accessLevel, null));
} | [
"public",
"Member",
"addMember",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"userId",
",",
"Integer",
"accessLevel",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"addMember",
"(",
"projectIdOrPath",
",",
"userId",
",",
"accessLevel",
",",
"null"... | Adds a user to a project team. This is an idempotent method and can be called multiple times
with the same parameters. Adding team membership to a user that is already a member does not
affect the existing membership.
<pre><code>POST /projects/:id/members</code></pre>
@param projectIdOrPath projectIdOrPath the projec... | [
"Adds",
"a",
"user",
"to",
"a",
"project",
"team",
".",
"This",
"is",
"an",
"idempotent",
"method",
"and",
"can",
"be",
"called",
"multiple",
"times",
"with",
"the",
"same",
"parameters",
".",
"Adding",
"team",
"membership",
"to",
"a",
"user",
"that",
"i... | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1261-L1263 |
64,429 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.updateMember | public Member updateMember(Object projectIdOrPath, Integer userId, Integer accessLevel, Date expiresAt) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("access_level", accessLevel, true)
.withParam("expires_at", expiresAt, false);
Resp... | java | public Member updateMember(Object projectIdOrPath, Integer userId, Integer accessLevel, Date expiresAt) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("access_level", accessLevel, true)
.withParam("expires_at", expiresAt, false);
Resp... | [
"public",
"Member",
"updateMember",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"userId",
",",
"Integer",
"accessLevel",
",",
"Date",
"expiresAt",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
"... | Updates a member of a project.
<pre><code>PUT /projects/:projectId/members/:userId</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param userId the user ID of the member to update, required
@param accessLevel the new access le... | [
"Updates",
"a",
"member",
"of",
"a",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1381-L1387 |
64,430 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.removeMember | public void removeMember(Object projectIdOrPath, Integer userId) throws GitLabApiException {
Response.Status expectedStatus = (isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.NO_CONTENT);
delete(expectedStatus, null, "projects", getProjectIdOrPath(projectIdOrPath), "members", userId);... | java | public void removeMember(Object projectIdOrPath, Integer userId) throws GitLabApiException {
Response.Status expectedStatus = (isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.NO_CONTENT);
delete(expectedStatus, null, "projects", getProjectIdOrPath(projectIdOrPath), "members", userId);... | [
"public",
"void",
"removeMember",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"userId",
")",
"throws",
"GitLabApiException",
"{",
"Response",
".",
"Status",
"expectedStatus",
"=",
"(",
"isApiVersion",
"(",
"ApiVersion",
".",
"V3",
")",
"?",
"Response",
"."... | Removes user from project team.
<pre><code>DELETE /projects/:id/members/:user_id</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param userId the user ID of the member to remove
@throws GitLabApiException if any exception occu... | [
"Removes",
"user",
"from",
"project",
"team",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1398-L1401 |
64,431 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getProjectUsers | public List<ProjectUser> getProjectUsers(Object projectIdOrPath) throws GitLabApiException {
return (getProjectUsers(projectIdOrPath, null, getDefaultPerPage()).all());
} | java | public List<ProjectUser> getProjectUsers(Object projectIdOrPath) throws GitLabApiException {
return (getProjectUsers(projectIdOrPath, null, getDefaultPerPage()).all());
} | [
"public",
"List",
"<",
"ProjectUser",
">",
"getProjectUsers",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getProjectUsers",
"(",
"projectIdOrPath",
",",
"null",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"all",
... | Get a list of project users. This list includes all project members and all users assigned to project parent groups.
<pre><code>GET /projects/:id/users</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@return the users belonging... | [
"Get",
"a",
"list",
"of",
"project",
"users",
".",
"This",
"list",
"includes",
"all",
"project",
"members",
"and",
"all",
"users",
"assigned",
"to",
"project",
"parent",
"groups",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1412-L1414 |
64,432 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getProjectUsers | public Pager<ProjectUser> getProjectUsers(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return (getProjectUsers(projectIdOrPath, null, itemsPerPage));
} | java | public Pager<ProjectUser> getProjectUsers(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return (getProjectUsers(projectIdOrPath, null, itemsPerPage));
} | [
"public",
"Pager",
"<",
"ProjectUser",
">",
"getProjectUsers",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"itemsPerPage",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getProjectUsers",
"(",
"projectIdOrPath",
",",
"null",
",",
"itemsPerPage",
")",
... | Get a Pager of project users. This Pager includes all project members and all users assigned to project parent groups.
<pre><code>GET /projects/:id/users</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param itemsPerPage the number of P... | [
"Get",
"a",
"Pager",
"of",
"project",
"users",
".",
"This",
"Pager",
"includes",
"all",
"project",
"members",
"and",
"all",
"users",
"assigned",
"to",
"project",
"parent",
"groups",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1426-L1428 |
64,433 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getProjectUsersStream | public Stream<ProjectUser> getProjectUsersStream(Object projectIdOrPath) throws GitLabApiException {
return (getProjectUsers(projectIdOrPath, null, getDefaultPerPage()).stream());
} | java | public Stream<ProjectUser> getProjectUsersStream(Object projectIdOrPath) throws GitLabApiException {
return (getProjectUsers(projectIdOrPath, null, getDefaultPerPage()).stream());
} | [
"public",
"Stream",
"<",
"ProjectUser",
">",
"getProjectUsersStream",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getProjectUsers",
"(",
"projectIdOrPath",
",",
"null",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"... | Get a Stream of project users. This Stream includes all project members and all users assigned to project parent groups.
<pre><code>GET /projects/:id/users</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@return a Stream of the... | [
"Get",
"a",
"Stream",
"of",
"project",
"users",
".",
"This",
"Stream",
"includes",
"all",
"project",
"members",
"and",
"all",
"users",
"assigned",
"to",
"project",
"parent",
"groups",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1439-L1441 |
64,434 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getProjectUsers | public List<ProjectUser> getProjectUsers(Object projectIdOrPath, String search) throws GitLabApiException {
return (getProjectUsers(projectIdOrPath, search, getDefaultPerPage()).all());
} | java | public List<ProjectUser> getProjectUsers(Object projectIdOrPath, String search) throws GitLabApiException {
return (getProjectUsers(projectIdOrPath, search, getDefaultPerPage()).all());
} | [
"public",
"List",
"<",
"ProjectUser",
">",
"getProjectUsers",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"search",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getProjectUsers",
"(",
"projectIdOrPath",
",",
"search",
",",
"getDefaultPerPage",
"(",... | Get a list of project users matching the specified search string. This list
includes all project members and all users assigned to project parent groups.
<pre><code>GET /projects/:id/users</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance,... | [
"Get",
"a",
"list",
"of",
"project",
"users",
"matching",
"the",
"specified",
"search",
"string",
".",
"This",
"list",
"includes",
"all",
"project",
"members",
"and",
"all",
"users",
"assigned",
"to",
"project",
"parent",
"groups",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1454-L1456 |
64,435 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getProjectUsers | public Pager<ProjectUser> getProjectUsers(Object projectIdOrPath, String search, int itemsPerPage) throws GitLabApiException {
MultivaluedMap<String, String> params = (search != null ? new GitLabApiForm().withParam("search", search).asMap() : null);
return (new Pager<ProjectUser>(this, ProjectUser.class... | java | public Pager<ProjectUser> getProjectUsers(Object projectIdOrPath, String search, int itemsPerPage) throws GitLabApiException {
MultivaluedMap<String, String> params = (search != null ? new GitLabApiForm().withParam("search", search).asMap() : null);
return (new Pager<ProjectUser>(this, ProjectUser.class... | [
"public",
"Pager",
"<",
"ProjectUser",
">",
"getProjectUsers",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"search",
",",
"int",
"itemsPerPage",
")",
"throws",
"GitLabApiException",
"{",
"MultivaluedMap",
"<",
"String",
",",
"String",
">",
"params",
"=",
"(... | Get a Pager of project users matching the specified search string. This Pager includes
all project members and all users assigned to project parent groups.
<pre><code>GET /projects/:id/users</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instanc... | [
"Get",
"a",
"Pager",
"of",
"project",
"users",
"matching",
"the",
"specified",
"search",
"string",
".",
"This",
"Pager",
"includes",
"all",
"project",
"members",
"and",
"all",
"users",
"assigned",
"to",
"project",
"parent",
"groups",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1470-L1474 |
64,436 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getProjectUsersStream | public Stream<ProjectUser> getProjectUsersStream(Object projectIdOrPath, String search) throws GitLabApiException {
return (getProjectUsers(projectIdOrPath, search, getDefaultPerPage()).stream());
} | java | public Stream<ProjectUser> getProjectUsersStream(Object projectIdOrPath, String search) throws GitLabApiException {
return (getProjectUsers(projectIdOrPath, search, getDefaultPerPage()).stream());
} | [
"public",
"Stream",
"<",
"ProjectUser",
">",
"getProjectUsersStream",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"search",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getProjectUsers",
"(",
"projectIdOrPath",
",",
"search",
",",
"getDefaultPerPage"... | Get a Stream of project users matching the specified search string. This Stream
includes all project members and all users assigned to project parent groups.
<pre><code>GET /projects/:id/users</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project insta... | [
"Get",
"a",
"Stream",
"of",
"project",
"users",
"matching",
"the",
"specified",
"search",
"string",
".",
"This",
"Stream",
"includes",
"all",
"project",
"members",
"and",
"all",
"users",
"assigned",
"to",
"project",
"parent",
"groups",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1487-L1489 |
64,437 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getProjectEvents | public List<Event> getProjectEvents(Object projectIdOrPath) throws GitLabApiException {
return (getProjectEvents(projectIdOrPath, getDefaultPerPage()).all());
} | java | public List<Event> getProjectEvents(Object projectIdOrPath) throws GitLabApiException {
return (getProjectEvents(projectIdOrPath, getDefaultPerPage()).all());
} | [
"public",
"List",
"<",
"Event",
">",
"getProjectEvents",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getProjectEvents",
"(",
"projectIdOrPath",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"all",
"(",
")",
")",
... | Get the project events for specific project. Sorted from newest to latest.
<pre><code>GET /projects/:id/events</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@return the project events for the specified project
@throws GitLabA... | [
"Get",
"the",
"project",
"events",
"for",
"specific",
"project",
".",
"Sorted",
"from",
"newest",
"to",
"latest",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1500-L1502 |
64,438 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getProjectEvents | public List<Event> getProjectEvents(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage), "projects", getProjectIdOrPath(projectIdOrPath), "events");
return (response.readEntity(new GenericType<List<Event... | java | public List<Event> getProjectEvents(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage), "projects", getProjectIdOrPath(projectIdOrPath), "events");
return (response.readEntity(new GenericType<List<Event... | [
"public",
"List",
"<",
"Event",
">",
"getProjectEvents",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"page",
",",
"int",
"perPage",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
","... | Get the project events for specific project. Sorted from newest to latest in the specified page range.
<pre><code>GET /projects/:id/events</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param page the page to get
@param perPa... | [
"Get",
"the",
"project",
"events",
"for",
"specific",
"project",
".",
"Sorted",
"from",
"newest",
"to",
"latest",
"in",
"the",
"specified",
"page",
"range",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1515-L1518 |
64,439 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getProjectEvents | public Pager<Event> getProjectEvents(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return (new Pager<Event>(this, Event.class, itemsPerPage, null, "projects", getProjectIdOrPath(projectIdOrPath), "events"));
} | java | public Pager<Event> getProjectEvents(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return (new Pager<Event>(this, Event.class, itemsPerPage, null, "projects", getProjectIdOrPath(projectIdOrPath), "events"));
} | [
"public",
"Pager",
"<",
"Event",
">",
"getProjectEvents",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"itemsPerPage",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"new",
"Pager",
"<",
"Event",
">",
"(",
"this",
",",
"Event",
".",
"class",
",",
... | Get a Pager of project events for specific project. Sorted from newest to latest.
<pre><code>GET /projects/:id/events</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param itemsPerPage the number of Project instances that will... | [
"Get",
"a",
"Pager",
"of",
"project",
"events",
"for",
"specific",
"project",
".",
"Sorted",
"from",
"newest",
"to",
"latest",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1530-L1532 |
64,440 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getProjectEventsStream | public Stream<Event> getProjectEventsStream(Object projectIdOrPath) throws GitLabApiException {
return (getProjectEvents(projectIdOrPath, getDefaultPerPage()).stream());
} | java | public Stream<Event> getProjectEventsStream(Object projectIdOrPath) throws GitLabApiException {
return (getProjectEvents(projectIdOrPath, getDefaultPerPage()).stream());
} | [
"public",
"Stream",
"<",
"Event",
">",
"getProjectEventsStream",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getProjectEvents",
"(",
"projectIdOrPath",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"stream",
"(",
")"... | Get a Stream of the project events for specific project. Sorted from newest to latest.
<pre><code>GET /projects/:id/events</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@return a Stream of the project events for the specified... | [
"Get",
"a",
"Stream",
"of",
"the",
"project",
"events",
"for",
"specific",
"project",
".",
"Sorted",
"from",
"newest",
"to",
"latest",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1543-L1545 |
64,441 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getHooks | public List<ProjectHook> getHooks(Object projectIdOrPath) throws GitLabApiException {
return (getHooks(projectIdOrPath, getDefaultPerPage()).all());
} | java | public List<ProjectHook> getHooks(Object projectIdOrPath) throws GitLabApiException {
return (getHooks(projectIdOrPath, getDefaultPerPage()).all());
} | [
"public",
"List",
"<",
"ProjectHook",
">",
"getHooks",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getHooks",
"(",
"projectIdOrPath",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"all",
"(",
")",
")",
";",
"}"... | Get a list of the project hooks for the specified project.
<pre><code>GET /projects/:id/hooks</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@return a list of project hooks for the specified project
@throws GitLabApiException ... | [
"Get",
"a",
"list",
"of",
"the",
"project",
"hooks",
"for",
"the",
"specified",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1556-L1558 |
64,442 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getHooks | public List<ProjectHook> getHooks(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage), "projects", getProjectIdOrPath(projectIdOrPath), "hooks");
return (response.readEntity(new GenericType<List<ProjectH... | java | public List<ProjectHook> getHooks(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage), "projects", getProjectIdOrPath(projectIdOrPath), "hooks");
return (response.readEntity(new GenericType<List<ProjectH... | [
"public",
"List",
"<",
"ProjectHook",
">",
"getHooks",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"page",
",",
"int",
"perPage",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
... | Get list of project hooks in the specified page range.
<pre><code>GET /projects/:id/hooks</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param page the page to get
@param perPage the number of ProjectHook instances per page
@... | [
"Get",
"list",
"of",
"project",
"hooks",
"in",
"the",
"specified",
"page",
"range",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1571-L1574 |
64,443 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getHooks | public Pager<ProjectHook> getHooks(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return (new Pager<ProjectHook>(this, ProjectHook.class, itemsPerPage, null, "projects", getProjectIdOrPath(projectIdOrPath), "hooks"));
} | java | public Pager<ProjectHook> getHooks(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return (new Pager<ProjectHook>(this, ProjectHook.class, itemsPerPage, null, "projects", getProjectIdOrPath(projectIdOrPath), "hooks"));
} | [
"public",
"Pager",
"<",
"ProjectHook",
">",
"getHooks",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"itemsPerPage",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"new",
"Pager",
"<",
"ProjectHook",
">",
"(",
"this",
",",
"ProjectHook",
".",
"class... | Get Pager of project hooks.
<pre><code>GET /projects/:id/hooks</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param itemsPerPage the number of Project instances that will be fetched per page
@return a Pager of project hooks f... | [
"Get",
"Pager",
"of",
"project",
"hooks",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1586-L1588 |
64,444 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getHooksStream | public Stream<ProjectHook> getHooksStream(Object projectIdOrPath) throws GitLabApiException {
return (getHooks(projectIdOrPath, getDefaultPerPage()).stream());
} | java | public Stream<ProjectHook> getHooksStream(Object projectIdOrPath) throws GitLabApiException {
return (getHooks(projectIdOrPath, getDefaultPerPage()).stream());
} | [
"public",
"Stream",
"<",
"ProjectHook",
">",
"getHooksStream",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getHooks",
"(",
"projectIdOrPath",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"stream",
"(",
")",
")",
... | Get a Stream of the project hooks for the specified project.
<pre><code>GET /projects/:id/hooks</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@return a Stream of project hooks for the specified project
@throws GitLabApiExcept... | [
"Get",
"a",
"Stream",
"of",
"the",
"project",
"hooks",
"for",
"the",
"specified",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1599-L1601 |
64,445 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getHook | public ProjectHook getHook(Object projectIdOrPath, Integer hookId) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "hooks", hookId);
return (response.readEntity(ProjectHook.class));
} | java | public ProjectHook getHook(Object projectIdOrPath, Integer hookId) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "hooks", hookId);
return (response.readEntity(ProjectHook.class));
} | [
"public",
"ProjectHook",
"getHook",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"hookId",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"null",
",",
"\"projects\"",
",",
"get... | Get a specific hook for project.
<pre><code>GET /projects/:id/hooks/:hook_id</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param hookId the ID of the hook to get
@return the project hook for the specified project ID/hook ID ... | [
"Get",
"a",
"specific",
"hook",
"for",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1613-L1616 |
64,446 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getOptionalHook | public Optional<ProjectHook> getOptionalHook(Object projectIdOrPath, Integer hookId) {
try {
return (Optional.ofNullable(getHook(projectIdOrPath, hookId)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
}
} | java | public Optional<ProjectHook> getOptionalHook(Object projectIdOrPath, Integer hookId) {
try {
return (Optional.ofNullable(getHook(projectIdOrPath, hookId)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
}
} | [
"public",
"Optional",
"<",
"ProjectHook",
">",
"getOptionalHook",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"hookId",
")",
"{",
"try",
"{",
"return",
"(",
"Optional",
".",
"ofNullable",
"(",
"getHook",
"(",
"projectIdOrPath",
",",
"hookId",
")",
")",
... | Get a specific hook for project as an Optional instance.
<pre><code>GET /projects/:id/hooks/:hook_id</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param hookId the ID of the hook to get
@return the project hook for the speci... | [
"Get",
"a",
"specific",
"hook",
"for",
"project",
"as",
"an",
"Optional",
"instance",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1627-L1633 |
64,447 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.deleteHook | public void deleteHook(Object projectIdOrPath, Integer hookId) throws GitLabApiException {
Response.Status expectedStatus = (isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.NO_CONTENT);
delete(expectedStatus, null, "projects", getProjectIdOrPath(projectIdOrPath), "hooks", hookId);
... | java | public void deleteHook(Object projectIdOrPath, Integer hookId) throws GitLabApiException {
Response.Status expectedStatus = (isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.NO_CONTENT);
delete(expectedStatus, null, "projects", getProjectIdOrPath(projectIdOrPath), "hooks", hookId);
... | [
"public",
"void",
"deleteHook",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"hookId",
")",
"throws",
"GitLabApiException",
"{",
"Response",
".",
"Status",
"expectedStatus",
"=",
"(",
"isApiVersion",
"(",
"ApiVersion",
".",
"V3",
")",
"?",
"Response",
".",
... | Deletes a hook from the project.
<pre><code>DELETE /projects/:id/hooks/:hook_id</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param hookId the project hook ID to delete
@throws GitLabApiException if any exception occurs | [
"Deletes",
"a",
"hook",
"from",
"the",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1738-L1741 |
64,448 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.modifyHook | public ProjectHook modifyHook(ProjectHook hook) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("url", hook.getUrl(), true)
.withParam("push_events", hook.getPushEvents(), false)
.withParam("issues_events", hook.getIssuesEvents(), false)
... | java | public ProjectHook modifyHook(ProjectHook hook) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("url", hook.getUrl(), true)
.withParam("push_events", hook.getPushEvents(), false)
.withParam("issues_events", hook.getIssuesEvents(), false)
... | [
"public",
"ProjectHook",
"modifyHook",
"(",
"ProjectHook",
"hook",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"url\"",
",",
"hook",
".",
"getUrl",
"(",
")",
",",
"true"... | Modifies a hook for project.
<pre><code>PUT /projects/:id/hooks/:hook_id</code></pre>
@param hook the ProjectHook instance that contains the project hook info to modify
@return the modified project hook
@throws GitLabApiException if any exception occurs | [
"Modifies",
"a",
"hook",
"for",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1764-L1781 |
64,449 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getIssues | @Deprecated
public List<Issue> getIssues(Object projectIdOrPath) throws GitLabApiException {
return (getIssues(projectIdOrPath, getDefaultPerPage()).all());
} | java | @Deprecated
public List<Issue> getIssues(Object projectIdOrPath) throws GitLabApiException {
return (getIssues(projectIdOrPath, getDefaultPerPage()).all());
} | [
"@",
"Deprecated",
"public",
"List",
"<",
"Issue",
">",
"getIssues",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getIssues",
"(",
"projectIdOrPath",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"all",
"(",
")",
... | Get a list of the project's issues.
<pre><code>GET /projects/:id/issues</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@return a list of project's issues
@throws GitLabApiException if any exception occurs
@deprecated Will be r... | [
"Get",
"a",
"list",
"of",
"the",
"project",
"s",
"issues",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1793-L1796 |
64,450 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getIssuesStream | @Deprecated
public Stream<Issue> getIssuesStream(Object projectIdOrPath) throws GitLabApiException {
return (getIssues(projectIdOrPath, getDefaultPerPage()).stream());
} | java | @Deprecated
public Stream<Issue> getIssuesStream(Object projectIdOrPath) throws GitLabApiException {
return (getIssues(projectIdOrPath, getDefaultPerPage()).stream());
} | [
"@",
"Deprecated",
"public",
"Stream",
"<",
"Issue",
">",
"getIssuesStream",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getIssues",
"(",
"projectIdOrPath",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"stream",
"... | Get a Stream of the project's issues.
<pre><code>GET /projects/:id/issues</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@return a Stream of the project's issues
@throws GitLabApiException if any exception occurs
@deprecated W... | [
"Get",
"a",
"Stream",
"of",
"the",
"project",
"s",
"issues",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1842-L1845 |
64,451 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.deleteIssue | @Deprecated
public void deleteIssue(Object projectIdOrPath, Integer issueId) throws GitLabApiException {
Response.Status expectedStatus = (isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.NO_CONTENT);
delete(expectedStatus, getDefaultPerPageParam(), "projects", getProjectIdOrPath(p... | java | @Deprecated
public void deleteIssue(Object projectIdOrPath, Integer issueId) throws GitLabApiException {
Response.Status expectedStatus = (isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.NO_CONTENT);
delete(expectedStatus, getDefaultPerPageParam(), "projects", getProjectIdOrPath(p... | [
"@",
"Deprecated",
"public",
"void",
"deleteIssue",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"issueId",
")",
"throws",
"GitLabApiException",
"{",
"Response",
".",
"Status",
"expectedStatus",
"=",
"(",
"isApiVersion",
"(",
"ApiVersion",
".",
"V3",
")",
"... | Delete a project issue.
<pre><code>DELETE /projects/:id/issues/:issue_iid</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param issueId the internal ID of a project's issue
@throws GitLabApiException if any exception occurs
@d... | [
"Delete",
"a",
"project",
"issue",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1874-L1878 |
64,452 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getSnippets | public List<Snippet> getSnippets(Object projectIdOrPath) throws GitLabApiException {
return (getSnippets(projectIdOrPath, getDefaultPerPage()).all());
} | java | public List<Snippet> getSnippets(Object projectIdOrPath) throws GitLabApiException {
return (getSnippets(projectIdOrPath, getDefaultPerPage()).all());
} | [
"public",
"List",
"<",
"Snippet",
">",
"getSnippets",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getSnippets",
"(",
"projectIdOrPath",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"all",
"(",
")",
")",
";",
"... | Get a list of the project snippets.
<pre><code>GET /projects/:id/snippets</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@return a list of the project's snippets
@throws GitLabApiException if any exception occurs | [
"Get",
"a",
"list",
"of",
"the",
"project",
"snippets",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1889-L1891 |
64,453 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getSnippets | public List<Snippet> getSnippets(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage), "projects", getProjectIdOrPath(projectIdOrPath), "snippets");
return (response.readEntity(new GenericType<List<Snippe... | java | public List<Snippet> getSnippets(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage), "projects", getProjectIdOrPath(projectIdOrPath), "snippets");
return (response.readEntity(new GenericType<List<Snippe... | [
"public",
"List",
"<",
"Snippet",
">",
"getSnippets",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"page",
",",
"int",
"perPage",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
... | Get a list of project snippets.
<pre><code>GET /projects/:id/snippets</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param page the page to get
@param perPage the number of snippets per page
@return a list of project's snippe... | [
"Get",
"a",
"list",
"of",
"project",
"snippets",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1904-L1907 |
64,454 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getSnippets | public Pager<Snippet> getSnippets(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return (new Pager<Snippet>(this, Snippet.class, itemsPerPage, null, "projects", getProjectIdOrPath(projectIdOrPath), "snippets"));
} | java | public Pager<Snippet> getSnippets(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return (new Pager<Snippet>(this, Snippet.class, itemsPerPage, null, "projects", getProjectIdOrPath(projectIdOrPath), "snippets"));
} | [
"public",
"Pager",
"<",
"Snippet",
">",
"getSnippets",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"itemsPerPage",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"new",
"Pager",
"<",
"Snippet",
">",
"(",
"this",
",",
"Snippet",
".",
"class",
",",... | Get a Pager of project's snippets.
<pre><code>GET /projects/:id/snippets</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param itemsPerPage the number of snippets per page
@return the Pager of snippets
@throws GitLabApiExcepti... | [
"Get",
"a",
"Pager",
"of",
"project",
"s",
"snippets",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1919-L1921 |
64,455 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getSnippetsStream | public Stream<Snippet> getSnippetsStream(Object projectIdOrPath) throws GitLabApiException {
return (getSnippets(projectIdOrPath, getDefaultPerPage()).stream());
} | java | public Stream<Snippet> getSnippetsStream(Object projectIdOrPath) throws GitLabApiException {
return (getSnippets(projectIdOrPath, getDefaultPerPage()).stream());
} | [
"public",
"Stream",
"<",
"Snippet",
">",
"getSnippetsStream",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getSnippets",
"(",
"projectIdOrPath",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"stream",
"(",
")",
")",... | Get a Stream of the project snippets.
<pre><code>GET /projects/:id/snippets</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@return a Stream of the project's snippets
@throws GitLabApiException if any exception occurs | [
"Get",
"a",
"Stream",
"of",
"the",
"project",
"snippets",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1932-L1934 |
64,456 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getSnippet | public Snippet getSnippet(Object projectIdOrPath, Integer snippetId) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "snippets", snippetId);
return (response.readEntity(Snippet.class));
} | java | public Snippet getSnippet(Object projectIdOrPath, Integer snippetId) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "snippets", snippetId);
return (response.readEntity(Snippet.class));
} | [
"public",
"Snippet",
"getSnippet",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"snippetId",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"null",
",",
"\"projects\"",
",",
"g... | Get a single of project snippet.
<pre><code>GET /projects/:id/snippets/:snippet_id</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param snippetId the ID of the project's snippet
@return the specified project Snippet
@throws G... | [
"Get",
"a",
"single",
"of",
"project",
"snippet",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1946-L1949 |
64,457 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getOptionalSnippet | public Optional<Snippet> getOptionalSnippet(Object projectIdOrPath, Integer snippetId) {
try {
return (Optional.ofNullable(getSnippet(projectIdOrPath, snippetId)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
}
} | java | public Optional<Snippet> getOptionalSnippet(Object projectIdOrPath, Integer snippetId) {
try {
return (Optional.ofNullable(getSnippet(projectIdOrPath, snippetId)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
}
} | [
"public",
"Optional",
"<",
"Snippet",
">",
"getOptionalSnippet",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"snippetId",
")",
"{",
"try",
"{",
"return",
"(",
"Optional",
".",
"ofNullable",
"(",
"getSnippet",
"(",
"projectIdOrPath",
",",
"snippetId",
")",
... | Get a single of project snippet as an Optional instance.
<pre><code>GET /projects/:id/snippets/:snippet_id</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param snippetId the ID of the project's snippet
@return the specified p... | [
"Get",
"a",
"single",
"of",
"project",
"snippet",
"as",
"an",
"Optional",
"instance",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1960-L1966 |
64,458 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.createSnippet | public Snippet createSnippet(Object projectIdOrPath, String title, String filename, String description,
String code, Visibility visibility) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("title", title, true)
.withParam("file_name... | java | public Snippet createSnippet(Object projectIdOrPath, String title, String filename, String description,
String code, Visibility visibility) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("title", title, true)
.withParam("file_name... | [
"public",
"Snippet",
"createSnippet",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"title",
",",
"String",
"filename",
",",
"String",
"description",
",",
"String",
"code",
",",
"Visibility",
"visibility",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm"... | Creates a new project snippet. The user must have permission to create new snippets.
<pre><code>POST /projects/:id/snippets</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param title the title of a snippet, required
@param fi... | [
"Creates",
"a",
"new",
"project",
"snippet",
".",
"The",
"user",
"must",
"have",
"permission",
"to",
"create",
"new",
"snippets",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L1982-L1994 |
64,459 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.updateSnippet | public Snippet updateSnippet(Object projectIdOrPath, Integer snippetId, String title, String filename, String description,
String code, Visibility visibility) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("title", title)
.withPar... | java | public Snippet updateSnippet(Object projectIdOrPath, Integer snippetId, String title, String filename, String description,
String code, Visibility visibility) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("title", title)
.withPar... | [
"public",
"Snippet",
"updateSnippet",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"snippetId",
",",
"String",
"title",
",",
"String",
"filename",
",",
"String",
"description",
",",
"String",
"code",
",",
"Visibility",
"visibility",
")",
"throws",
"GitLabApiE... | Updates an existing project snippet. The user must have permission to change an existing snippet.
<pre><code>PUT /projects/:id/snippets/:snippet_id</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param snippetId the ID of a pr... | [
"Updates",
"an",
"existing",
"project",
"snippet",
".",
"The",
"user",
"must",
"have",
"permission",
"to",
"change",
"an",
"existing",
"snippet",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2011-L2023 |
64,460 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getRawSnippetContent | public String getRawSnippetContent(Object projectIdOrPath, Integer snippetId) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "snippets", snippetId, "raw");
return (response.readEntity(String.class));
} | java | public String getRawSnippetContent(Object projectIdOrPath, Integer snippetId) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "snippets", snippetId, "raw");
return (response.readEntity(String.class));
} | [
"public",
"String",
"getRawSnippetContent",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"snippetId",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"null",
",",
"\"projects\"",
... | Get the raw project snippet as plain text.
<pre><code>GET /projects/:id/snippets/:snippet_id/raw</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param snippetId the ID of the project's snippet
@return the raw project snippet p... | [
"Get",
"the",
"raw",
"project",
"snippet",
"as",
"plain",
"text",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2049-L2052 |
64,461 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getOptionalRawSnippetContent | public Optional<String> getOptionalRawSnippetContent(Object projectIdOrPath, Integer snippetId) {
try {
return (Optional.ofNullable(getRawSnippetContent(projectIdOrPath, snippetId)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
... | java | public Optional<String> getOptionalRawSnippetContent(Object projectIdOrPath, Integer snippetId) {
try {
return (Optional.ofNullable(getRawSnippetContent(projectIdOrPath, snippetId)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
... | [
"public",
"Optional",
"<",
"String",
">",
"getOptionalRawSnippetContent",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"snippetId",
")",
"{",
"try",
"{",
"return",
"(",
"Optional",
".",
"ofNullable",
"(",
"getRawSnippetContent",
"(",
"projectIdOrPath",
",",
"... | Get the raw project snippet plain text as an Optional instance.
<pre><code>GET /projects/:id/snippets/:snippet_id/raw</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param snippetId the ID of the project's snippet
@return the ... | [
"Get",
"the",
"raw",
"project",
"snippet",
"plain",
"text",
"as",
"an",
"Optional",
"instance",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2063-L2069 |
64,462 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.shareProject | public void shareProject(Object projectIdOrPath, Integer groupId, AccessLevel accessLevel, Date expiresAt)
throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("group_id", groupId, true)
.withParam("group_access", accessLevel, true)
... | java | public void shareProject(Object projectIdOrPath, Integer groupId, AccessLevel accessLevel, Date expiresAt)
throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("group_id", groupId, true)
.withParam("group_access", accessLevel, true)
... | [
"public",
"void",
"shareProject",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"groupId",
",",
"AccessLevel",
"accessLevel",
",",
"Date",
"expiresAt",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
... | Share a project with the specified group.
<pre><code>POST /projects/:id/share</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param groupId the ID of the group to share with, required
@param accessLevel the permissions level t... | [
"Share",
"a",
"project",
"with",
"the",
"specified",
"group",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2082-L2089 |
64,463 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.unshareProject | public void unshareProject(Object projectIdOrPath, Integer groupId) throws GitLabApiException {
Response.Status expectedStatus = (isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.NO_CONTENT);
delete(expectedStatus, null, "projects", getProjectIdOrPath(projectIdOrPath), "share", groupId... | java | public void unshareProject(Object projectIdOrPath, Integer groupId) throws GitLabApiException {
Response.Status expectedStatus = (isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.NO_CONTENT);
delete(expectedStatus, null, "projects", getProjectIdOrPath(projectIdOrPath), "share", groupId... | [
"public",
"void",
"unshareProject",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"groupId",
")",
"throws",
"GitLabApiException",
"{",
"Response",
".",
"Status",
"expectedStatus",
"=",
"(",
"isApiVersion",
"(",
"ApiVersion",
".",
"V3",
")",
"?",
"Response",
... | Unshare the project from the group.
<pre><code>DELETE /projects/:id/share/:group_id</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param groupId the ID of the group to unshare, required
@throws GitLabApiException if any excep... | [
"Unshare",
"the",
"project",
"from",
"the",
"group",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2100-L2103 |
64,464 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.archiveProject | public Project archiveProject(Object projectIdOrPath)
throws GitLabApiException {
Response response = post(Response.Status.CREATED, (new GitLabApiForm()), "projects", getProjectIdOrPath(projectIdOrPath), "archive");
return (response.readEntity(Project.class));
} | java | public Project archiveProject(Object projectIdOrPath)
throws GitLabApiException {
Response response = post(Response.Status.CREATED, (new GitLabApiForm()), "projects", getProjectIdOrPath(projectIdOrPath), "archive");
return (response.readEntity(Project.class));
} | [
"public",
"Project",
"archiveProject",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"post",
"(",
"Response",
".",
"Status",
".",
"CREATED",
",",
"(",
"new",
"GitLabApiForm",
"(",
")",
")",
",",
"\"pro... | Archive a project
<pre><code>POST /projects/:id/archive</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@return the archived GitLab Project
@throws GitLabApiException if any exception occurs | [
"Archive",
"a",
"project"
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2114-L2118 |
64,465 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getPushRules | public PushRules getPushRules(Object projectIdOrPath) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "push_rule");
return (response.readEntity(PushRules.class));
} | java | public PushRules getPushRules(Object projectIdOrPath) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "push_rule");
return (response.readEntity(PushRules.class));
} | [
"public",
"PushRules",
"getPushRules",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"null",
",",
"\"projects\"",
",",
"getProjectIdOrPath",
"(",
"p... | Get the project's push rules.
<pre><code>GET /projects/:id/push_rule</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@return the push rules for the specified project
@throws GitLabApiException if any exception occurs | [
"Get",
"the",
"project",
"s",
"push",
"rules",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2174-L2177 |
64,466 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.createPushRules | public PushRules createPushRules(Object projectIdOrPath, PushRules pushRule) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("deny_delete_tag", pushRule.getDenyDeleteTag())
.withParam("member_check", pushRule.getMemberCheck())
.withParam("p... | java | public PushRules createPushRules(Object projectIdOrPath, PushRules pushRule) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("deny_delete_tag", pushRule.getDenyDeleteTag())
.withParam("member_check", pushRule.getMemberCheck())
.withParam("p... | [
"public",
"PushRules",
"createPushRules",
"(",
"Object",
"projectIdOrPath",
",",
"PushRules",
"pushRule",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"deny_delete_tag\"",
",",
... | Adds a push rule to a specified project.
<pre><code>POST /projects/:id/push_rule</code></pre>
The following properties on the PushRules instance are utilized in the creation of the push rule:
<code>
denyDeleteTag (optional) - Deny deleting a tag
memberCheck (optional) - Restrict commits by author (email) to existing... | [
"Adds",
"a",
"push",
"rule",
"to",
"a",
"specified",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2202-L2215 |
64,467 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.updatePushRules | public PushRules updatePushRules(Object projectIdOrPath, PushRules pushRule) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("deny_delete_tag", pushRule.getDenyDeleteTag())
.withParam("member_check", pushRule.getMemberCheck())
.withParam("p... | java | public PushRules updatePushRules(Object projectIdOrPath, PushRules pushRule) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("deny_delete_tag", pushRule.getDenyDeleteTag())
.withParam("member_check", pushRule.getMemberCheck())
.withParam("p... | [
"public",
"PushRules",
"updatePushRules",
"(",
"Object",
"projectIdOrPath",
",",
"PushRules",
"pushRule",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"deny_delete_tag\"",
",",
... | Updates a push rule for the specified project.
<pre><code>PUT /projects/:id/push_rule/:push_rule_id</code></pre>
The following properties on the PushRules instance are utilized when updating the push rule:
<code>
denyDeleteTag (optional) - Deny deleting a tag
memberCheck (optional) - Restrict commits by author (emai... | [
"Updates",
"a",
"push",
"rule",
"for",
"the",
"specified",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2240-L2253 |
64,468 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.deletePushRules | public void deletePushRules(Object projectIdOrPath) throws GitLabApiException {
delete(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "push_rule");
} | java | public void deletePushRules(Object projectIdOrPath) throws GitLabApiException {
delete(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "push_rule");
} | [
"public",
"void",
"deletePushRules",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"delete",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"null",
",",
"\"projects\"",
",",
"getProjectIdOrPath",
"(",
"projectIdOrPath",
")",
",",
"... | Removes a push rule from a project. This is an idempotent method and can be
called multiple times. Either the push rule is available or not.
<pre><code>DELETE /projects/:id/push_rule</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, requi... | [
"Removes",
"a",
"push",
"rule",
"from",
"a",
"project",
".",
"This",
"is",
"an",
"idempotent",
"method",
"and",
"can",
"be",
"called",
"multiple",
"times",
".",
"Either",
"the",
"push",
"rule",
"is",
"available",
"or",
"not",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2264-L2266 |
64,469 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getForks | public List<Project> getForks(Object projectIdOrPath) throws GitLabApiException {
return (getForks(projectIdOrPath, getDefaultPerPage()).all());
} | java | public List<Project> getForks(Object projectIdOrPath) throws GitLabApiException {
return (getForks(projectIdOrPath, getDefaultPerPage()).all());
} | [
"public",
"List",
"<",
"Project",
">",
"getForks",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getForks",
"(",
"projectIdOrPath",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"all",
"(",
")",
")",
";",
"}"
] | Get a list of projects that were forked from the specified project.
<pre><code>GET /projects/:id/forks</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@return a List of forked projects
@throws GitLabApiException if any exceptio... | [
"Get",
"a",
"list",
"of",
"projects",
"that",
"were",
"forked",
"from",
"the",
"specified",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2277-L2279 |
64,470 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getForks | public List<Project> getForks(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage),"projects", getProjectIdOrPath(projectIdOrPath), "forks");
return (response.readEntity(new GenericType<List<Project>>() {... | java | public List<Project> getForks(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage),"projects", getProjectIdOrPath(projectIdOrPath), "forks");
return (response.readEntity(new GenericType<List<Project>>() {... | [
"public",
"List",
"<",
"Project",
">",
"getForks",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"page",
",",
"int",
"perPage",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"g... | Get a list of projects that were forked from the specified project and in the specified page range.
<pre><code>GET /projects/:id/forks</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param page the page to get
@param perPage t... | [
"Get",
"a",
"list",
"of",
"projects",
"that",
"were",
"forked",
"from",
"the",
"specified",
"project",
"and",
"in",
"the",
"specified",
"page",
"range",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2292-L2295 |
64,471 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getForks | public Pager<Project> getForks(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return new Pager<Project>(this, Project.class, itemsPerPage, null, "projects", getProjectIdOrPath(projectIdOrPath), "forks");
} | java | public Pager<Project> getForks(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return new Pager<Project>(this, Project.class, itemsPerPage, null, "projects", getProjectIdOrPath(projectIdOrPath), "forks");
} | [
"public",
"Pager",
"<",
"Project",
">",
"getForks",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"itemsPerPage",
")",
"throws",
"GitLabApiException",
"{",
"return",
"new",
"Pager",
"<",
"Project",
">",
"(",
"this",
",",
"Project",
".",
"class",
",",
"itemsP... | Get a Pager of projects that were forked from the specified project.
<pre><code>GET /projects/:id/forks</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param itemsPerPage the number of Project instances that will be fetched pe... | [
"Get",
"a",
"Pager",
"of",
"projects",
"that",
"were",
"forked",
"from",
"the",
"specified",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2307-L2309 |
64,472 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getForksStream | public Stream<Project> getForksStream(Object projectIdOrPath) throws GitLabApiException {
return (getForks(projectIdOrPath, getDefaultPerPage()).stream());
} | java | public Stream<Project> getForksStream(Object projectIdOrPath) throws GitLabApiException {
return (getForks(projectIdOrPath, getDefaultPerPage()).stream());
} | [
"public",
"Stream",
"<",
"Project",
">",
"getForksStream",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getForks",
"(",
"projectIdOrPath",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"stream",
"(",
")",
")",
";"... | Get a Stream of projects that were forked from the specified project.
<pre><code>GET /projects/:id/forks</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@return a Stream of forked projects
@throws GitLabApiException if any exce... | [
"Get",
"a",
"Stream",
"of",
"projects",
"that",
"were",
"forked",
"from",
"the",
"specified",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2320-L2322 |
64,473 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.starProject | public Project starProject(Object projectIdOrPath) throws GitLabApiException {
Response.Status expectedStatus = (isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.CREATED);
Response response = post(expectedStatus, (Form) null, "projects", getProjectIdOrPath(projectIdOrPath), "star");
... | java | public Project starProject(Object projectIdOrPath) throws GitLabApiException {
Response.Status expectedStatus = (isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.CREATED);
Response response = post(expectedStatus, (Form) null, "projects", getProjectIdOrPath(projectIdOrPath), "star");
... | [
"public",
"Project",
"starProject",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"Response",
".",
"Status",
"expectedStatus",
"=",
"(",
"isApiVersion",
"(",
"ApiVersion",
".",
"V3",
")",
"?",
"Response",
".",
"Status",
".",
"OK",
... | Star a project.
<pre><code>POST /projects/:id/star</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
@return a Project instance with the new project info
@throws GitLabApiException if any exception occurs | [
"Star",
"a",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2333-L2337 |
64,474 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getProjectLanguages | public Map<String, Float> getProjectLanguages(Object projectIdOrPath) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "languages");
return (response.readEntity(new GenericType<Map<String, Float>>() {}));
} | java | public Map<String, Float> getProjectLanguages(Object projectIdOrPath) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "languages");
return (response.readEntity(new GenericType<Map<String, Float>>() {}));
} | [
"public",
"Map",
"<",
"String",
",",
"Float",
">",
"getProjectLanguages",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"null",
",",
"\"projects\"... | Get languages used in a project with percentage value.
<pre><code>GET /projects/:id/languages</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@return a Map instance with the language as the key and the percentage as the value
@... | [
"Get",
"languages",
"used",
"in",
"a",
"project",
"with",
"percentage",
"value",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2364-L2367 |
64,475 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.transferProject | public Project transferProject(Object projectIdOrPath, String namespace) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("namespace", namespace, true);
Response response = put(Response.Status.OK, formData.asMap(), "projects", getProjectIdOrPath(projectIdOrPath), "trans... | java | public Project transferProject(Object projectIdOrPath, String namespace) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("namespace", namespace, true);
Response response = put(Response.Status.OK, formData.asMap(), "projects", getProjectIdOrPath(projectIdOrPath), "trans... | [
"public",
"Project",
"transferProject",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"namespace",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"namespace\"",
",",
"namespac... | Transfer a project to a new namespace. This was added in GitLab 11.1
<pre><code>PUT /projects/:id/transfer.</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param namespace the namespace to transfer the project to
@return the ... | [
"Transfer",
"a",
"project",
"to",
"a",
"new",
"namespace",
".",
"This",
"was",
"added",
"in",
"GitLab",
"11",
".",
"1"
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2379-L2383 |
64,476 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.setProjectAvatar | public Project setProjectAvatar(Object projectIdOrPath, File avatarFile) throws GitLabApiException {
Response response = putUpload(Response.Status.OK, "avatar", avatarFile, "projects", getProjectIdOrPath(projectIdOrPath));
return (response.readEntity(Project.class));
} | java | public Project setProjectAvatar(Object projectIdOrPath, File avatarFile) throws GitLabApiException {
Response response = putUpload(Response.Status.OK, "avatar", avatarFile, "projects", getProjectIdOrPath(projectIdOrPath));
return (response.readEntity(Project.class));
} | [
"public",
"Project",
"setProjectAvatar",
"(",
"Object",
"projectIdOrPath",
",",
"File",
"avatarFile",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"putUpload",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"\"avatar\"",
",",
"avatarFile... | Uploads and sets the project avatar for the specified project.
<pre><code>PUT /projects/:id/uploads</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param avatarFile the File instance of the avatar file to upload
@return the up... | [
"Uploads",
"and",
"sets",
"the",
"project",
"avatar",
"for",
"the",
"specified",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2395-L2398 |
64,477 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getVariables | public List<Variable> getVariables(Object projectIdOrPath) throws GitLabApiException {
return (getVariables(projectIdOrPath, getDefaultPerPage()).all());
} | java | public List<Variable> getVariables(Object projectIdOrPath) throws GitLabApiException {
return (getVariables(projectIdOrPath, getDefaultPerPage()).all());
} | [
"public",
"List",
"<",
"Variable",
">",
"getVariables",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getVariables",
"(",
"projectIdOrPath",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"all",
"(",
")",
")",
";",
... | Get list of a project's variables.
<pre><code>GitLab Endpoint: GET /groups/:id/variables</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@return a list of variables belonging to the specified project
@throws GitLabApiException ... | [
"Get",
"list",
"of",
"a",
"project",
"s",
"variables",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2409-L2411 |
64,478 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getVariables | public List<Variable> getVariables(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage), "projects", getProjectIdOrPath(projectIdOrPath), "variables");
return (response.readEntity(new GenericType<List<Var... | java | public List<Variable> getVariables(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage), "projects", getProjectIdOrPath(projectIdOrPath), "variables");
return (response.readEntity(new GenericType<List<Var... | [
"public",
"List",
"<",
"Variable",
">",
"getVariables",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"page",
",",
"int",
"perPage",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",... | Get a list of variables for the specified project in the specified page range.
<pre><code>GitLab Endpoint: GET /projects/:id/variables</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param page the page to get
@param perPage t... | [
"Get",
"a",
"list",
"of",
"variables",
"for",
"the",
"specified",
"project",
"in",
"the",
"specified",
"page",
"range",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2424-L2427 |
64,479 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getVariables | public Pager<Variable> getVariables(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return (new Pager<Variable>(this, Variable.class, itemsPerPage, null, "projects", getProjectIdOrPath(projectIdOrPath), "variables"));
} | java | public Pager<Variable> getVariables(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return (new Pager<Variable>(this, Variable.class, itemsPerPage, null, "projects", getProjectIdOrPath(projectIdOrPath), "variables"));
} | [
"public",
"Pager",
"<",
"Variable",
">",
"getVariables",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"itemsPerPage",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"new",
"Pager",
"<",
"Variable",
">",
"(",
"this",
",",
"Variable",
".",
"class",
... | Get a Pager of variables belonging to the specified project.
<pre><code>GitLab Endpoint: GET /projects/:id/variables</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param itemsPerPage the number of Variable instances that will... | [
"Get",
"a",
"Pager",
"of",
"variables",
"belonging",
"to",
"the",
"specified",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2439-L2441 |
64,480 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getVariablesStream | public Stream<Variable> getVariablesStream(Object projectIdOrPath) throws GitLabApiException {
return (getVariables(projectIdOrPath, getDefaultPerPage()).stream());
} | java | public Stream<Variable> getVariablesStream(Object projectIdOrPath) throws GitLabApiException {
return (getVariables(projectIdOrPath, getDefaultPerPage()).stream());
} | [
"public",
"Stream",
"<",
"Variable",
">",
"getVariablesStream",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getVariables",
"(",
"projectIdOrPath",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"stream",
"(",
")",
"... | Get a Stream of variables belonging to the specified project.
<pre><code>GitLab Endpoint: GET /projects/:id/variables</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@return a Stream of variables belonging to the specified proj... | [
"Get",
"a",
"Stream",
"of",
"variables",
"belonging",
"to",
"the",
"specified",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2452-L2454 |
64,481 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.getVariable | public Variable getVariable(Object projectIdOrPath, String key) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "variables", key);
return (response.readEntity(Variable.class));
} | java | public Variable getVariable(Object projectIdOrPath, String key) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "variables", key);
return (response.readEntity(Variable.class));
} | [
"public",
"Variable",
"getVariable",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"key",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"null",
",",
"\"projects\"",
",",
"getPro... | Get the details of a project variable.
<pre><code>GitLab Endpoint: GET /projects/:id/variables/:key</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param key the key of an existing variable, required
@return the Variable insta... | [
"Get",
"the",
"details",
"of",
"a",
"project",
"variable",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2466-L2469 |
64,482 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.updateVariable | public Variable updateVariable(Object projectIdOrPath, String key, String value, Boolean isProtected, String environmentScope) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("value", value, true)
.withParam("protected", isProtected)
... | java | public Variable updateVariable(Object projectIdOrPath, String key, String value, Boolean isProtected, String environmentScope) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("value", value, true)
.withParam("protected", isProtected)
... | [
"public",
"Variable",
"updateVariable",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"key",
",",
"String",
"value",
",",
"Boolean",
"isProtected",
",",
"String",
"environmentScope",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new... | Update a project variable.
<p>NOTE: Updating the environmentScope is only available on GitLab EE.</p>
<pre><code>GitLab Endpoint: PUT /projects/:id/variables/:key</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param key the ... | [
"Update",
"a",
"project",
"variable",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2561-L2569 |
64,483 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProjectApi.java | ProjectApi.deleteVariable | public void deleteVariable(Object projectIdOrPath, String key) throws GitLabApiException {
delete(Response.Status.NO_CONTENT, null, "projects", getProjectIdOrPath(projectIdOrPath), "variables", key);
} | java | public void deleteVariable(Object projectIdOrPath, String key) throws GitLabApiException {
delete(Response.Status.NO_CONTENT, null, "projects", getProjectIdOrPath(projectIdOrPath), "variables", key);
} | [
"public",
"void",
"deleteVariable",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"key",
")",
"throws",
"GitLabApiException",
"{",
"delete",
"(",
"Response",
".",
"Status",
".",
"NO_CONTENT",
",",
"null",
",",
"\"projects\"",
",",
"getProjectIdOrPath",
"(",
"... | Deletes a project variable.
<pre><code>DELETE /projects/:id/variables/:key</code></pre>
@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
@param key the key of an existing variable, required
@throws GitLabApiException if any exception occurs | [
"Deletes",
"a",
"project",
"variable",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProjectApi.java#L2580-L2582 |
64,484 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/utils/HttpRequestUtils.java | HttpRequestUtils.getShortRequestDump | public static String getShortRequestDump(String fromMethod, HttpServletRequest request) {
return (getShortRequestDump(fromMethod, false, request));
} | java | public static String getShortRequestDump(String fromMethod, HttpServletRequest request) {
return (getShortRequestDump(fromMethod, false, request));
} | [
"public",
"static",
"String",
"getShortRequestDump",
"(",
"String",
"fromMethod",
",",
"HttpServletRequest",
"request",
")",
"{",
"return",
"(",
"getShortRequestDump",
"(",
"fromMethod",
",",
"false",
",",
"request",
")",
")",
";",
"}"
] | Build a String containing a very short multi-line dump of an HTTP request.
@param fromMethod the method that this method was called from
@param request the HTTP request build the request dump from
@return a String containing a very short multi-line dump of the HTTP request | [
"Build",
"a",
"String",
"containing",
"a",
"very",
"short",
"multi",
"-",
"line",
"dump",
"of",
"an",
"HTTP",
"request",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/utils/HttpRequestUtils.java#L20-L22 |
64,485 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/utils/HttpRequestUtils.java | HttpRequestUtils.getShortRequestDump | public static String getShortRequestDump(String fromMethod, boolean includeHeaders, HttpServletRequest request) {
StringBuilder dump = new StringBuilder();
dump.append("Timestamp : ").append(ISO8601.getTimestamp()).append("\n");
dump.append("fromMethod : ").append(fromMethod).append(... | java | public static String getShortRequestDump(String fromMethod, boolean includeHeaders, HttpServletRequest request) {
StringBuilder dump = new StringBuilder();
dump.append("Timestamp : ").append(ISO8601.getTimestamp()).append("\n");
dump.append("fromMethod : ").append(fromMethod).append(... | [
"public",
"static",
"String",
"getShortRequestDump",
"(",
"String",
"fromMethod",
",",
"boolean",
"includeHeaders",
",",
"HttpServletRequest",
"request",
")",
"{",
"StringBuilder",
"dump",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"dump",
".",
"append",
"(",
"... | Build a String containing a short multi-line dump of an HTTP request.
@param fromMethod the method that this method was called from
@param request the HTTP request build the request dump from
@param includeHeaders if true will include the HTTP headers in the dump
@return a String containing a short multi-line dump of ... | [
"Build",
"a",
"String",
"containing",
"a",
"short",
"multi",
"-",
"line",
"dump",
"of",
"an",
"HTTP",
"request",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/utils/HttpRequestUtils.java#L32-L57 |
64,486 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/utils/HttpRequestUtils.java | HttpRequestUtils.getRequestDump | public static String getRequestDump(String fromMethod, HttpServletRequest request, boolean includePostData) {
String shortDump = getShortRequestDump(fromMethod, request);
StringBuilder buf = new StringBuilder(shortDump);
try {
buf.append("\nAttributes:\n");
Enume... | java | public static String getRequestDump(String fromMethod, HttpServletRequest request, boolean includePostData) {
String shortDump = getShortRequestDump(fromMethod, request);
StringBuilder buf = new StringBuilder(shortDump);
try {
buf.append("\nAttributes:\n");
Enume... | [
"public",
"static",
"String",
"getRequestDump",
"(",
"String",
"fromMethod",
",",
"HttpServletRequest",
"request",
",",
"boolean",
"includePostData",
")",
"{",
"String",
"shortDump",
"=",
"getShortRequestDump",
"(",
"fromMethod",
",",
"request",
")",
";",
"StringBui... | Build a String containing a multi-line dump of an HTTP request.
@param fromMethod the method that this method was called from
@param request the HTTP request build the request dump from
@param includePostData if true will include the POST data in the dump
@return a String containing a multi-line dump of the HTTP reque... | [
"Build",
"a",
"String",
"containing",
"a",
"multi",
"-",
"line",
"dump",
"of",
"an",
"HTTP",
"request",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/utils/HttpRequestUtils.java#L68-L113 |
64,487 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/utils/HttpRequestUtils.java | HttpRequestUtils.getPostDataAsString | public static String getPostDataAsString(HttpServletRequest request) throws IOException {
try (InputStreamReader reader = new InputStreamReader(request.getInputStream(), "UTF-8")) {
return (getReaderContentAsString(reader));
}
} | java | public static String getPostDataAsString(HttpServletRequest request) throws IOException {
try (InputStreamReader reader = new InputStreamReader(request.getInputStream(), "UTF-8")) {
return (getReaderContentAsString(reader));
}
} | [
"public",
"static",
"String",
"getPostDataAsString",
"(",
"HttpServletRequest",
"request",
")",
"throws",
"IOException",
"{",
"try",
"(",
"InputStreamReader",
"reader",
"=",
"new",
"InputStreamReader",
"(",
"request",
".",
"getInputStream",
"(",
")",
",",
"\"UTF-8\"... | Reads the POST data from a request into a String and returns it.
@param request the HTTP request containing the POST data
@return the POST data as a String instance
@throws IOException if any error occurs while reading the POST data | [
"Reads",
"the",
"POST",
"data",
"from",
"a",
"request",
"into",
"a",
"String",
"and",
"returns",
"it",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/utils/HttpRequestUtils.java#L122-L127 |
64,488 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/utils/HttpRequestUtils.java | HttpRequestUtils.getReaderContentAsString | public static String getReaderContentAsString(Reader reader) throws IOException {
int count;
final char[] buffer = new char[2048];
final StringBuilder out = new StringBuilder();
while ((count = reader.read(buffer, 0, buffer.length)) >= 0) {
out.append(buffer, 0, count)... | java | public static String getReaderContentAsString(Reader reader) throws IOException {
int count;
final char[] buffer = new char[2048];
final StringBuilder out = new StringBuilder();
while ((count = reader.read(buffer, 0, buffer.length)) >= 0) {
out.append(buffer, 0, count)... | [
"public",
"static",
"String",
"getReaderContentAsString",
"(",
"Reader",
"reader",
")",
"throws",
"IOException",
"{",
"int",
"count",
";",
"final",
"char",
"[",
"]",
"buffer",
"=",
"new",
"char",
"[",
"2048",
"]",
";",
"final",
"StringBuilder",
"out",
"=",
... | Reads the content of a Reader instance and returns it as a String.
@param reader the Reader instance to read the data from
@return the content of a Reader instance as a String
@throws IOException if any error occurs while reading the POST data | [
"Reads",
"the",
"content",
"of",
"a",
"Reader",
"instance",
"and",
"returns",
"it",
"as",
"a",
"String",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/utils/HttpRequestUtils.java#L136-L146 |
64,489 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/models/RepositoryFile.java | RepositoryFile.encodeAndSetContent | @JsonIgnore
public void encodeAndSetContent(String content) {
encodeAndSetContent(content != null ? content.getBytes() : null);
} | java | @JsonIgnore
public void encodeAndSetContent(String content) {
encodeAndSetContent(content != null ? content.getBytes() : null);
} | [
"@",
"JsonIgnore",
"public",
"void",
"encodeAndSetContent",
"(",
"String",
"content",
")",
"{",
"encodeAndSetContent",
"(",
"content",
"!=",
"null",
"?",
"content",
".",
"getBytes",
"(",
")",
":",
"null",
")",
";",
"}"
] | Encodes the provided String using Base64 and sets it as the content. The encoding
property of this instance will be set to base64.
@param content the String content to encode and set as the base64 encoded String content | [
"Encodes",
"the",
"provided",
"String",
"using",
"Base64",
"and",
"sets",
"it",
"as",
"the",
"content",
".",
"The",
"encoding",
"property",
"of",
"this",
"instance",
"will",
"be",
"set",
"to",
"base64",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/models/RepositoryFile.java#L140-L143 |
64,490 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/models/RepositoryFile.java | RepositoryFile.encodeAndSetContent | @JsonIgnore
public void encodeAndSetContent(byte[] byteContent) {
if (byteContent == null) {
this.content = null;
return;
}
this.content = Base64.getEncoder().encodeToString(byteContent);
encoding = "base64";
} | java | @JsonIgnore
public void encodeAndSetContent(byte[] byteContent) {
if (byteContent == null) {
this.content = null;
return;
}
this.content = Base64.getEncoder().encodeToString(byteContent);
encoding = "base64";
} | [
"@",
"JsonIgnore",
"public",
"void",
"encodeAndSetContent",
"(",
"byte",
"[",
"]",
"byteContent",
")",
"{",
"if",
"(",
"byteContent",
"==",
"null",
")",
"{",
"this",
".",
"content",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"content",
"=",
"Ba... | Encodes the provided byte array using Base64 and sets it as the content. The encoding
property of this instance will be set to base64.
@param byteContent the byte[] content to encode and set as the base64 encoded String content | [
"Encodes",
"the",
"provided",
"byte",
"array",
"using",
"Base64",
"and",
"sets",
"it",
"as",
"the",
"content",
".",
"The",
"encoding",
"property",
"of",
"this",
"instance",
"will",
"be",
"set",
"to",
"base64",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/models/RepositoryFile.java#L151-L161 |
64,491 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/WikisApi.java | WikisApi.getPages | public List<WikiPage> getPages(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage),
"projects", getProjectIdOrPath(projectIdOrPath), "wikis");
return response.readEntity(new GenericType<L... | java | public List<WikiPage> getPages(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage),
"projects", getProjectIdOrPath(projectIdOrPath), "wikis");
return response.readEntity(new GenericType<L... | [
"public",
"List",
"<",
"WikiPage",
">",
"getPages",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"page",
",",
"int",
"perPage",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"... | Get a list of pages in project wiki for the specified page.
<pre><code>GitLab Endpoint: GET /projects/:id/wikis</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param page the page to get
@param perPage the number of wiki-pages per page
@return a list o... | [
"Get",
"a",
"list",
"of",
"pages",
"in",
"project",
"wiki",
"for",
"the",
"specified",
"page",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/WikisApi.java#L73-L77 |
64,492 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/WikisApi.java | WikisApi.getPage | public WikiPage getPage(Object projectIdOrPath, String slug) throws GitLabApiException {
Response response = get(Response.Status.OK, null,
"projects", getProjectIdOrPath(projectIdOrPath), "wikis", slug);
return (response.readEntity(WikiPage.class));
} | java | public WikiPage getPage(Object projectIdOrPath, String slug) throws GitLabApiException {
Response response = get(Response.Status.OK, null,
"projects", getProjectIdOrPath(projectIdOrPath), "wikis", slug);
return (response.readEntity(WikiPage.class));
} | [
"public",
"WikiPage",
"getPage",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"slug",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"null",
",",
"\"projects\"",
",",
"getProjec... | Get a single page of project wiki.
<pre><code>GitLab Endpoint: GET /projects/:id/wikis/:slug</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param slug the slug of the project's wiki page
@return the specified project Snippet
@throws GitLabApiException... | [
"Get",
"a",
"single",
"page",
"of",
"project",
"wiki",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/WikisApi.java#L89-L93 |
64,493 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/WikisApi.java | WikisApi.getOptionalPage | public Optional<WikiPage> getOptionalPage(Object projectIdOrPath, String slug) {
try {
return (Optional.ofNullable(getPage(projectIdOrPath, slug)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
}
} | java | public Optional<WikiPage> getOptionalPage(Object projectIdOrPath, String slug) {
try {
return (Optional.ofNullable(getPage(projectIdOrPath, slug)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
}
} | [
"public",
"Optional",
"<",
"WikiPage",
">",
"getOptionalPage",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"slug",
")",
"{",
"try",
"{",
"return",
"(",
"Optional",
".",
"ofNullable",
"(",
"getPage",
"(",
"projectIdOrPath",
",",
"slug",
")",
")",
")",
... | Get a single page of project wiki as an Optional instance.
<pre><code>GitLab Endpoint: GET /projects/:id/wikis/:slug</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param slug the slug of the project's wiki page
@return the specified project Snippet as... | [
"Get",
"a",
"single",
"page",
"of",
"project",
"wiki",
"as",
"an",
"Optional",
"instance",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/WikisApi.java#L104-L110 |
64,494 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/WikisApi.java | WikisApi.createPage | public WikiPage createPage(Object projectIdOrPath, String title, String content) throws GitLabApiException {
// one of title or content is required
GitLabApiForm formData = new GitLabApiForm()
.withParam("title", title)
.withParam("content", content);
Response re... | java | public WikiPage createPage(Object projectIdOrPath, String title, String content) throws GitLabApiException {
// one of title or content is required
GitLabApiForm formData = new GitLabApiForm()
.withParam("title", title)
.withParam("content", content);
Response re... | [
"public",
"WikiPage",
"createPage",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"title",
",",
"String",
"content",
")",
"throws",
"GitLabApiException",
"{",
"// one of title or content is required",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")"... | Creates a new project wiki page. The user must have permission to create new wiki page.
<pre><code>GitLab Endpoint: POST /projects/:id/wikis</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param title the title of a snippet, required
@param content the... | [
"Creates",
"a",
"new",
"project",
"wiki",
"page",
".",
"The",
"user",
"must",
"have",
"permission",
"to",
"create",
"new",
"wiki",
"page",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/WikisApi.java#L123-L132 |
64,495 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/WikisApi.java | WikisApi.updatePage | public WikiPage updatePage(Object projectIdOrPath, String slug, String title, String content) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("title", title)
.withParam("slug", slug, true)
.withParam("content", content);
... | java | public WikiPage updatePage(Object projectIdOrPath, String slug, String title, String content) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("title", title)
.withParam("slug", slug, true)
.withParam("content", content);
... | [
"public",
"WikiPage",
"updatePage",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"slug",
",",
"String",
"title",
",",
"String",
"content",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"wit... | Updates an existing project wiki page. The user must have permission to change an existing wiki page.
<pre><code>GitLab Endpoint: PUT /projects/:id/wikis/:slug</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param slug the slug of the project's wiki pa... | [
"Updates",
"an",
"existing",
"project",
"wiki",
"page",
".",
"The",
"user",
"must",
"have",
"permission",
"to",
"change",
"an",
"existing",
"wiki",
"page",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/WikisApi.java#L146-L155 |
64,496 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/WikisApi.java | WikisApi.deletePage | public void deletePage(Object projectIdOrPath, String slug) throws GitLabApiException {
delete(Response.Status.NO_CONTENT, null, "projects", getProjectIdOrPath(projectIdOrPath), "wikis", slug);
} | java | public void deletePage(Object projectIdOrPath, String slug) throws GitLabApiException {
delete(Response.Status.NO_CONTENT, null, "projects", getProjectIdOrPath(projectIdOrPath), "wikis", slug);
} | [
"public",
"void",
"deletePage",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"slug",
")",
"throws",
"GitLabApiException",
"{",
"delete",
"(",
"Response",
".",
"Status",
".",
"NO_CONTENT",
",",
"null",
",",
"\"projects\"",
",",
"getProjectIdOrPath",
"(",
"pro... | Deletes an existing project wiki page. This is an idempotent function and deleting a non-existent page does
not cause an error.
<pre><code>GitLab Endpoint: DELETE /projects/:id/wikis/:slug</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param slug the ... | [
"Deletes",
"an",
"existing",
"project",
"wiki",
"page",
".",
"This",
"is",
"an",
"idempotent",
"function",
"and",
"deleting",
"a",
"non",
"-",
"existent",
"page",
"does",
"not",
"cause",
"an",
"error",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/WikisApi.java#L167-L169 |
64,497 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProtectedBranchesApi.java | ProtectedBranchesApi.getProtectedBranches | public List<ProtectedBranch> getProtectedBranches(Object projectIdOrPath) throws GitLabApiException {
return (getProtectedBranches(projectIdOrPath, this.getDefaultPerPage()).all());
} | java | public List<ProtectedBranch> getProtectedBranches(Object projectIdOrPath) throws GitLabApiException {
return (getProtectedBranches(projectIdOrPath, this.getDefaultPerPage()).all());
} | [
"public",
"List",
"<",
"ProtectedBranch",
">",
"getProtectedBranches",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getProtectedBranches",
"(",
"projectIdOrPath",
",",
"this",
".",
"getDefaultPerPage",
"(",
")",
")",
".... | Gets a list of protected branches from a project.
<pre><code>GitLab Endpoint: GET /projects/:id/protected_branches</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@return the list of protected branches for the project
@throws GitLabApiException if any e... | [
"Gets",
"a",
"list",
"of",
"protected",
"branches",
"from",
"a",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProtectedBranchesApi.java#L27-L29 |
64,498 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProtectedBranchesApi.java | ProtectedBranchesApi.getProtectedBranches | public Pager<ProtectedBranch> getProtectedBranches(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return (new Pager<ProtectedBranch>(this, ProtectedBranch.class, itemsPerPage, null,
"projects", getProjectIdOrPath(projectIdOrPath), "protected_branches"));
} | java | public Pager<ProtectedBranch> getProtectedBranches(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return (new Pager<ProtectedBranch>(this, ProtectedBranch.class, itemsPerPage, null,
"projects", getProjectIdOrPath(projectIdOrPath), "protected_branches"));
} | [
"public",
"Pager",
"<",
"ProtectedBranch",
">",
"getProtectedBranches",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"itemsPerPage",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"new",
"Pager",
"<",
"ProtectedBranch",
">",
"(",
"this",
",",
"Protected... | Gets a Pager of protected branches from a project.
<pre><code>GitLab Endpoint: GET /projects/:id/protected_branches</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param itemsPerPage the number of instances that will be fetched per page
@return the Pag... | [
"Gets",
"a",
"Pager",
"of",
"protected",
"branches",
"from",
"a",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProtectedBranchesApi.java#L41-L44 |
64,499 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ProtectedBranchesApi.java | ProtectedBranchesApi.getProtectedBranchesStream | public Stream<ProtectedBranch> getProtectedBranchesStream(Object projectIdOrPath) throws GitLabApiException {
return (getProtectedBranches(projectIdOrPath, this.getDefaultPerPage()).stream());
} | java | public Stream<ProtectedBranch> getProtectedBranchesStream(Object projectIdOrPath) throws GitLabApiException {
return (getProtectedBranches(projectIdOrPath, this.getDefaultPerPage()).stream());
} | [
"public",
"Stream",
"<",
"ProtectedBranch",
">",
"getProtectedBranchesStream",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getProtectedBranches",
"(",
"projectIdOrPath",
",",
"this",
".",
"getDefaultPerPage",
"(",
")",
"... | Gets a Stream of protected branches from a project.
<pre><code>GitLab Endpoint: GET /projects/:id/protected_branches</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@return the Stream of protected branches for the project
@throws GitLabApiException if a... | [
"Gets",
"a",
"Stream",
"of",
"protected",
"branches",
"from",
"a",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ProtectedBranchesApi.java#L55-L57 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.