You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ws-editions.proto 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // SonarQube, open source software quality management tool.
  2. // Copyright (C) 2008-2016 SonarSource
  3. // mailto:contact AT sonarsource DOT com
  4. //
  5. // SonarQube is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU Lesser General Public
  7. // License as published by the Free Software Foundation; either
  8. // version 3 of the License, or (at your option) any later version.
  9. //
  10. // SonarQube is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. // Lesser General Public License for more details.
  14. //
  15. // You should have received a copy of the GNU Lesser General Public License
  16. // along with this program; if not, write to the Free Software Foundation,
  17. // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18. syntax = "proto2";
  19. package sonarqube.ws.editions;
  20. option java_package = "org.sonarqube.ws";
  21. option java_outer_classname = "Editions";
  22. option optimize_for = SPEED;
  23. // GET api/editions/status
  24. // POST api/editions/apply_license
  25. message StatusResponse {
  26. optional string currentEditionKey = 1;
  27. optional InstallationStatus installationStatus = 2;
  28. optional string nextEditionKey = 3;
  29. optional string installError = 4;
  30. }
  31. enum InstallationStatus {
  32. NONE = 0;
  33. AUTOMATIC_IN_PROGRESS = 1;
  34. AUTOMATIC_READY = 2;
  35. MANUAL_IN_PROGRESS = 3;
  36. UNINSTALL_IN_PROGRESS = 4;
  37. }
  38. // POST api/editions/preview
  39. message PreviewResponse {
  40. optional string nextEditionKey = 1;
  41. optional PreviewStatus previewStatus = 2;
  42. }
  43. enum PreviewStatus {
  44. NO_INSTALL = 0;
  45. AUTOMATIC_INSTALL = 1;
  46. MANUAL_INSTALL = 2;
  47. }
  48. // POST api/editions/form_data
  49. message FormDataResponse {
  50. optional string serverId = 1;
  51. optional int64 ncloc = 2;
  52. }