/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/info">Further information about this action online (including a response example)</a> * @since 7.2 */ public InfoWsResponse info() { return call( new GetRequest(path("info")), InfoWsResponse.parser()); }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/task_types">Further information about this action online (including a response example)</a> * @since 5.5 */ public TaskTypesWsResponse taskTypes() { return call( new GetRequest(path("task_types")), TaskTypesWsResponse.parser()); }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/worker_count">Further information about this action online (including a response example)</a> * @since 6.5 */ public WorkerCountResponse workerCount() { return call( new GetRequest(path("worker_count")), WorkerCountResponse.parser()); } }
/** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/cancel_all">Further information about this action online (including a response example)</a> * @since 5.2 */ public void cancelAll() { call( new PostRequest(path("cancel_all")) .setMediaType(MediaTypes.JSON) ).content(); }
/** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/pause">Further information about this action online (including a response example)</a> * @since 7.2 */ public void pause() { call( new PostRequest(path("pause")) .setMediaType(MediaTypes.JSON) ).content(); }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/task">Further information about this action online (including a response example)</a> * @since 5.2 */ public TaskResponse task(TaskRequest request) { return call( new GetRequest(path("task")) .setParam("additionalFields", request.getAdditionalFields() == null ? null : request.getAdditionalFields().stream().collect(Collectors.joining(","))) .setParam("id", request.getId()), TaskResponse.parser()); }
/** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/resume">Further information about this action online (including a response example)</a> * @since 7.2 */ public void resume() { call( new PostRequest(path("resume")) .setMediaType(MediaTypes.JSON) ).content(); }
/** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/cancel">Further information about this action online (including a response example)</a> * @since 5.2 */ public void cancel(CancelRequest request) { call( new PostRequest(path("cancel")) .setParam("id", request.getId()) .setMediaType(MediaTypes.JSON) ).content(); }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/component">Further information about this action online (including a response example)</a> * @since 5.2 */ public ComponentResponse component(ComponentRequest request) { return call( new GetRequest(path("component")) .setParam("component", request.getComponent()) .setParam("componentId", request.getComponentId()), ComponentResponse.parser()); }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/activity_status">Further information about this action online (including a response example)</a> * @since 5.5 */ public ActivityStatusWsResponse activityStatus(ActivityStatusRequest request) { return call( new GetRequest(path("activity_status")) .setParam("componentId", request.getComponentId()) .setParam("componentKey", request.getComponentKey()), ActivityStatusWsResponse.parser()); }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/analysis_status">Further information about this action online (including a response example)</a> * @since 7.4 */ public AnalysisStatusWsResponse analysisStatus(AnalysisStatusRequest request) { return call( new GetRequest(path("analysis_status")) .setParam("branch", request.getBranch()) .setParam("component", request.getComponent()) .setParam("pullRequest", request.getPullRequest()), AnalysisStatusWsResponse.parser()); }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/activity">Further information about this action online (including a response example)</a> * @since 5.2 */ public ActivityResponse activity(ActivityRequest request) { return call( new GetRequest(path("activity")) .setParam("componentId", request.getComponentId()) .setParam("componentQuery", request.getComponentQuery()) .setParam("maxExecutedAt", request.getMaxExecutedAt()) .setParam("minSubmittedAt", request.getMinSubmittedAt()) .setParam("onlyCurrents", request.getOnlyCurrents()) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("q", request.getQ()) .setParam("status", request.getStatus() == null ? null : request.getStatus().stream().collect(Collectors.joining(","))) .setParam("type", request.getType()), ActivityResponse.parser()); }
/** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/submit">Further information about this action online (including a response example)</a> * @since 5.2 */ public SubmitResponse submit(SubmitRequest request) { return call( new PostRequest(path("submit")) .setParam("characteristic", request.getCharacteristic()) .setParam("organization", request.getOrganization()) .setParam("projectBranch", request.getProjectBranch()) .setParam("projectKey", request.getProjectKey()) .setParam("projectName", request.getProjectName()) .setParam("report", request.getReport()), SubmitResponse.parser()); }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/task_types">Further information about this action online (including a response example)</a> * @since 5.5 */ public TaskTypesWsResponse taskTypes() { return call( new GetRequest(path("task_types")), TaskTypesWsResponse.parser()); }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/info">Further information about this action online (including a response example)</a> * @since 7.2 */ public InfoWsResponse info() { return call( new GetRequest(path("info")), InfoWsResponse.parser()); }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/worker_count">Further information about this action online (including a response example)</a> * @since 6.5 */ public WorkerCountResponse workerCount() { return call( new GetRequest(path("worker_count")), WorkerCountResponse.parser()); } }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/task">Further information about this action online (including a response example)</a> * @since 5.2 */ public TaskResponse task(TaskRequest request) { return call( new GetRequest(path("task")) .setParam("additionalFields", request.getAdditionalFields() == null ? null : request.getAdditionalFields().stream().collect(Collectors.joining(","))) .setParam("id", request.getId()), TaskResponse.parser()); }
/** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/pause">Further information about this action online (including a response example)</a> * @since 7.2 */ public void pause() { call( new PostRequest(path("pause")) .setMediaType(MediaTypes.JSON) ).content(); }
/** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/resume">Further information about this action online (including a response example)</a> * @since 7.2 */ public void resume() { call( new PostRequest(path("resume")) .setMediaType(MediaTypes.JSON) ).content(); }
/** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/cancel_all">Further information about this action online (including a response example)</a> * @since 5.2 */ public void cancelAll() { call( new PostRequest(path("cancel_all")) .setMediaType(MediaTypes.JSON) ).content(); }