/** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/set_tags">Further information about this action online (including a response example)</a> * @since 5.1 */ public SetTagsResponse setTags(SetTagsRequest request) { return call( new PostRequest(path("set_tags")) .setParam("issue", request.getIssue()) .setParam("tags", request.getTags() == null ? null : request.getTags().stream().collect(Collectors.joining(","))), SetTagsResponse.parser()); }
/** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/do_transition">Further information about this action online (including a response example)</a> * @since 3.6 */ public DoTransitionResponse doTransition(DoTransitionRequest request) { return call( new PostRequest(path("do_transition")) .setParam("issue", request.getIssue()) .setParam("transition", request.getTransition()), DoTransitionResponse.parser()); }
/** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/set_type">Further information about this action online (including a response example)</a> * @since 5.5 */ public SetTypeResponse setType(SetTypeRequest request) { return call( new PostRequest(path("set_type")) .setParam("issue", request.getIssue()) .setParam("type", request.getType()), SetTypeResponse.parser()); }
/** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/organizations/add_member">Further information about this action online (including a response example)</a> * @since 6.4 */ public AddMemberWsResponse addMember(AddMemberRequest request) { return call( new PostRequest(path("add_member")) .setParam("login", request.getLogin()) .setParam("organization", request.getOrganization()), AddMemberWsResponse.parser()); }
/** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualityprofiles/copy">Further information about this action online (including a response example)</a> * @since 5.2 */ public CopyWsResponse copy(CopyRequest request) { return call( new PostRequest(path("copy")) .setParam("fromKey", request.getFromKey()) .setParam("toName", request.getToName()), CopyWsResponse.parser()); }
/** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/user_tokens/generate">Further information about this action online (including a response example)</a> * @since 5.3 */ public GenerateWsResponse generate(GenerateRequest request) { return call( new PostRequest(path("generate")) .setParam("login", request.getLogin()) .setParam("name", request.getName()), GenerateWsResponse.parser()); }
/** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualitygates/create">Further information about this action online (including a response example)</a> * @since 4.3 */ public CreateResponse create(CreateRequest request) { return call( new PostRequest(path("create")) .setParam("name", request.getName()) .setParam("organization", request.getOrganization()), CreateResponse.parser()); }
/** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/delete_comment">Further information about this action online (including a response example)</a> * @since 3.6 */ public DeleteCommentResponse deleteComment(DeleteCommentRequest request) { return call( new PostRequest(path("delete_comment")) .setParam("comment", request.getComment()), DeleteCommentResponse.parser()); }
/** * * 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/views/refresh">Further information about this action online (including a response example)</a> * @since 7.1 */ public void refresh(RefreshRequest request) { call( new PostRequest(path("refresh")) .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/system/change_log_level">Further information about this action online (including a response example)</a> * @since 5.2 */ public void changeLogLevel(ChangeLogLevelRequest request) { call( new PostRequest(path("change_log_level")) .setParam("level", request.getLevel()) .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(); }