public class NamespaceApi extends AbstractApi
Constants.ActionType, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectOrderBy, Constants.SortOrder, Constants.StateEvent, Constants.TargetType, Constants.TokenTypeNEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER| Constructor and Description |
|---|
NamespaceApi(GitLabApi gitLabApi) |
| Modifier and Type | Method and Description |
|---|---|
List<Namespace> |
findNamespaces(String query)
Get all namespaces that match a string in their name or path.
|
Pager<Namespace> |
findNamespaces(String query,
int itemsPerPage)
Get a Pager of all namespaces that match a string in their name or path.
|
List<Namespace> |
findNamespaces(String query,
int page,
int perPage)
Get all namespaces that match a string in their name or path in the specified page range.
|
List<Namespace> |
getNamespaces()
Get a list of the namespaces of the authenticated user.
|
Pager<Namespace> |
getNamespaces(int itemsPerPage)
Get a Pager of the namespaces of the authenticated user.
|
List<Namespace> |
getNamespaces(int page,
int perPage)
Get a list of the namespaces of the authenticated user.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getPageQueryParams, getWithAccepts, handle, isApiVersion, post, post, post, put, put, putWithFormData, urlEncode, validatepublic NamespaceApi(GitLabApi gitLabApi)
public List<Namespace> getNamespaces() throws GitLabApiException
GitLabApiException - if any exception occurspublic List<Namespace> getNamespaces(int page, int perPage) throws GitLabApiException
page - the page to getperPage - the number of Namespace instances per pageGitLabApiException - if any exception occurspublic Pager<Namespace> getNamespaces(int itemsPerPage) throws GitLabApiException
itemsPerPage - the number of Project instances that will be fetched per pageGitLabApiException - if any exception occurspublic List<Namespace> findNamespaces(String query) throws GitLabApiException
query - the search stringGitLabApiException - if any exception occurspublic List<Namespace> findNamespaces(String query, int page, int perPage) throws GitLabApiException
query - the search stringpage - the page to getperPage - the number of Namespace instances per pageGitLabApiException - if any exception occurspublic Pager<Namespace> findNamespaces(String query, int itemsPerPage) throws GitLabApiException
query - the search stringitemsPerPage - the number of Project instances that will be fetched per pageGitLabApiException - if any exception occursCopyright © 2017. All rights reserved.