public class ApplicationsApi extends AbstractApi
Constants.ActionType, Constants.ApplicationScope, Constants.ArchiveFormat, Constants.CommitBuildState, Constants.DeploymentStatus, Constants.Encoding, Constants.EpicOrderBy, Constants.GroupOrderBy, Constants.GroupSearchScope, Constants.ImpersonationState, Constants.IssueOrderBy, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.MergeRequestOrderBy, Constants.MergeRequestScope, Constants.MergeRequestSearchIn, Constants.MergeRequestState, Constants.MilestoneState, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectOrderBy, Constants.ProjectSearchScope, Constants.SearchScope, Constants.SortOrder, Constants.StateEvent, Constants.TagOrderBy, Constants.TargetType, Constants.TodoAction, Constants.TodoState, Constants.TodoType, Constants.TokenTypegitLabApiNEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER| Constructor and Description |
|---|
ApplicationsApi(GitLabApi gitLabApi) |
| Modifier and Type | Method and Description |
|---|---|
Application |
createApplication(String name,
String redirectUri,
Constants.ApplicationScope[] scopes)
Create an OAUTH Application.
|
Application |
createApplication(String name,
String redirectUri,
List<Constants.ApplicationScope> scopes)
Create an OAUTH Application.
|
void |
deleteApplication(Integer applicationId)
Delete the specified OAUTH Application.
|
List<Application> |
getApplications()
Get all OATH applications.
|
Pager<Application> |
getApplications(int itemsPerPage)
Get a Pager of all OAUTH applications.
|
List<Application> |
getApplications(int page,
int perPage)
Get all OAUTH applications using the specified page and per page setting
|
Stream<Application> |
getApplicationsStream()
Get a Stream of all OAUTH Application instances.
|
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, validatepublic ApplicationsApi(GitLabApi gitLabApi)
public List<Application> getApplications() throws GitLabApiException
GitLab Endpoint: GET /api/v4/applicationsGitLabApiException - if any exception occurspublic List<Application> getApplications(int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /api/v4/applicationspage - the page to getperPage - the number of items per pageGitLabApiException - if any exception occurspublic Pager<Application> getApplications(int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /api/v4/applicationsitemsPerPage - the number of items per pageGitLabApiException - if any exception occurspublic Stream<Application> getApplicationsStream() throws GitLabApiException
GitLab Endpoint: GET /api/v4/applicationsGitLabApiException - if any exception occurspublic Application createApplication(String name, String redirectUri, Constants.ApplicationScope[] scopes) throws GitLabApiException
GitLab Endpoint: POST /api/v4/applicationsname - the name for the OAUTH ApplicationredirectUri - the redirect URI for the OAUTH Applicationscopes - the scopes of the application (api, read_user, sudo, read_repository, openid, profile, email)GitLabApiException - if any exception occurspublic Application createApplication(String name, String redirectUri, List<Constants.ApplicationScope> scopes) throws GitLabApiException
GitLab Endpoint: POST /api/v4/applicationsname - the name for the OAUTH ApplicationredirectUri - the redirect URI for the OAUTH Applicationscopes - the scopes of the application (api, read_user, sudo, read_repository, openid, profile, email)GitLabApiException - if any exception occurspublic void deleteApplication(Integer applicationId) throws GitLabApiException
GitLab Endpoint: DELETE /api/v4/applications/:applicationIdapplicationId - the ID of the OUAUTH Application to deleteGitLabApiException - if any exception occursCopyright © 2019. All rights reserved.