/** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/system/restart">Further information about this action online (including a response example)</a> * @since 4.3 */ public void restart() { call( new PostRequest(path("restart")) .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(); }
/** * * 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/system/migrate_db">Further information about this action online (including a response example)</a> * @since 5.2 */ public String migrateDb() { return call( new PostRequest(path("migrate_db")) .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/users/skip_onboarding_tutorial">Further information about this action online (including a response example)</a> * @since 6.5 */ public void skipOnboardingTutorial() { call( new PostRequest(path("skip_onboarding_tutorial")) .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/plugins/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/organizations/enable_support">Further information about this action online (including a response example)</a> * @since 6.3 */ public void enableSupport() { call( new PostRequest(path("enable_support")) .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/authentication/logout">Further information about this action online (including a response example)</a> * @since 6.3 */ public void logout() { call( new PostRequest(path("logout")) .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/editions/unset_license">Further information about this action online (including a response example)</a> * @since 7.2 */ public void unsetLicense() { call( new PostRequest(path("unset_license")) .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/editions/set_license">Further information about this action online (including a response example)</a> * @since 7.2 */ public void setLicense(SetLicenseRequest request) { call( new PostRequest(path("set_license")) .setParam("license", request.getLicense()) .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/views/define">Further information about this action online (including a response example)</a> * @since 1.0 */ public void define(DefineRequest request) { call( new PostRequest(path("define")) .setParam("def", request.getDef()) .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 POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/roots/set_root">Further information about this action online (including a response example)</a> * @since 6.2 */ public void setRoot(SetRootRequest request) { call( new PostRequest(path("set_root")) .setParam("login", request.getLogin()) .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/project_dump/export">Further information about this action online (including a response example)</a> * @since 1.0 */ public String export(ExportRequest request) { return call( new PostRequest(path("export")) .setParam("key", request.getKey()) .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/project_analyses/delete_event">Further information about this action online (including a response example)</a> * @since 6.3 */ public void deleteEvent(DeleteEventRequest request) { call( new PostRequest(path("delete_event")) .setParam("event", request.getEvent()) .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/organizations/delete">Further information about this action online (including a response example)</a> * @since 6.2 */ public void delete(DeleteRequest request) { call( new PostRequest(path("delete")) .setParam("organization", request.getOrganization()) .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/plugins/update">Further information about this action online (including a response example)</a> * @since 5.2 */ public void update(UpdateRequest request) { call( new PostRequest(path("update")) .setParam("key", request.getKey()) .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/rules/delete">Further information about this action online (including a response example)</a> * @since 4.4 */ public void delete(DeleteRequest request) { call( new PostRequest(path("delete")) .setParam("key", request.getKey()) .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/applications/delete">Further information about this action online (including a response example)</a> * @since 7.3 */ public void delete(DeleteRequest request) { call( new PostRequest(path("delete")) .setParam("application", request.getApplication()) .setMediaType(MediaTypes.JSON) ).content(); }