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-alm_settings.proto 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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.almsetting;
  20. option java_package = "org.sonarqube.ws";
  21. option java_outer_classname = "AlmSettings";
  22. option optimize_for = SPEED;
  23. // WS api/alm_settings/list_definitions
  24. message ListDefinitionsWsResponse {
  25. repeated AlmSettingGithub github = 1;
  26. repeated AlmSettingAzure azure = 2;
  27. repeated AlmSettingBitbucket bitbucket = 3;
  28. repeated AlmSettingGitlab gitlab = 4;
  29. }
  30. message AlmSettingGithub {
  31. optional string key = 1;
  32. optional string url = 2;
  33. optional string appId = 3;
  34. optional string privateKey = 4;
  35. }
  36. message AlmSettingAzure {
  37. optional string key = 1;
  38. optional string personalAccessToken = 2;
  39. }
  40. message AlmSettingBitbucket {
  41. optional string key = 1;
  42. optional string url = 2;
  43. optional string personalAccessToken = 3;
  44. }
  45. message AlmSettingGitlab {
  46. optional string key = 1;
  47. optional string personalAccessToken = 2;
  48. optional string url = 3;
  49. }
  50. // WS api/alm_settings/get_binding
  51. message GetBindingWsResponse {
  52. optional string key = 1;
  53. optional Alm alm = 2;
  54. optional string repository = 3;
  55. optional string url = 4;
  56. optional string slug = 5;
  57. optional bool summaryCommentEnabled = 6;
  58. }
  59. enum Alm {
  60. github = 0;
  61. azure = 1;
  62. bitbucket = 2;
  63. gitlab = 3;
  64. }
  65. // WS api/alm_settings/list
  66. message ListWsResponse {
  67. repeated AlmSetting almSettings = 1;
  68. }
  69. message AlmSetting {
  70. optional string key = 1;
  71. optional Alm alm = 2;
  72. optional string url = 3;
  73. }
  74. // WS api/alm_settings/count_binding
  75. message CountBindingWsResponse {
  76. optional string key = 1;
  77. optional int64 projects = 2;
  78. }