public class ExternalStatusCheckApi extends AbstractApi
Constants.ActionType, Constants.ApplicationScope, Constants.ArchiveFormat, Constants.AutoDevopsDeployStrategy, Constants.BuildGitStrategy, Constants.CommitBuildState, Constants.ContributorOrderBy, Constants.DefaultBranchProtectionLevel, Constants.DeploymentOrderBy, Constants.DeploymentStatus, Constants.DeployTokenScope, Constants.Encoding, Constants.EpicOrderBy, Constants.EventScope, 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.PackageOrderBy, Constants.PackageStatus, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectAccessTokenScope, Constants.ProjectCreationLevel, Constants.ProjectOrderBy, Constants.ProjectSearchScope, Constants.SearchScope, Constants.SortOrder, Constants.SquashOption, Constants.StateEvent, Constants.SubgroupCreationLevel, Constants.TagOrderBy, Constants.TargetType, Constants.TodoAction, Constants.TodoState, Constants.TodoType, Constants.TokenType
gitLabApi
NEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER
Constructor and Description |
---|
ExternalStatusCheckApi(GitLabApi gitLabApi) |
Modifier and Type | Method and Description |
---|---|
ExternalStatusCheck |
createExternalStatusCheck(java.lang.Object projectIdOrPath,
ExternalStatusCheck externalStatusCheck)
Creates a new external status check using the information contained in the provided ExternalStatusCheck instance.
|
ExternalStatusCheck |
createExternalStatusCheck(java.lang.Object projectIdOrPath,
java.lang.String name,
java.lang.String externalUrl,
java.util.List<java.lang.Long> protectedBranchIds)
Creates a new external status check.
|
void |
deleteExternalStatusCheck(java.lang.Object projectIdOrPath,
java.lang.Long checkId)
Deletes an external status check.
|
java.util.List<ExternalStatusCheck> |
getExternalStatusChecks(java.lang.Object projectIdOrPath)
Gets a list of all external status checks for a given project.
|
Pager<ExternalStatusCheck> |
getExternalStatusChecks(java.lang.Object projectIdOrPath,
int itemsPerPage)
Gets a Pager of all external status checks for a given project.
|
java.util.stream.Stream<ExternalStatusCheck> |
getExternalStatusChecksStream(java.lang.Object projectIdOrPath)
Gets a Stream of all external status checks for a given project.
|
java.util.List<ExternalStatusCheckStatus> |
getExternalStatusCheckStatuses(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Gets a list of all statuses of the external status checks for a given merge request.
|
Pager<ExternalStatusCheckStatus> |
getExternalStatusCheckStatuses(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
int itemsPerPage)
Gets a Pager of all statuses of the external status checks for a given merge request.
|
java.util.stream.Stream<ExternalStatusCheckStatus> |
getExternalStatusCheckStatusesStream(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid)
Gets a Stream of all statuses of the external status checks for a given merge request.
|
void |
retryExternalStatusCheck(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
java.lang.Long externalStatusCheckId)
Retry the specified failed external status check for a single merge request.
|
ExternalStatusCheckResult |
setStatusOfExternalStatusCheck(java.lang.Object projectIdOrPath,
java.lang.Long mergeRequestIid,
java.lang.String sha,
java.lang.Long externalStatusCheckId,
ExternalStatusCheckStatus.Status status)
Set the status of an external status check for a given merge request.
|
ExternalStatusCheck |
updateExternalStatusCheck(java.lang.Object projectIdOrPath,
ExternalStatusCheck externalStatusCheck)
Updates an external status check using the information contained in the provided ExternalStatusCheck instance.
|
ExternalStatusCheck |
updateExternalStatusCheck(java.lang.Object projectIdOrPath,
java.lang.Long checkId,
java.lang.String name,
java.lang.String externalUrl,
java.util.List<java.lang.Long> protectedBranchIds)
Updates an existing external status check.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getDefaultPerPageParam, getGroupIdOrPath, getLabelIdOrName, getPageQueryParams, getPageQueryParams, getPerPageQueryParam, getProjectIdOrPath, getUserIdOrUsername, getWithAccepts, handle, head, isApiVersion, patch, patch, post, post, post, post, post, put, put, put, putUpload, putUpload, putWithFormData, upload, upload, upload, upload, urlEncode, validate
public ExternalStatusCheckApi(GitLabApi gitLabApi)
public java.util.List<ExternalStatusCheck> getExternalStatusChecks(java.lang.Object projectIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/external_status_checks
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathGitLabApiException
- if any exception occurspublic Pager<ExternalStatusCheck> getExternalStatusChecks(java.lang.Object projectIdOrPath, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/external_status_checks
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathitemsPerPage
- the number of ExternalStatusCheck instances that will be fetched per pageGitLabApiException
- if any exception occurspublic java.util.stream.Stream<ExternalStatusCheck> getExternalStatusChecksStream(java.lang.Object projectIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/external_status_checks
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathGitLabApiException
- if any exception occurspublic ExternalStatusCheck createExternalStatusCheck(java.lang.Object projectIdOrPath, java.lang.String name, java.lang.String externalUrl, java.util.List<java.lang.Long> protectedBranchIds) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/external_status_checks
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathname
- Display name of external status check (required)externalUrl
- URL of external status check resource (optional)protectedBranchIds
- IDs of protected branches to scope the rule by (optional)GitLabApiException
- if any exception occurspublic ExternalStatusCheck createExternalStatusCheck(java.lang.Object projectIdOrPath, ExternalStatusCheck externalStatusCheck) throws GitLabApiException
name - Display name of external status check (required)
external url - URL of external status check resource (required)
protected branches - the id of the protected branches (optional)
GitLab Endpoint: POST /projects/:id/external_status_checks
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathexternalStatusCheck
- the ExternalStatusCheck instance with information for the new external status checkGitLabApiException
- if any exception occurspublic ExternalStatusCheck updateExternalStatusCheck(java.lang.Object projectIdOrPath, java.lang.Long checkId, java.lang.String name, java.lang.String externalUrl, java.util.List<java.lang.Long> protectedBranchIds) throws GitLabApiException
GitLab Endpoint: PUT /projects/:id/external_status_checks/:check_id
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathcheckId
- ID of an external status check to update (required)name
- Display name of external status check (optional)externalUrl
- URL of external status check resource (optional)protectedBranchIds
- IDs of protected branches to scope the rule by (optional)GitLabApiException
- if any exception occurspublic ExternalStatusCheck updateExternalStatusCheck(java.lang.Object projectIdOrPath, ExternalStatusCheck externalStatusCheck) throws GitLabApiException
id - the id of the external status check (required)
name - Display name of external status check (optional)
external url - URL of external status check resource (optional)
protected branches - the id of the protected branches (optional)
GitLab Endpoint: PUT /projects/:id/external_status_checks/:check_id
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathexternalStatusCheck
- the ExternalStatusCheck instance with update informationGitLabApiException
- if any exception occurspublic void deleteExternalStatusCheck(java.lang.Object projectIdOrPath, java.lang.Long checkId) throws GitLabApiException
GitLab Endpoint: DELETE /projects/:id/external_status_checks/:check_id
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathcheckId
- ID of an external status checkGitLabApiException
- if any exception occurspublic java.util.List<ExternalStatusCheckStatus> getExternalStatusCheckStatuses(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/status_checks
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathmergeRequestIid
- the merge request IID to get the statusesGitLabApiException
- if any exception occurspublic Pager<ExternalStatusCheckStatus> getExternalStatusCheckStatuses(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/status_checks
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathmergeRequestIid
- the merge request IID to get the statusesitemsPerPage
- the number of ExternalStatusCheckStatus instances that will be fetched per pageGitLabApiException
- if any exception occurspublic java.util.stream.Stream<ExternalStatusCheckStatus> getExternalStatusCheckStatusesStream(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/status_checks
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathmergeRequestIid
- the merge request IID to get the statusesGitLabApiException
- if any exception occurspublic ExternalStatusCheckResult setStatusOfExternalStatusCheck(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, java.lang.String sha, java.lang.Long externalStatusCheckId, ExternalStatusCheckStatus.Status status) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/merge_requests/:merge_request_iid/status_check_responses
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathmergeRequestIid
- the merge request IID to get the statusessha
- the commit SHA to set the status for (required)externalStatusCheckId
- ID of an external status check (required)status
- the status to set (optional)GitLabApiException
- if any exception occurspublic void retryExternalStatusCheck(java.lang.Object projectIdOrPath, java.lang.Long mergeRequestIid, java.lang.Long externalStatusCheckId) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/merge_requests/:merge_request_iid/status_checks/:external_status_check_id/retry
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathmergeRequestIid
- the merge request IID to get the statusesexternalStatusCheckId
- ID of an external status checkGitLabApiException
- if any exception occurs