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-hotspots.proto 2.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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.hotspots;
  20. import "ws-commons.proto";
  21. option java_package = "org.sonarqube.ws";
  22. option java_outer_classname = "Hotspots";
  23. option optimize_for = SPEED;
  24. // Response of GET api/hotspots/search
  25. message SearchWsResponse {
  26. optional sonarqube.ws.commons.Paging paging = 1;
  27. repeated Hotspot hotspots = 2;
  28. repeated Component components = 3;
  29. message Hotspot {
  30. optional string key = 1;
  31. optional string component = 2;
  32. optional string project = 3;
  33. optional string securityCategory = 4;
  34. optional string vulnerabilityProbability = 5;
  35. optional string status = 6;
  36. optional string resolution = 7;
  37. optional int32 line = 8;
  38. optional string message = 9;
  39. optional string assignee = 10;
  40. optional string author = 11;
  41. optional string creationDate = 12;
  42. optional string updateDate = 13;
  43. }
  44. }
  45. // Response of GET api/hotspots/show
  46. message ShowWsResponse {
  47. optional string key = 1;
  48. optional Component component = 2;
  49. optional Component project = 3;
  50. optional Rule rule = 4;
  51. optional string status = 5;
  52. optional string resolution = 6;
  53. optional int32 line = 7;
  54. optional string message = 8;
  55. optional string assignee = 9;
  56. optional string author = 10;
  57. optional string creationDate = 11;
  58. optional string updateDate = 12;
  59. optional sonarqube.ws.commons.TextRange textRange = 13;
  60. repeated sonarqube.ws.commons.Changelog changelog = 14;
  61. repeated sonarqube.ws.commons.Comment comment = 15;
  62. repeated sonarqube.ws.commons.User users = 16;
  63. optional bool canChangeStatus = 17;
  64. }
  65. message Component {
  66. optional string organization = 1;
  67. optional string key = 2;
  68. optional string qualifier = 3;
  69. optional string name = 4;
  70. optional string longName = 5;
  71. optional string path = 6;
  72. optional string branch = 7;
  73. optional string pullRequest = 8;
  74. }
  75. message Rule {
  76. optional string key = 1;
  77. optional string name = 2;
  78. optional string securityCategory = 3;
  79. optional string vulnerabilityProbability = 4;
  80. optional string riskDescription = 5;
  81. optional string vulnerabilityDescription = 6;
  82. optional string fixRecommendations = 7;
  83. }