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
|
// 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 = "proto3";
package sonarqube.ws.settings;
option java_package = "org.sonarqube.ws";
option java_outer_classname = "Settings";
option optimize_for = SPEED;
// Response of GET api/settings/list_definitions
message ListDefinitionsWsResponse {
repeated Definition definitions = 1;
}
// Response of GET api/settings/encrypt
message EncryptWsResponse {
string encryptedValue = 1;
}
// Response of GET api/settings/generate_secret_key
message GenerateSecretKeyWsResponse {
string secretKey = 1;
}
// Response of GET api/settings/check_secret_key
message CheckSecretKeyWsResponse {
bool secretKeyAvailable = 1;
}
message Definition {
string key = 1;
oneof nameOneOf {string name = 2;}
string description = 3;
Type type = 4;
oneof categoryOneOf {string category = 5;}
oneof subCategoryOneOf {string subCategory = 6;}
oneof defaultValueOneOf {string defaultValue = 7;}
bool multiValues = 8;
repeated string options = 9;
repeated Field fields = 10;
oneof deprecatedKeyOneOf {string deprecatedKey = 11;}
}
message Field {
string key = 1;
string name = 2;
string description = 3;
Type type = 4;
repeated string options = 5;
}
enum Type {
STRING = 0;
TEXT = 1;
PASSWORD = 2;
BOOLEAN = 3;
INTEGER = 4;
FLOAT = 5;
LONG = 6;
REGULAR_EXPRESSION = 7;
METRIC = 8;
USER_LOGIN = 9;
METRIC_LEVEL = 10;
SINGLE_SELECT_LIST = 11;
PROPERTY_SET = 12;
LICENSE = 13;
JSON = 14;
FORMATTED_TEXT = 15;
EMAIL = 16;
}
// Response of GET api/settings/values
//IMPORTANT: As of August 2023 we have to align the protobuf response of values endpoint with SonarCloud, as SonarLint depends on it.
//See https://xtranet-sonarsource.atlassian.net/wiki/spaces/DEV/pages/2878669037/Cross-product+consistency+in+protobuf+Web+endpoints
message ValuesWsResponse {
repeated Setting settings = 1;
repeated string setSecuredSettings = 2;
}
message Setting {
string key = 1;
oneof valueOneOf {
string value = 2;
Values values = 3;
FieldValues fieldValues = 4;
}
bool inherited = 5;
oneof parentValueOneOf {
string parentValue = 6;
Values parentValues = 7;
FieldValues parentFieldValues = 8;
}
Origin parentOrigin = 9;
}
message Values {
repeated string values = 1;
}
message FieldValues {
repeated Value fieldValues = 1;
message Value {
map<string, string> value = 1;
}
}
enum Origin {
UNDEFINED = 0;
INSTANCE = 1;
ORGANIZATION = 2;
PROJECT = 3;
}
|