Constants
public class NamespaceApi extends AbstractApi
Constants.ActionType, Constants.EpicOrderBy, Constants.GroupOrderBy, Constants.ImpersonationState, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.MergeRequestOrderBy, Constants.MergeRequestScope, Constants.MergeRequestState, Constants.MilestoneState, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectOrderBy, Constants.SortOrder, Constants.StateEvent, Constants.TargetType, Constants.TokenType
NEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER
Constructor | Description |
---|---|
NamespaceApi(GitLabApi gitLabApi) |
Modifier and Type | Method | 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, getGroupIdOrPath, getPageQueryParams, getProjectIdOrPath, getWithAccepts, handle, isApiVersion, post, post, post, post, post, put, put, putWithFormData, upload, upload, urlEncode, validate
public 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 © 2018. All rights reserved.