aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorJanos Gyerik <janos.gyerik@sonarsource.com>2018-12-11 13:29:15 +0100
committerSonarTech <sonartech@sonarsource.com>2019-01-08 20:21:06 +0100
commit1547d5cc2b446b6d0816bb5607500db9332bd746 (patch)
tree01e47ded240e5f04fda60a8e8d571c8c6503e92b /sonar-ws
parent0ffc6374e98d787c7a7d72d6947e06c07419af5d (diff)
downloadsonarqube-1547d5cc2b446b6d0816bb5607500db9332bd746.tar.gz
sonarqube-1547d5cc2b446b6d0816bb5607500db9332bd746.zip
SONAR-11570 Drop period from web services
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/CreateConditionRequest.java16
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/QualitygatesService.java2
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/UpdateConditionRequest.java16
-rw-r--r--sonar-ws/src/main/protobuf/ws-qualitygates.proto3
4 files changed, 0 insertions, 37 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 3ecc5c67c2e..b17861f2a87 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
@@ -36,7 +36,6 @@ public class CreateConditionRequest {
private String metric;
private String op;
private String organization;
- private String period;
private String warning;
/**
@@ -109,21 +108,6 @@ public class CreateConditionRequest {
}
/**
- * Possible values:
- * <ul>
- * <li>"1"</li>
- * </ul>
- */
- public CreateConditionRequest setPeriod(String period) {
- this.period = period;
- return this;
- }
-
- public String getPeriod() {
- return period;
- }
-
- /**
* Example value: "5"
*/
public CreateConditionRequest setWarning(String 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 513eb98a2af..89ee5d8b14c 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
@@ -92,7 +92,6 @@ public class QualitygatesService extends BaseService {
.setParam("metric", request.getMetric())
.setParam("op", request.getOp())
.setParam("organization", request.getOrganization())
- .setParam("period", request.getPeriod())
.setParam("warning", request.getWarning()),
CreateConditionResponse.parser());
}
@@ -308,7 +307,6 @@ public class QualitygatesService extends BaseService {
.setParam("metric", request.getMetric())
.setParam("op", request.getOp())
.setParam("organization", request.getOrganization())
- .setParam("period", request.getPeriod())
.setParam("warning", request.getWarning()),
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 056bada49bc..ca342817ca5 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 period;
private String warning;
/**
@@ -109,21 +108,6 @@ public class UpdateConditionRequest {
}
/**
- * Possible values:
- * <ul>
- * <li>"1"</li>
- * </ul>
- */
- public UpdateConditionRequest setPeriod(String period) {
- this.period = period;
- return this;
- }
-
- public String getPeriod() {
- return period;
- }
-
- /**
* Example value: "5"
*/
public UpdateConditionRequest setWarning(String warning) {
diff --git a/sonar-ws/src/main/protobuf/ws-qualitygates.proto b/sonar-ws/src/main/protobuf/ws-qualitygates.proto
index c9b63db5776..a8c14ef3c02 100644
--- a/sonar-ws/src/main/protobuf/ws-qualitygates.proto
+++ b/sonar-ws/src/main/protobuf/ws-qualitygates.proto
@@ -105,7 +105,6 @@ message CreateConditionResponse {
optional string op = 3;
optional string warning = 4;
optional string error = 5;
- optional int32 period = 6;
}
// POST api/qualitygates/update_condition
@@ -115,7 +114,6 @@ message UpdateConditionResponse {
optional string op = 3;
optional string warning = 4;
optional string error = 5;
- optional int32 period = 6;
}
// GET api/qualitygates/show
@@ -129,7 +127,6 @@ message ShowWsResponse {
message Condition {
optional int64 id = 1;
optional string metric = 2;
- optional int32 period = 3;
optional string op = 4;
optional string warning = 5;
optional string error = 6;