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-qualityprofiles.proto 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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.qualityprofiles;
  20. import "ws-commons.proto";
  21. option java_package = "org.sonarqube.ws";
  22. option java_outer_classname = "Qualityprofiles";
  23. option optimize_for = SPEED;
  24. // WS api/qualityprofiles/search
  25. message SearchWsResponse {
  26. repeated QualityProfile profiles = 1;
  27. optional Actions actions = 2;
  28. message QualityProfile {
  29. optional string key = 1;
  30. optional string name = 2;
  31. optional string language = 3;
  32. optional string languageName = 4;
  33. optional bool isInherited = 5;
  34. optional string parentKey = 6;
  35. optional string parentName = 7;
  36. optional bool isDefault = 8;
  37. optional int64 activeRuleCount = 9;
  38. optional int64 activeDeprecatedRuleCount = 12;
  39. optional int64 projectCount = 10;
  40. optional string rulesUpdatedAt = 11;
  41. optional string lastUsed = 13;
  42. optional string userUpdatedAt = 14;
  43. optional string organization = 15;
  44. optional bool isBuiltIn = 16;
  45. optional Actions actions = 17;
  46. message Actions {
  47. optional bool edit = 1;
  48. optional bool setAsDefault = 2;
  49. optional bool copy = 3;
  50. optional bool associateProjects = 4;
  51. optional bool delete = 5;
  52. }
  53. }
  54. message Actions {
  55. optional bool create = 1;
  56. }
  57. }
  58. // WS api/qualityprofiles/create
  59. message CreateWsResponse {
  60. optional QualityProfile profile = 1;
  61. message QualityProfile {
  62. optional string key = 1;
  63. optional string name = 2;
  64. optional string language = 3;
  65. optional string languageName = 4;
  66. optional bool isInherited = 5;
  67. optional bool isDefault = 6;
  68. optional Infos infos = 7;
  69. optional Warnings warnings = 8;
  70. optional string organization = 9;
  71. message Infos {
  72. repeated string infos = 1;
  73. }
  74. message Warnings {
  75. repeated string warnings = 1;
  76. }
  77. }
  78. }
  79. // WS api/qualityprofiles/inheritance
  80. message InheritanceWsResponse {
  81. optional QualityProfile profile = 1;
  82. repeated QualityProfile ancestors = 2;
  83. repeated QualityProfile children = 3;
  84. message QualityProfile {
  85. optional string key = 1;
  86. optional string name = 2;
  87. optional string parent = 3;
  88. optional int64 activeRuleCount = 4;
  89. optional int64 overridingRuleCount = 5;
  90. optional bool isBuiltIn = 6;
  91. }
  92. }
  93. // WS api/qualityprofiles/copy
  94. message CopyWsResponse {
  95. optional string key = 1;
  96. optional string name = 2;
  97. optional string language = 3;
  98. optional string languageName = 4;
  99. optional bool isDefault = 5;
  100. optional bool isInherited = 6;
  101. optional string parentKey = 7;
  102. }
  103. // WS api/qualityprofiles/show
  104. message ShowResponse {
  105. optional QualityProfile profile = 1;
  106. optional CompareToSonarWay compareToSonarWay = 2;
  107. message QualityProfile {
  108. optional string key = 1;
  109. optional string name = 2;
  110. optional string language = 3;
  111. optional string languageName = 4;
  112. optional bool isInherited = 5;
  113. optional bool isDefault = 6;
  114. optional int64 activeRuleCount = 7;
  115. optional int64 activeDeprecatedRuleCount = 8;
  116. optional int64 projectCount = 9;
  117. optional string rulesUpdatedAt = 10;
  118. optional string lastUsed = 11;
  119. optional string userUpdatedAt = 12;
  120. optional string organization = 13;
  121. optional bool isBuiltIn = 14;
  122. }
  123. message CompareToSonarWay {
  124. optional string profile = 1;
  125. optional string profileName = 2;
  126. optional int64 missingRuleCount = 3;
  127. }
  128. }
  129. // WS api/qualityprofiles/search_users
  130. message SearchUsersResponse {
  131. optional sonarqube.ws.commons.Paging paging = 1;
  132. repeated User users = 2;
  133. message User {
  134. optional string login = 1;
  135. optional string name = 2;
  136. optional string avatar = 3;
  137. optional bool selected = 4;
  138. }
  139. }
  140. // WS api/qualityprofiles/search_groups
  141. message SearchGroupsResponse {
  142. optional sonarqube.ws.commons.Paging paging = 1;
  143. repeated Group groups = 2;
  144. message Group {
  145. optional string name = 1;
  146. optional string description = 2;
  147. optional bool selected = 3;
  148. }
  149. }