diff options
author | Benjamin Campomenosi <109955405+benjamin-campomenosi-sonarsource@users.noreply.github.com> | 2023-01-26 17:31:24 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-02-03 14:26:00 +0000 |
commit | 9f4942bc70aa61e6e69dc1da9b98f194e6e3416d (patch) | |
tree | 9537947fa1ba80b2342f79f2aadb6d0c86139502 /sonar-ws | |
parent | aa415162e937d4be3da4403e6f8cdae13a79f300 (diff) | |
download | sonarqube-9f4942bc70aa61e6e69dc1da9b98f194e6e3416d.tar.gz sonarqube-9f4942bc70aa61e6e69dc1da9b98f194e6e3416d.zip |
SONAR-17705 drop project_analyses/set_baseline & project_analyses/unset_baseline
Diffstat (limited to 'sonar-ws')
3 files changed, 0 insertions, 151 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/projectanalyses/ProjectAnalysesService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/projectanalyses/ProjectAnalysesService.java index 35a54c7a7b3..d8896097ba8 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/projectanalyses/ProjectAnalysesService.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/projectanalyses/ProjectAnalysesService.java @@ -20,7 +20,6 @@ package org.sonarqube.ws.client.projectanalyses; import javax.annotation.Generated; -import javax.annotation.Nullable; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.ProjectAnalyses.CreateEventResponse; import org.sonarqube.ws.ProjectAnalyses.SearchResponse; @@ -30,9 +29,6 @@ import org.sonarqube.ws.client.GetRequest; import org.sonarqube.ws.client.PostRequest; import org.sonarqube.ws.client.WsConnector; -import static java.util.Objects.requireNonNull; -import static java.util.Optional.ofNullable; - /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/project_analyses">Further information about this web service online</a> */ @@ -123,21 +119,4 @@ public class ProjectAnalysesService extends BaseService { UpdateEventResponse.parser()); } - public void set_baseline(String projectKey, @Nullable String branchName, String analysisUuid) { - requireNonNull(projectKey, "projectKey can't be null"); - requireNonNull(analysisUuid, "analysisUuid can't be null"); - PostRequest request = new PostRequest(path("set_baseline")) - .setParam("project", projectKey) - .setParam("analysis", analysisUuid); - ofNullable(branchName).ifPresent(t -> request.setParam("branch", t)); - call(request); - } - - public void unset_baseline(String projectKey, @Nullable String branchName) { - requireNonNull(projectKey, "projectKey can't be null"); - PostRequest request = new PostRequest(path("unset_baseline")) - .setParam("project", projectKey); - ofNullable(branchName).ifPresent(t -> request.setParam("branch", t)); - call(request); - } } diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/projectanalyses/SetBaselineRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/projectanalyses/SetBaselineRequest.java deleted file mode 100644 index 39fa8d24ba2..00000000000 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/projectanalyses/SetBaselineRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2023 SonarSource SA - * mailto:info AT sonarsource DOT com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -package org.sonarqube.ws.client.projectanalyses; - -import javax.annotation.Generated; - -/** - * 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/set_baseline">Further information about this action online (including a response example)</a> - * @since 7.7 - */ -@Generated("sonar-ws-generator") -public class SetBaselineRequest { - - private String analysis; - private String branch; - private String project; - - /** - * This is a mandatory parameter. - * Example value: "AU-Tpxb--iU5OvuD2FLy" - */ - public SetBaselineRequest setAnalysis(String analysis) { - this.analysis = analysis; - return this; - } - - public String getAnalysis() { - return analysis; - } - - /** - */ - public SetBaselineRequest setBranch(String branch) { - this.branch = branch; - return this; - } - - public String getBranch() { - return branch; - } - - /** - * This is a mandatory parameter. - */ - public SetBaselineRequest setProject(String project) { - this.project = project; - return this; - } - - public String getProject() { - return project; - } -} diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/projectanalyses/UnsetBaselineRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/projectanalyses/UnsetBaselineRequest.java deleted file mode 100644 index 7069e06b50d..00000000000 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/projectanalyses/UnsetBaselineRequest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2023 SonarSource SA - * mailto:info AT sonarsource DOT com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -package org.sonarqube.ws.client.projectanalyses; - -import javax.annotation.Generated; - -/** - * 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/unset_baseline">Further information about this action online (including a response example)</a> - * @since 7.7 - */ -@Generated("sonar-ws-generator") -public class UnsetBaselineRequest { - - private String branch; - private String project; - - /** - */ - public UnsetBaselineRequest setBranch(String branch) { - this.branch = branch; - return this; - } - - public String getBranch() { - return branch; - } - - /** - * This is a mandatory parameter. - */ - public UnsetBaselineRequest setProject(String project) { - this.project = project; - return this; - } - - public String getProject() { - return project; - } -} |