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_integrations.proto 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. import "ws-commons.proto";
  21. option java_package = "org.sonarqube.ws";
  22. option java_outer_classname = "AlmIntegrations";
  23. option optimize_for = SPEED;
  24. // WS api/alm_integrations/search_bitbucketserver_repos
  25. message SearchBitbucketserverReposWsResponse {
  26. optional bool isLastPage = 1;
  27. repeated BBSRepo repositories = 2;
  28. }
  29. // WS api/alm_integrations/search_bitbucketcloud_repos
  30. message SearchBitbucketcloudReposWsResponse {
  31. optional sonarqube.ws.commons.Paging paging = 1;
  32. optional bool isLastPage = 2;
  33. repeated BBCRepo repositories = 3;
  34. }
  35. // WS api/alm_integrations/search_azure_repos
  36. message SearchAzureReposWsResponse {
  37. repeated AzureRepo repositories = 2;
  38. }
  39. // WS api/alm_integrations/list_bitbucketserver_projects
  40. message ListBitbucketserverProjectsWsResponse {
  41. repeated AlmProject projects = 1;
  42. }
  43. // WS api/alm_integrations/list_azure_projects
  44. message ListAzureProjectsWsResponse {
  45. repeated AzureProject projects = 1;
  46. }
  47. message BBSRepo {
  48. optional string slug = 1;
  49. optional int64 id = 2;
  50. optional string name = 3;
  51. optional string sqProjectKey = 4;
  52. optional string projectKey = 5;
  53. }
  54. message BBCRepo {
  55. optional string slug = 1;
  56. optional string uuid = 2;
  57. optional string name = 3;
  58. optional string sqProjectKey = 4;
  59. optional string projectKey = 5;
  60. optional string workspace = 6;
  61. }
  62. message AzureRepo {
  63. optional string name = 1;
  64. optional string projectName = 2;
  65. optional string sqProjectKey = 3;
  66. optional string sqProjectName = 4;
  67. }
  68. message AlmProject {
  69. optional string key = 1;
  70. optional string name = 2;
  71. }
  72. message AzureProject {
  73. optional string name = 1;
  74. optional string description = 2;
  75. }
  76. // WS api/alm_integrations/get_github_client_id
  77. message GithubClientIdWsResponse {
  78. optional string clientId = 1;
  79. }
  80. // WS api/alm_integrations/list_github_organizations
  81. message ListGithubOrganizationsWsResponse {
  82. optional sonarqube.ws.commons.Paging paging = 1;
  83. repeated GithubOrganization organizations = 2;
  84. }
  85. message GithubOrganization {
  86. optional string key = 1;
  87. optional string name = 2;
  88. }
  89. // WS api/alm_integrations/list_github_repositories
  90. message ListGithubRepositoriesWsResponse {
  91. optional sonarqube.ws.commons.Paging paging = 1;
  92. repeated GithubRepository repositories = 2;
  93. }
  94. message GithubRepository {
  95. optional int64 id = 1;
  96. optional string key = 2;
  97. optional string name = 3;
  98. optional string url = 4;
  99. optional string sqProjectKey = 5;
  100. }
  101. // WS api/alm_integrations/search_gitlab_repos
  102. message SearchGitlabReposWsResponse {
  103. optional sonarqube.ws.commons.Paging paging = 1;
  104. repeated GitlabRepository repositories = 2;
  105. }
  106. message GitlabRepository {
  107. optional int64 id = 1;
  108. optional string name = 2;
  109. optional string pathName = 3;
  110. optional string slug = 4;
  111. optional string pathSlug = 5;
  112. optional string url = 6;
  113. optional string sqProjectKey = 7;
  114. optional string sqProjectName = 8;
  115. }