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-user_groups.proto 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.usergroup;
  20. import "ws-commons.proto";
  21. option java_package = "org.sonarqube.ws";
  22. option java_outer_classname = "UserGroups";
  23. option optimize_for = SPEED;
  24. // WS api/user_groups/create
  25. message CreateWsResponse {
  26. optional Group group = 1;
  27. }
  28. // WS api/user_groups/update
  29. message UpdateWsResponse {
  30. optional Group group = 1;
  31. }
  32. // WS api/user_groups/search
  33. message SearchWsResponse {
  34. optional sonarqube.ws.commons.Paging paging = 1;
  35. repeated Group groups = 2;
  36. }
  37. message Group {
  38. optional int64 id = 1;
  39. optional string organization = 2;
  40. optional string name = 3;
  41. optional string description = 4;
  42. optional int32 membersCount = 5;
  43. optional bool default = 6;
  44. }