aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src/main/java
diff options
context:
space:
mode:
authorJacek <jacek.poreda@sonarsource.com>2021-07-02 15:08:31 +0200
committersonartech <sonartech@sonarsource.com>2021-07-07 20:03:25 +0000
commit16033e3f2f514eb9743eb6d8403ded53a1cc2e4e (patch)
treeb7b84b87aa8e1be8351c2aab05c1ea4242df81cf /sonar-ws/src/main/java
parent4658585f4548bcf4ce994a9aec3d951cb4d9257a (diff)
downloadsonarqube-16033e3f2f514eb9743eb6d8403ded53a1cc2e4e.tar.gz
sonarqube-16033e3f2f514eb9743eb6d8403ded53a1cc2e4e.zip
SONAR-10762 Drop custom metrics WSs
Diffstat (limited to 'sonar-ws/src/main/java')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/CreateRequest.java115
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/DeleteRequest.java60
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/MetricsService.java68
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/UpdateRequest.java125
4 files changed, 0 insertions, 368 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/CreateRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/CreateRequest.java
deleted file mode 100644
index 38ea90f3f08..00000000000
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/CreateRequest.java
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2021 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.metrics;
-
-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/metrics/create">Further information about this action online (including a response example)</a>
- * @since 5.2
- */
-@Generated("sonar-ws-generator")
-public class CreateRequest {
-
- private String description;
- private String domain;
- private String key;
- private String name;
- private String type;
-
- /**
- * Example value: "Size of the team"
- */
- public CreateRequest setDescription(String description) {
- this.description = description;
- return this;
- }
-
- public String getDescription() {
- return description;
- }
-
- /**
- * Example value: "Tests"
- */
- public CreateRequest setDomain(String domain) {
- this.domain = domain;
- return this;
- }
-
- public String getDomain() {
- return domain;
- }
-
- /**
- * This is a mandatory parameter.
- * Example value: "team_size"
- */
- public CreateRequest setKey(String key) {
- this.key = key;
- return this;
- }
-
- public String getKey() {
- return key;
- }
-
- /**
- * This is a mandatory parameter.
- * Example value: "Team Size"
- */
- public CreateRequest setName(String name) {
- this.name = name;
- return this;
- }
-
- public String getName() {
- return name;
- }
-
- /**
- * This is a mandatory parameter.
- * Example value: "INT"
- * Possible values:
- * <ul>
- * <li>"INT"</li>
- * <li>"FLOAT"</li>
- * <li>"PERCENT"</li>
- * <li>"BOOL"</li>
- * <li>"STRING"</li>
- * <li>"MILLISEC"</li>
- * <li>"DATA"</li>
- * <li>"LEVEL"</li>
- * <li>"DISTRIB"</li>
- * <li>"RATING"</li>
- * <li>"WORK_DUR"</li>
- * </ul>
- */
- public CreateRequest setType(String type) {
- this.type = type;
- return this;
- }
-
- public String getType() {
- return type;
- }
-}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/DeleteRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/DeleteRequest.java
deleted file mode 100644
index 01ac787b473..00000000000
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/DeleteRequest.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2021 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.metrics;
-
-import java.util.List;
-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/metrics/delete">Further information about this action online (including a response example)</a>
- * @since 5.2
- */
-@Generated("sonar-ws-generator")
-public class DeleteRequest {
-
- private String ids;
- private List<String> keys;
-
- /**
- * Example value: "5, 23, 42"
- */
- public DeleteRequest setIds(String ids) {
- this.ids = ids;
- return this;
- }
-
- public String getIds() {
- return ids;
- }
-
- /**
- * Example value: "team_size, business_value"
- */
- public DeleteRequest setKeys(List<String> keys) {
- this.keys = keys;
- return this;
- }
-
- public List<String> getKeys() {
- return keys;
- }
-}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/MetricsService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/MetricsService.java
index b0be146478b..722a65bd7cc 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/MetricsService.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/MetricsService.java
@@ -40,55 +40,6 @@ public class MetricsService extends BaseService {
/**
*
* This is part of the internal API.
- * This is a POST request.
- * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/metrics/create">Further information about this action online (including a response example)</a>
- * @since 5.2
- */
- public void create(CreateRequest request) {
- call(
- new PostRequest(path("create"))
- .setParam("description", request.getDescription())
- .setParam("domain", request.getDomain())
- .setParam("key", request.getKey())
- .setParam("name", request.getName())
- .setParam("type", request.getType())
- .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/metrics/delete">Further information about this action online (including a response example)</a>
- * @since 5.2
- */
- public void delete(DeleteRequest request) {
- call(
- new PostRequest(path("delete"))
- .setParam("ids", request.getIds())
- .setParam("keys", request.getKeys() == null ? null : request.getKeys().stream().collect(Collectors.joining(",")))
- .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/metrics/domains">Further information about this action online (including a response example)</a>
- * @since 5.2
- */
- public String domains() {
- return call(
- new GetRequest(path("domains"))
- .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/metrics/search">Further information about this action online (including a response example)</a>
* @since 5.2
@@ -118,23 +69,4 @@ public class MetricsService extends BaseService {
).content();
}
- /**
- *
- * This is part of the internal API.
- * This is a POST request.
- * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/metrics/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("description", request.getDescription())
- .setParam("domain", request.getDomain())
- .setParam("id", request.getId())
- .setParam("key", request.getKey())
- .setParam("name", request.getName())
- .setParam("type", request.getType())
- .setMediaType(MediaTypes.JSON)
- ).content();
- }
}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/UpdateRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/UpdateRequest.java
deleted file mode 100644
index 4651259b7ef..00000000000
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/UpdateRequest.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2021 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.metrics;
-
-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/metrics/update">Further information about this action online (including a response example)</a>
- * @since 5.2
- */
-@Generated("sonar-ws-generator")
-public class UpdateRequest {
-
- private String description;
- private String domain;
- private String id;
- private String key;
- private String name;
- private String type;
-
- /**
- * Example value: "Size of the team"
- */
- public UpdateRequest setDescription(String description) {
- this.description = description;
- return this;
- }
-
- public String getDescription() {
- return description;
- }
-
- /**
- * Example value: "Tests"
- */
- public UpdateRequest setDomain(String domain) {
- this.domain = domain;
- return this;
- }
-
- public String getDomain() {
- return domain;
- }
-
- /**
- * This is a mandatory parameter.
- * Example value: "42"
- */
- public UpdateRequest setId(String id) {
- this.id = id;
- return this;
- }
-
- public String getId() {
- return id;
- }
-
- /**
- * Example value: "team_size"
- */
- public UpdateRequest setKey(String key) {
- this.key = key;
- return this;
- }
-
- public String getKey() {
- return key;
- }
-
- /**
- */
- public UpdateRequest setName(String name) {
- this.name = name;
- return this;
- }
-
- public String getName() {
- return name;
- }
-
- /**
- * Example value: "INT"
- * Possible values:
- * <ul>
- * <li>"INT"</li>
- * <li>"FLOAT"</li>
- * <li>"PERCENT"</li>
- * <li>"BOOL"</li>
- * <li>"STRING"</li>
- * <li>"MILLISEC"</li>
- * <li>"DATA"</li>
- * <li>"LEVEL"</li>
- * <li>"DISTRIB"</li>
- * <li>"RATING"</li>
- * <li>"WORK_DUR"</li>
- * </ul>
- */
- public UpdateRequest setType(String type) {
- this.type = type;
- return this;
- }
-
- public String getType() {
- return type;
- }
-}