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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // SonarQube, open source software quality management tool.
  2. // Copyright (C) 2008-2015 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.permissions;
  20. import "ws-commons.proto";
  21. option java_package = "org.sonarqube.ws";
  22. option java_outer_classname = "Permissions";
  23. option optimize_for = SPEED;
  24. // WS api/permissions/users for internal use only
  25. message UsersResponse {
  26. message User {
  27. optional string login = 1;
  28. optional string name = 2;
  29. optional bool selected = 3;
  30. }
  31. repeated User users = 1;
  32. optional sonarqube.ws.commons.Paging paging = 2;
  33. }
  34. // WS api/permissions/groups for internal use only
  35. message GroupsResponse {
  36. message Group {
  37. optional string id = 1;
  38. optional string name = 2;
  39. optional string description = 3;
  40. optional bool selected = 4;
  41. }
  42. repeated Group groups = 1;
  43. optional sonarqube.ws.commons.Paging paging = 2;
  44. }