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-plugins.proto 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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.plugins;
  20. import "ws-commons.proto";
  21. option java_package = "org.sonarqube.ws";
  22. option java_outer_classname = "Plugins";
  23. option optimize_for = SPEED;
  24. // WS api/plugins/available
  25. message AvailablePluginsWsResponse {
  26. repeated AvailablePlugin plugins = 1;
  27. optional string updateCenterRefresh = 2;
  28. }
  29. message AvailablePlugin {
  30. optional string key = 1;
  31. optional string name = 2;
  32. optional string category = 3;
  33. optional string description = 4;
  34. optional string license = 5;
  35. optional string termsAndConditionsUrl = 6;
  36. optional string organizationName = 7;
  37. optional string organizationUrl = 8;
  38. optional string issueTrackerUrl = 9;
  39. optional string homepageUrl = 10;
  40. optional bool editionBundled = 11;
  41. optional Release release = 12;
  42. optional Update update = 13;
  43. }
  44. message Release {
  45. optional string version = 1;
  46. optional string date = 2;
  47. optional string description = 3;
  48. optional string changeLogUrl = 4;
  49. }
  50. message Update {
  51. optional UpdateStatus status = 1;
  52. repeated Require requires = 2;
  53. }
  54. enum UpdateStatus {
  55. COMPATIBLE = 0;
  56. INCOMPATIBLE = 1;
  57. REQUIRES_SYSTEM_UPGRADE = 2;
  58. DEPS_REQUIRE_SYSTEM_UPGRADE = 3;
  59. }
  60. message Require {
  61. optional string key = 1;
  62. optional string name = 2;
  63. optional string description = 3;
  64. }
  65. // WS api/plugins/updates
  66. message UpdatesPluginsWsResponse {
  67. repeated UpdatablePlugin plugins = 1;
  68. optional string updateCenterRefresh = 2;
  69. }
  70. message UpdatablePlugin {
  71. optional string key = 1;
  72. optional string name = 2;
  73. optional string category = 3;
  74. optional string description = 4;
  75. optional string license = 5;
  76. optional string termsAndConditionsUrl = 6;
  77. optional string organizationName = 7;
  78. optional string organizationUrl = 8;
  79. optional string issueTrackerUrl = 9;
  80. optional string homepageUrl = 10;
  81. optional bool editionBundled = 11;
  82. repeated AvailableUpdate updates = 12;
  83. }
  84. message AvailableUpdate {
  85. optional Release release = 1;
  86. optional UpdateStatus status = 2;
  87. repeated Require requires = 3;
  88. }
  89. // WS api/plugins/installed
  90. message InstalledPluginsWsResponse {
  91. repeated PluginDetails plugins = 1;
  92. }
  93. message PluginDetails {
  94. optional string key = 1;
  95. optional string name = 2;
  96. optional string description = 3;
  97. optional string category = 4;
  98. optional string version = 5;
  99. optional string license = 6;
  100. optional string organizationName = 7;
  101. optional string organizationUrl = 8;
  102. optional bool editionBundled = 9;
  103. optional string homepageUrl = 10;
  104. optional string issueTrackerUrl = 11;
  105. optional string implementationBuild = 12;
  106. optional string filename = 13;
  107. optional string hash = 14;
  108. optional bool sonarLintSupported = 15;
  109. optional string documentationPath = 16;
  110. optional int64 updatedAt = 17;
  111. optional string type = 18;
  112. repeated string requiredForLanguages = 19;
  113. }
  114. // WS api/plugins/pending
  115. message PendingPluginsWsResponse {
  116. repeated PluginDetails installing = 1;
  117. repeated PluginDetails updating = 2;
  118. repeated PluginDetails removing = 3;
  119. }