aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-10-12 13:30:14 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-10-23 08:01:13 -0700
commit01a14f1ac3e23faa8c213069a9bab099523ea8de (patch)
treef465a6c5ec83996e6854afc032f6034fa5de4128 /sonar-ws
parenteab7e70365df5b20d203ed31be8e2a95557a149c (diff)
downloadsonarqube-01a14f1ac3e23faa8c213069a9bab099523ea8de.tar.gz
sonarqube-01a14f1ac3e23faa8c213069a9bab099523ea8de.zip
SONAR-9943 add WS api/editions/status
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/protobuf/ws-editions.proto40
1 files changed, 40 insertions, 0 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-editions.proto b/sonar-ws/src/main/protobuf/ws-editions.proto
new file mode 100644
index 00000000000..9e486715aae
--- /dev/null
+++ b/sonar-ws/src/main/protobuf/ws-editions.proto
@@ -0,0 +1,40 @@
+// SonarQube, open source software quality management tool.
+// Copyright (C) 2008-2016 SonarSource
+// mailto:contact AT sonarsource DOT com
+//
+// SonarQube 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.
+//
+// SonarQube 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.
+
+syntax = "proto2";
+
+package sonarqube.ws.editions;
+
+option java_package = "org.sonarqube.ws";
+option java_outer_classname = "WsEditions";
+option optimize_for = SPEED;
+
+// GET api/editions/status
+message StatusResponse {
+ optional string currentEditionKey = 1;
+ optional InstallationStatus installationStatus = 2;
+ optional string nextEditionKey = 3;
+}
+
+enum InstallationStatus {
+ NONE = 0;
+ AUTOMATIC_IN_PROGRESS = 1;
+ AUTOMATIC_READY = 2;
+ AUTOMATIC_FAILED = 3;
+ MANUAL_IN_PROGRESS = 4;
+}