blob: df8e36059b569f8ab43d48a74689542791da3d3c (
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
|
// 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.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 {
optional string encryptedValue = 1;
}
// Response of GET api/settings/generate_secret_key
message GenerateSecretKeyWsResponse {
optional string secretKey = 1;
}
// Response of GET api/settings/check_secret_key
message CheckSecretKeyWsResponse {
optional bool secretKeyAvailable = 1;
}
message Definition {
optional string key = 1;
optional string name = 2;
optional string description = 3;
optional Type type = 4;
optional string category = 5;
optional string subCategory = 6;
optional string defaultValue = 7;
optional bool multiValues = 8;
repeated string options = 9;
repeated Field fields = 10;
optional string deprecatedKey = 11;
}
message Field {
optional string key = 1;
optional string name = 2;
optional string description = 3;
optional 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;
}
// Response of GET api/settings/values
message ValuesWsResponse {
repeated Setting settings = 1;
}
message Setting {
optional string key = 1;
optional string value = 2;
optional Values values = 3;
optional FieldValues fieldValues = 4;
optional bool inherited = 5;
optional string parentValue = 6;
optional Values parentValues = 7;
optional FieldValues parentFieldValues = 8;
}
message Values {
repeated string values = 1;
}
message FieldValues {
repeated Value fieldValues = 1;
message Value {
map<string, string> value = 1;
}
}
|