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-components.proto 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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.component;
  20. import "ws-commons.proto";
  21. option java_package = "org.sonarqube.ws";
  22. option java_outer_classname = "Components";
  23. option optimize_for = SPEED;
  24. // WS api/components/search
  25. message SearchWsResponse {
  26. optional sonarqube.ws.commons.Paging paging = 1;
  27. repeated Component components = 2;
  28. }
  29. // WS api/components/tree
  30. message TreeWsResponse {
  31. optional sonarqube.ws.commons.Paging paging = 1;
  32. optional Component baseComponent = 3;
  33. repeated Component components = 4;
  34. }
  35. // WS api/components/show
  36. message ShowWsResponse {
  37. optional sonarqube.ws.commons.Paging paging = 1;
  38. optional Component component = 2;
  39. repeated Component ancestors = 3;
  40. }
  41. // WS api/components/suggestions
  42. message SuggestionsWsResponse {
  43. repeated Category results = 1;
  44. optional string warning = 2;
  45. repeated sonarqube.ws.commons.Organization organizations = 3;
  46. repeated Project projects = 4;
  47. message Category {
  48. optional string q = 1;
  49. repeated Suggestion items = 2;
  50. optional int64 more = 3;
  51. }
  52. message Suggestion {
  53. optional string key = 1;
  54. optional string name = 2;
  55. optional string match = 3;
  56. optional string organization = 4;
  57. optional string project = 5;
  58. optional bool isRecentlyBrowsed = 6;
  59. optional bool isFavorite = 7;
  60. }
  61. message Project {
  62. optional string key = 1;
  63. optional string name = 2;
  64. }
  65. }
  66. // WS api/components/search_projects
  67. message SearchProjectsWsResponse {
  68. optional sonarqube.ws.commons.Paging paging = 1;
  69. repeated sonarqube.ws.commons.Organization organizations = 2;
  70. repeated Component components = 3;
  71. optional sonarqube.ws.commons.Facets facets = 4;
  72. }
  73. // WS api/components/provisioned
  74. message ProvisionedWsResponse {
  75. optional sonarqube.ws.commons.Paging paging = 1;
  76. repeated Component projects = 2;
  77. message Component {
  78. optional string uuid = 1;
  79. optional string key = 2;
  80. optional string name = 3;
  81. optional string creationDate = 4;
  82. optional string visibility = 5;
  83. }
  84. }
  85. message Component {
  86. optional string organization = 12;
  87. optional string id = 1;
  88. optional string key = 2;
  89. optional string refId = 3;
  90. optional string refKey = 4;
  91. optional string projectId = 5;
  92. optional string name = 6;
  93. optional string description = 7;
  94. optional string qualifier = 8;
  95. optional string path = 9;
  96. optional string language = 10;
  97. optional bool isFavorite = 11;
  98. optional string analysisDate = 13;
  99. optional Tags tags = 14;
  100. optional string visibility = 15;
  101. optional string leakPeriodDate = 16;
  102. // Root project key
  103. optional string project = 17;
  104. optional string branch = 18;
  105. optional string version = 19;
  106. optional string pullRequest = 20;
  107. message Tags {
  108. repeated string tags = 1;
  109. }
  110. }