blob: 6a6ff1b02191ab67167659f7815cc3f6ab2739c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
// SonarQube, open source software quality management tool.
// Copyright (C) 2008-2016 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.users;
import "ws-commons.proto";
option java_package = "org.sonarqube.ws";
option java_outer_classname = "Users";
option optimize_for = SPEED;
// WS api/users/search
message SearchWsResponse {
optional sonarqube.ws.commons.Paging paging = 1;
repeated User users = 2;
message User {
optional string login = 1;
optional string name = 2;
optional bool active = 3;
optional string email = 4;
optional ScmAccounts scmAccounts = 5;
optional Groups groups = 6;
optional int32 tokensCount = 7;
optional bool local = 8;
optional string externalIdentity = 9;
optional string externalProvider = 10;
optional string avatar = 11;
optional string lastConnectionDate = 12;
}
message Groups {
repeated string groups = 1;
}
message ScmAccounts {
repeated string scmAccounts = 1;
}
}
// WS api/users/identity_providers
message IdentityProvidersWsResponse {
repeated IdentityProvider identityProviders = 1;
}
message IdentityProvider {
optional string key = 1;
optional string name = 2;
optional string iconPath = 3;
optional string backgroundColor = 4;
optional string helpMessage = 5;
}
message CreateWsResponse {
optional User user = 1;
message User {
optional string login = 1;
optional string name = 2;
optional string email = 3;
repeated string scmAccounts = 4;
optional bool active = 5;
optional bool local = 6;
}
}
// WS api/users/groups
message GroupsWsResponse {
optional sonarqube.ws.commons.Paging paging = 1;
repeated Group groups = 2;
message Group {
optional string id = 1;
optional string name = 2;
optional string description = 3;
optional bool selected = 4;
optional bool default = 5;
}
}
// WS api/users/current
message CurrentWsResponse {
optional bool isLoggedIn = 1;
optional string login = 2;
optional string name = 3;
optional string email = 4;
optional bool local = 5;
optional string externalIdentity = 6;
optional string externalProvider = 7;
repeated string scmAccounts = 8;
repeated string groups = 9;
optional Permissions permissions = 10;
optional bool showOnboardingTutorial = 11;
optional string avatar = 12;
optional Homepage homepage = 13;
repeated Setting settings = 15;
optional bool usingSonarLintConnectedMode = 16;
message Permissions {
repeated string global = 1;
}
enum HomepageType {
PROJECT = 1;
PROJECTS = 2;
ISSUES = 3;
PORTFOLIO = 4;
PORTFOLIOS = 5;
APPLICATION = 6;
}
message Homepage {
optional HomepageType type = 1;
optional string component = 2;
optional string branch = 3;
}
message Setting {
optional string key = 1;
optional string value = 2;
}
}
|