public class NamespaceApi extends AbstractApi
Constants.ActionType, Constants.ApplicationScope, Constants.ArchiveFormat, Constants.CommitBuildState, Constants.Encoding, Constants.EpicOrderBy, Constants.GroupOrderBy, Constants.ImpersonationState, Constants.IssueOrderBy, 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 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.
|
Stream<Namespace> |
findNamespacesStream(String query)
Get all namespaces that match a string in their name or path as a Stream.
|
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.
|
Stream<Namespace> |
getNamespacesStream()
Get a Stream of the namespaces of the authenticated user.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getDefaultPerPageParam, getGroupIdOrPath, getPageQueryParams, getPageQueryParams, getPerPageQueryParam, getProjectIdOrPath, getUserIdOrUsername, getWithAccepts, handle, head, isApiVersion, post, post, post, post, post, put, put, putUpload, putUpload, putWithFormData, upload, upload, upload, urlEncode, validate
public NamespaceApi(GitLabApi gitLabApi)
public List<Namespace> getNamespaces() throws GitLabApiException
GitLab Endpoint: GET /namespaces
GitLabApiException
- if any exception occurspublic List<Namespace> getNamespaces(int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /namespaces
page
- the page to getperPage
- the number of Namespace instances per pageGitLabApiException
- if any exception occurspublic Pager<Namespace> getNamespaces(int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /namespaces
itemsPerPage
- the number of Project instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<Namespace> getNamespacesStream() throws GitLabApiException
GitLab Endpoint: GET /namespaces
GitLabApiException
- if any exception occurspublic List<Namespace> findNamespaces(String query) throws GitLabApiException
GitLab Endpoint: GET /namespaces?search=:query
query
- the search stringGitLabApiException
- if any exception occurspublic List<Namespace> findNamespaces(String query, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /namespaces?search=:query
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
GitLab Endpoint: GET /namespaces?search=:query
query
- the search stringitemsPerPage
- the number of Project instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<Namespace> findNamespacesStream(String query) throws GitLabApiException
GitLab Endpoint: GET /namespaces?search=:query
query
- the search stringGitLabApiException
- if any exception occursCopyright © 2019. All rights reserved.