public class LicenseApi 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 |
|---|
LicenseApi(GitLabApi gitLabApi) |
| Modifier and Type | Method and Description |
|---|---|
License |
addLicense(String licenseString)
Add a new license.
|
License |
deleteLicense(Integer licenseId)
Deletes a license.
|
List<License> |
getAllLicenses()
Retrieve information about all licenses.
|
Pager<License> |
getAllLicenses(int itemsPerPage)
Get a Pager of all licenses.
|
Stream<License> |
getAllLicensesStream()
Get a Stream of all licenses.
|
License |
getLicense()
Retrieve information about the current license.
|
Optional<License> |
getOptionalLicense()
Retrieve information about the current license as the value of an Optional.
|
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 LicenseApi(GitLabApi gitLabApi)
public License getLicense() throws GitLabApiException
GitLab Endpoint: GET /licenseGitLabApiException - if any exception occurspublic Optional<License> getOptionalLicense()
GitLab Endpoint: GET /licensepublic List<License> getAllLicenses() throws GitLabApiException
GitLab Endpoint: GET /licensesGitLabApiException - if any exception occurspublic Stream<License> getAllLicensesStream() throws GitLabApiException
GitLab Endpoint: GET /licensesGitLabApiException - if any exception occurspublic Pager<License> getAllLicenses(int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /licensesitemsPerPage - the number of LicenseTemplate instances that will be
fetched per pageGitLabApiException - if any exception occurspublic License addLicense(String licenseString) throws GitLabApiException
GitLab Endpoint: POST /licenselicenseString - the license string for the licenseGitLabApiException - if any exception occurspublic License deleteLicense(Integer licenseId) throws GitLabApiException
GitLab Endpoint: DELETE /license/:idlicenseId - the ID of the license to deleteGitLabApiException - if any exception occursCopyright © 2019. All rights reserved.