aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-11-23 11:06:10 +0100
committerEric Hartmann <hartmann.eric@gmail.Com>2017-12-04 13:44:55 +0100
commit34ebb5a082e8317dbc917e37f43e522e68bb606e (patch)
treec20763ee2b1c32171498d3d80655c7fc5cc6e63d /sonar-ws
parentf7ac66cac58e254e501ff5f381ce484cfbdda285 (diff)
downloadsonarqube-34ebb5a082e8317dbc917e37f43e522e68bb606e.tar.gz
sonarqube-34ebb5a082e8317dbc917e37f43e522e68bb606e.zip
SONAR-10088 Return available actions in api/qualitygates/list
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/protobuf/ws-qualitygates.proto13
-rw-r--r--sonar-ws/src/main/protobuf/ws-qualityprofiles.proto2
2 files changed, 14 insertions, 1 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-qualitygates.proto b/sonar-ws/src/main/protobuf/ws-qualitygates.proto
index 57658d9996f..15e2ab342e3 100644
--- a/sonar-ws/src/main/protobuf/ws-qualitygates.proto
+++ b/sonar-ws/src/main/protobuf/ws-qualitygates.proto
@@ -140,13 +140,26 @@ message ListWsResponse {
repeated QualityGate qualitygates = 1;
// Deprecated since 7.0
optional int64 default = 2;
+ optional RootActions actions = 3;
message QualityGate {
optional int64 id = 1;
optional string name = 2;
optional bool isDefault = 3;
optional bool isBuiltIn = 4;
+ optional Actions actions = 5;
}
+
+ message RootActions {
+ optional bool create = 1;
+ }
+}
+
+message Actions {
+ optional bool edit = 1;
+ optional bool setAsDefault = 2;
+ optional bool copy = 3;
+ optional bool associateProjects = 4;
}
diff --git a/sonar-ws/src/main/protobuf/ws-qualityprofiles.proto b/sonar-ws/src/main/protobuf/ws-qualityprofiles.proto
index e4d9df36abc..0b0039a2506 100644
--- a/sonar-ws/src/main/protobuf/ws-qualityprofiles.proto
+++ b/sonar-ws/src/main/protobuf/ws-qualityprofiles.proto
@@ -54,7 +54,7 @@ message SearchWsResponse {
optional bool edit = 1;
optional bool setAsDefault = 2;
optional bool copy = 3;
- }
+ }
}
message Actions {