aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src/main/protobuf/ws-permissions.proto
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-08-04 15:29:06 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-08-06 09:05:46 +0200
commitb4e4af137329f4c90e6365e233cdcba3a5322697 (patch)
treeb6a87f57f5acb37e51ecb8bdc7d7eb2cae8be23f /sonar-ws/src/main/protobuf/ws-permissions.proto
parent4d119d3c92675105c46ead03ca6eeadb540b7987 (diff)
downloadsonarqube-b4e4af137329f4c90e6365e233cdcba3a5322697.tar.gz
sonarqube-b4e4af137329f4c90e6365e233cdcba3a5322697.zip
SONAR-6479 WS permissions/users search users with a specific permission
Diffstat (limited to 'sonar-ws/src/main/protobuf/ws-permissions.proto')
-rw-r--r--sonar-ws/src/main/protobuf/ws-permissions.proto40
1 files changed, 40 insertions, 0 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-permissions.proto b/sonar-ws/src/main/protobuf/ws-permissions.proto
new file mode 100644
index 00000000000..f68c26c792f
--- /dev/null
+++ b/sonar-ws/src/main/protobuf/ws-permissions.proto
@@ -0,0 +1,40 @@
+// SonarQube, open source software quality management tool.
+// Copyright (C) 2008-2015 SonarSource
+// mailto:contact AT sonarsource DOT com
+//
+// SonarQube is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 3 of the License, or (at your option) any later version.
+//
+// SonarQube is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program; if not, write to the Free Software Foundation,
+// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+syntax = "proto2";
+
+package sonarqube.ws.permissions;
+
+import "ws-commons.proto";
+
+option java_package = "org.sonarqube.ws";
+option java_outer_classname = "Permissions";
+option optimize_for = SPEED;
+
+// WS api/permissions/users for internal use only
+message UsersResponse {
+
+ message User {
+ optional string login = 1;
+ optional string name = 2;
+ optional bool selected = 4;
+ }
+
+ repeated User users = 1;
+ optional sonarqube.ws.commons.Paging paging = 2;
+}