aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofile/QualityProfileWsParameters.java14
-rw-r--r--sonar-ws/src/main/protobuf/ws-qualityprofiles.proto10
2 files changed, 21 insertions, 3 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofile/QualityProfileWsParameters.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofile/QualityProfileWsParameters.java
index f4314b7a8d0..59053530c71 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofile/QualityProfileWsParameters.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofile/QualityProfileWsParameters.java
@@ -28,9 +28,10 @@ public class QualityProfileWsParameters {
String PARAM_BACKUP = "backup";
}
public static final String ACTION_ACTIVATE_RULE = "activate_rule";
-
public static final String ACTION_ACTIVATE_RULES = "activate_rules";
public static final String ACTION_ADD_PROJECT = "add_project";
+ public static final String ACTION_ADD_GROUP = "add_group";
+ public static final String ACTION_ADD_USER = "add_user";
public static final String ACTION_CHANGE_PARENT = "change_parent";
public static final String ACTION_COPY = "copy";
public static final String ACTION_CREATE = "create";
@@ -38,15 +39,22 @@ public class QualityProfileWsParameters {
public static final String ACTION_DEACTIVATE_RULES = "deactivate_rules";
public static final String ACTION_DELETE = "delete";
public static final String ACTION_REMOVE_PROJECT = "remove_project";
+ public static final String ACTION_REMOVE_GROUP = "remove_group";
+ public static final String ACTION_REMOVE_USER = "remove_user";
public static final String ACTION_RESTORE = "restore";
public static final String ACTION_SEARCH = "search";
+ public static final String ACTION_SEARCH_USERS = "search_users";
+ public static final String ACTION_SEARCH_GROUPS = "search_groups";
public static final String ACTION_SHOW = "show";
public static final String ACTION_SET_DEFAULT = "set_default";
- public static final String PARAM_DEFAULTS = "defaults";
+ public static final String PARAM_COMPARE_TO_SONAR_WAY = "compareToSonarWay";
+ public static final String PARAM_DEFAULTS = "defaults";
public static final String PARAM_FROM_KEY = "fromKey";
+ public static final String PARAM_GROUP = "group";
public static final String PARAM_ORGANIZATION = "organization";
public static final String PARAM_LANGUAGE = "language";
+ public static final String PARAM_LOGIN = "login";
public static final String PARAM_NAME = "name";
public static final String PARAM_PARAMS = "params";
public static final String PARAM_PARENT_KEY = "parentKey";
@@ -56,6 +64,7 @@ public class QualityProfileWsParameters {
public static final String PARAM_PROJECT = "project";
public static final String PARAM_PROJECT_KEY = "projectKey";
public static final String PARAM_PROJECT_UUID = "projectUuid";
+ public static final String PARAM_QUERY = "q";
public static final String PARAM_RESET = "reset";
public static final String PARAM_RULE = "rule";
public static final String PARAM_SEVERITY = "severity";
@@ -64,7 +73,6 @@ public class QualityProfileWsParameters {
public static final String PARAM_TARGET_SEVERITY = "targetSeverity";
public static final String PARAM_TO = "to";
public static final String PARAM_TO_NAME = "toName";
- public static final String PARAM_COMPARE_TO_SONAR_WAY = "compareToSonarWay";
private QualityProfileWsParameters() {
// Only static stuff
diff --git a/sonar-ws/src/main/protobuf/ws-qualityprofiles.proto b/sonar-ws/src/main/protobuf/ws-qualityprofiles.proto
index 3e19aaf63a7..a02f33fe395 100644
--- a/sonar-ws/src/main/protobuf/ws-qualityprofiles.proto
+++ b/sonar-ws/src/main/protobuf/ws-qualityprofiles.proto
@@ -27,6 +27,7 @@ option optimize_for = SPEED;
// WS api/qualityprofiles/search
message SearchWsResponse {
repeated QualityProfile profiles = 1;
+ optional Actions actions = 2;
message QualityProfile {
optional string key = 1;
@@ -45,6 +46,14 @@ message SearchWsResponse {
optional string userUpdatedAt = 14;
optional string organization = 15;
optional bool isBuiltIn = 16;
+ optional Actions actions = 17;
+ }
+
+ message Actions {
+ optional bool create = 1;
+ optional bool edit = 2;
+ optional bool setAsDefault = 3;
+ optional bool copy = 4;
}
}
@@ -128,3 +137,4 @@ message ShowResponse {
optional int64 missingRuleCount = 3;
}
}
+