aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorBenoƮt Gianinetti <benoit.gianinetti@sonarsource.com>2018-12-11 15:57:05 +0100
committerSonarTech <sonartech@sonarsource.com>2019-01-08 20:21:07 +0100
commitb87a76fa468a726a61c1c635b4334387398aaa06 (patch)
tree2f6893b7d7c43525a72aedb0ea7807b2e133d778 /sonar-ws
parent1547d5cc2b446b6d0816bb5607500db9332bd746 (diff)
downloadsonarqube-b87a76fa468a726a61c1c635b4334387398aaa06.tar.gz
sonarqube-b87a76fa468a726a61c1c635b4334387398aaa06.zip
SONAR-11571 Drop warning treshold from QG web services
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/CreateConditionRequest.java14
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/QualitygatesService.java6
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/UpdateConditionRequest.java13
-rw-r--r--sonar-ws/src/main/protobuf/ws-qualitygates.proto3
4 files changed, 2 insertions, 34 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/CreateConditionRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/CreateConditionRequest.java
index b17861f2a87..ec5c5b4f5a5 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/CreateConditionRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/CreateConditionRequest.java
@@ -19,7 +19,6 @@
*/
package org.sonarqube.ws.client.qualitygates;
-import java.util.List;
import javax.annotation.Generated;
/**
@@ -36,7 +35,6 @@ public class CreateConditionRequest {
private String metric;
private String op;
private String organization;
- private String warning;
/**
* Example value: "10"
@@ -106,16 +104,4 @@ public class CreateConditionRequest {
public String getOrganization() {
return organization;
}
-
- /**
- * Example value: "5"
- */
- public CreateConditionRequest setWarning(String warning) {
- this.warning = warning;
- return this;
- }
-
- public String getWarning() {
- return warning;
- }
}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/QualitygatesService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/QualitygatesService.java
index 89ee5d8b14c..12c7331f0d3 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/QualitygatesService.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/QualitygatesService.java
@@ -91,8 +91,7 @@ public class QualitygatesService extends BaseService {
.setParam("gateId", request.getGateId())
.setParam("metric", request.getMetric())
.setParam("op", request.getOp())
- .setParam("organization", request.getOrganization())
- .setParam("warning", request.getWarning()),
+ .setParam("organization", request.getOrganization()),
CreateConditionResponse.parser());
}
@@ -306,8 +305,7 @@ public class QualitygatesService extends BaseService {
.setParam("id", request.getId())
.setParam("metric", request.getMetric())
.setParam("op", request.getOp())
- .setParam("organization", request.getOrganization())
- .setParam("warning", request.getWarning()),
+ .setParam("organization", request.getOrganization()),
UpdateConditionResponse.parser());
}
}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/UpdateConditionRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/UpdateConditionRequest.java
index ca342817ca5..43c77559bca 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/UpdateConditionRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/UpdateConditionRequest.java
@@ -36,7 +36,6 @@ public class UpdateConditionRequest {
private String metric;
private String op;
private String organization;
- private String warning;
/**
* Example value: "10"
@@ -106,16 +105,4 @@ public class UpdateConditionRequest {
public String getOrganization() {
return organization;
}
-
- /**
- * Example value: "5"
- */
- public UpdateConditionRequest setWarning(String warning) {
- this.warning = warning;
- return this;
- }
-
- public String getWarning() {
- return warning;
- }
}
diff --git a/sonar-ws/src/main/protobuf/ws-qualitygates.proto b/sonar-ws/src/main/protobuf/ws-qualitygates.proto
index a8c14ef3c02..3c43684ab18 100644
--- a/sonar-ws/src/main/protobuf/ws-qualitygates.proto
+++ b/sonar-ws/src/main/protobuf/ws-qualitygates.proto
@@ -103,7 +103,6 @@ message CreateConditionResponse {
optional int64 id = 1;
optional string metric = 2;
optional string op = 3;
- optional string warning = 4;
optional string error = 5;
}
@@ -112,7 +111,6 @@ message UpdateConditionResponse {
optional int64 id = 1;
optional string metric = 2;
optional string op = 3;
- optional string warning = 4;
optional string error = 5;
}
@@ -128,7 +126,6 @@ message ShowWsResponse {
optional int64 id = 1;
optional string metric = 2;
optional string op = 4;
- optional string warning = 5;
optional string error = 6;
}
}