aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2021-12-02 17:14:20 -0600
committersonartech <sonartech@sonarsource.com>2021-12-05 20:03:19 +0000
commit7b76cdb776286c23cc0a454cb69a4729f173b381 (patch)
tree4bf1e468fde85c7e0969e71e777e6a907bebcfd2 /sonar-ws
parent9f9854b22fab9b1be8f9df641d1bc7fa67fdc429 (diff)
downloadsonarqube-7b76cdb776286c23cc0a454cb69a4729f173b381.tar.gz
sonarqube-7b76cdb776286c23cc0a454cb69a4729f173b381.zip
SONAR-15725 ITs should use new WSs
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddApplicationRequest.java60
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddLocalViewRequest.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddPortfolioRequest.java60
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddProjectBranchRequest.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddProjectRequest.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddSubViewRequest.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/ApplicationsRequest.java47
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/CreateRequest.java18
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/DefineRequest.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/DeleteRequest.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/LocalViewsRequest.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/MoveOptionsRequest.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/MoveRequest.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/PortfoliosRequest.java47
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/ProjectsRequest.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/RefreshRequest.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/RemoveApplicationRequest.java60
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/RemovePortfolioRequest.java60
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/RemoveProjectBranchRequest.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/RemoveProjectRequest.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/SearchRequest.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetManualModeRequest.java2
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetNoneModeRequest.java2
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetRegexpModeRequest.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetRemainingProjectsModeRequest.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/ShowRequest.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/UpdateRequest.java1
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/ViewsService.java102
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/package-info.java2
29 files changed, 462 insertions, 16 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddApplicationRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddApplicationRequest.java
new file mode 100644
index 00000000000..820f0022da5
--- /dev/null
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddApplicationRequest.java
@@ -0,0 +1,60 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2021 SonarSource SA
+ * mailto:info AT sonarsource DOT com
+ *
+ * This program 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.
+ *
+ * This program 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.
+ */
+package org.sonarqube.ws.client.views;
+
+import java.util.List;
+import javax.annotation.Generated;
+
+/**
+ * This is part of the internal API.
+ * This is a POST request.
+ * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/add_application">Further information about this action online (including a response example)</a>
+ * @since 9.3
+ */
+@Generated("sonar-ws-generator")
+public class AddApplicationRequest {
+
+ private String application;
+ private String portfolio;
+
+ /**
+ * This is a mandatory parameter.
+ */
+ public AddApplicationRequest setApplication(String application) {
+ this.application = application;
+ return this;
+ }
+
+ public String getApplication() {
+ return application;
+ }
+
+ /**
+ * This is a mandatory parameter.
+ */
+ public AddApplicationRequest setPortfolio(String portfolio) {
+ this.portfolio = portfolio;
+ return this;
+ }
+
+ public String getPortfolio() {
+ return portfolio;
+ }
+}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddLocalViewRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddLocalViewRequest.java
index 1da27faec99..cb17c3a24ef 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddLocalViewRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddLocalViewRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddPortfolioRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddPortfolioRequest.java
new file mode 100644
index 00000000000..b53f6d4a2a9
--- /dev/null
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddPortfolioRequest.java
@@ -0,0 +1,60 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2021 SonarSource SA
+ * mailto:info AT sonarsource DOT com
+ *
+ * This program 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.
+ *
+ * This program 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.
+ */
+package org.sonarqube.ws.client.views;
+
+import java.util.List;
+import javax.annotation.Generated;
+
+/**
+ * This is part of the internal API.
+ * This is a POST request.
+ * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/add_portfolio">Further information about this action online (including a response example)</a>
+ * @since 9.3
+ */
+@Generated("sonar-ws-generator")
+public class AddPortfolioRequest {
+
+ private String portfolio;
+ private String reference;
+
+ /**
+ * This is a mandatory parameter.
+ */
+ public AddPortfolioRequest setPortfolio(String portfolio) {
+ this.portfolio = portfolio;
+ return this;
+ }
+
+ public String getPortfolio() {
+ return portfolio;
+ }
+
+ /**
+ * This is a mandatory parameter.
+ */
+ public AddPortfolioRequest setReference(String reference) {
+ this.reference = reference;
+ return this;
+ }
+
+ public String getReference() {
+ return reference;
+ }
+}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddProjectBranchRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddProjectBranchRequest.java
index 0f3f63608f9..fcbe4e8fc4a 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddProjectBranchRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddProjectBranchRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddProjectRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddProjectRequest.java
index 6e9f0926301..7dae90e9773 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddProjectRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddProjectRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddSubViewRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddSubViewRequest.java
index ca667445a65..229ba3c0498 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddSubViewRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddSubViewRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ApplicationsRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ApplicationsRequest.java
new file mode 100644
index 00000000000..5436de76904
--- /dev/null
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ApplicationsRequest.java
@@ -0,0 +1,47 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2021 SonarSource SA
+ * mailto:info AT sonarsource DOT com
+ *
+ * This program 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.
+ *
+ * This program 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.
+ */
+package org.sonarqube.ws.client.views;
+
+import java.util.List;
+import javax.annotation.Generated;
+
+/**
+ * This is part of the internal API.
+ * This is a POST request.
+ * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/applications">Further information about this action online (including a response example)</a>
+ * @since 9.3
+ */
+@Generated("sonar-ws-generator")
+public class ApplicationsRequest {
+
+ private String portfolio;
+
+ /**
+ * This is a mandatory parameter.
+ */
+ public ApplicationsRequest setPortfolio(String portfolio) {
+ this.portfolio = portfolio;
+ return this;
+ }
+
+ public String getPortfolio() {
+ return portfolio;
+ }
+}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/CreateRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/CreateRequest.java
index b97a6d99b58..bd0afb8dd46 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/CreateRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/CreateRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
@@ -33,7 +34,7 @@ public class CreateRequest {
private String description;
private String key;
private String name;
- private String qualifier;
+ private String parent;
private String visibility;
/**
@@ -71,21 +72,14 @@ public class CreateRequest {
}
/**
- * Possible values:
- * <ul>
- * <li>"VW"</li>
- * <li>"APP"</li>
- * </ul>
- * @deprecated since 7.3
*/
- @Deprecated
- public CreateRequest setQualifier(String qualifier) {
- this.qualifier = qualifier;
+ public CreateRequest setParent(String parent) {
+ this.parent = parent;
return this;
}
- public String getQualifier() {
- return qualifier;
+ public String getParent() {
+ return parent;
}
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/DefineRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/DefineRequest.java
index 4455ec35956..24a2b4e6f48 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/DefineRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/DefineRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/DeleteRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/DeleteRequest.java
index c90591647c3..ea85b82c59a 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/DeleteRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/DeleteRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/LocalViewsRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/LocalViewsRequest.java
index 322efcaeaed..4217d6c74ce 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/LocalViewsRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/LocalViewsRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/MoveOptionsRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/MoveOptionsRequest.java
index 508d2e2dd17..77894665f46 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/MoveOptionsRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/MoveOptionsRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/MoveRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/MoveRequest.java
index 94fffc27878..aa9d72c5dec 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/MoveRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/MoveRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/PortfoliosRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/PortfoliosRequest.java
new file mode 100644
index 00000000000..05ba10ce2ae
--- /dev/null
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/PortfoliosRequest.java
@@ -0,0 +1,47 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2021 SonarSource SA
+ * mailto:info AT sonarsource DOT com
+ *
+ * This program 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.
+ *
+ * This program 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.
+ */
+package org.sonarqube.ws.client.views;
+
+import java.util.List;
+import javax.annotation.Generated;
+
+/**
+ * This is part of the internal API.
+ * This is a POST request.
+ * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/portfolios">Further information about this action online (including a response example)</a>
+ * @since 9.3
+ */
+@Generated("sonar-ws-generator")
+public class PortfoliosRequest {
+
+ private String portfolio;
+
+ /**
+ * This is a mandatory parameter.
+ */
+ public PortfoliosRequest setPortfolio(String portfolio) {
+ this.portfolio = portfolio;
+ return this;
+ }
+
+ public String getPortfolio() {
+ return portfolio;
+ }
+}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ProjectsRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ProjectsRequest.java
index 3db2be0edda..8f928060ac2 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ProjectsRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ProjectsRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RefreshRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RefreshRequest.java
index d7273aaade1..adafb02e5c6 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RefreshRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RefreshRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RemoveApplicationRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RemoveApplicationRequest.java
new file mode 100644
index 00000000000..ebfb40559d0
--- /dev/null
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RemoveApplicationRequest.java
@@ -0,0 +1,60 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2021 SonarSource SA
+ * mailto:info AT sonarsource DOT com
+ *
+ * This program 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.
+ *
+ * This program 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.
+ */
+package org.sonarqube.ws.client.views;
+
+import java.util.List;
+import javax.annotation.Generated;
+
+/**
+ * This is part of the internal API.
+ * This is a POST request.
+ * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/remove_application">Further information about this action online (including a response example)</a>
+ * @since 9.3
+ */
+@Generated("sonar-ws-generator")
+public class RemoveApplicationRequest {
+
+ private String application;
+ private String portfolio;
+
+ /**
+ * This is a mandatory parameter.
+ */
+ public RemoveApplicationRequest setApplication(String application) {
+ this.application = application;
+ return this;
+ }
+
+ public String getApplication() {
+ return application;
+ }
+
+ /**
+ * This is a mandatory parameter.
+ */
+ public RemoveApplicationRequest setPortfolio(String portfolio) {
+ this.portfolio = portfolio;
+ return this;
+ }
+
+ public String getPortfolio() {
+ return portfolio;
+ }
+}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RemovePortfolioRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RemovePortfolioRequest.java
new file mode 100644
index 00000000000..3f0cc974ccd
--- /dev/null
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RemovePortfolioRequest.java
@@ -0,0 +1,60 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2021 SonarSource SA
+ * mailto:info AT sonarsource DOT com
+ *
+ * This program 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.
+ *
+ * This program 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.
+ */
+package org.sonarqube.ws.client.views;
+
+import java.util.List;
+import javax.annotation.Generated;
+
+/**
+ * This is part of the internal API.
+ * This is a POST request.
+ * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/remove_portfolio">Further information about this action online (including a response example)</a>
+ * @since 9.3
+ */
+@Generated("sonar-ws-generator")
+public class RemovePortfolioRequest {
+
+ private String portfolio;
+ private String reference;
+
+ /**
+ * This is a mandatory parameter.
+ */
+ public RemovePortfolioRequest setPortfolio(String portfolio) {
+ this.portfolio = portfolio;
+ return this;
+ }
+
+ public String getPortfolio() {
+ return portfolio;
+ }
+
+ /**
+ * This is a mandatory parameter.
+ */
+ public RemovePortfolioRequest setReference(String reference) {
+ this.reference = reference;
+ return this;
+ }
+
+ public String getReference() {
+ return reference;
+ }
+}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RemoveProjectBranchRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RemoveProjectBranchRequest.java
index c807a8b1d96..a94bd79f0fd 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RemoveProjectBranchRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RemoveProjectBranchRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RemoveProjectRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RemoveProjectRequest.java
index 7e69a10bb3d..1729a3890bb 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RemoveProjectRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RemoveProjectRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SearchRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SearchRequest.java
index ae9f2d4e4ee..634dc0fd44a 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SearchRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SearchRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetManualModeRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetManualModeRequest.java
index 6dc57262de3..d33c1b14d60 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetManualModeRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetManualModeRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
@@ -43,5 +44,4 @@ public class SetManualModeRequest {
public String getPortfolio() {
return portfolio;
}
-
}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetNoneModeRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetNoneModeRequest.java
index b0582ae231d..f2745488d09 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetNoneModeRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetNoneModeRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
@@ -43,5 +44,4 @@ public class SetNoneModeRequest {
public String getPortfolio() {
return portfolio;
}
-
}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetRegexpModeRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetRegexpModeRequest.java
index 5ff689812b4..3465903b673 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetRegexpModeRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetRegexpModeRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetRemainingProjectsModeRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetRemainingProjectsModeRequest.java
index c4ff5c99b26..72405da1bad 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetRemainingProjectsModeRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetRemainingProjectsModeRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ShowRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ShowRequest.java
index 30fdbacff87..b7eecda88f1 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ShowRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ShowRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/UpdateRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/UpdateRequest.java
index 12bc6816c93..afa5a700ea0 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/UpdateRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/UpdateRequest.java
@@ -19,6 +19,7 @@
*/
package org.sonarqube.ws.client.views;
+import java.util.List;
import javax.annotation.Generated;
/**
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ViewsService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ViewsService.java
index 9ab8d60c5c2..1ad1d8636ed 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ViewsService.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ViewsService.java
@@ -41,9 +41,27 @@ public class ViewsService extends BaseService {
*
* This is part of the internal API.
* This is a POST request.
+ * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/add_application">Further information about this action online (including a response example)</a>
+ * @since 9.3
+ */
+ public void addApplication(AddApplicationRequest request) {
+ call(
+ new PostRequest(path("add_application"))
+ .setParam("application", request.getApplication())
+ .setParam("portfolio", request.getPortfolio())
+ .setMediaType(MediaTypes.JSON)
+ ).content();
+ }
+
+ /**
+ *
+ * This is part of the internal API.
+ * This is a POST request.
* @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/add_local_view">Further information about this action online (including a response example)</a>
* @since 1.0
+ * @deprecated since 9.3
*/
+ @Deprecated
public void addLocalView(AddLocalViewRequest request) {
call(
new PostRequest(path("add_local_view"))
@@ -57,6 +75,22 @@ public class ViewsService extends BaseService {
*
* This is part of the internal API.
* This is a POST request.
+ * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/add_portfolio">Further information about this action online (including a response example)</a>
+ * @since 9.3
+ */
+ public void addPortfolio(AddPortfolioRequest request) {
+ call(
+ new PostRequest(path("add_portfolio"))
+ .setParam("portfolio", request.getPortfolio())
+ .setParam("reference", request.getReference())
+ .setMediaType(MediaTypes.JSON)
+ ).content();
+ }
+
+ /**
+ *
+ * This is part of the internal API.
+ * This is a POST request.
* @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/add_project">Further information about this action online (including a response example)</a>
* @since 1.0
*/
@@ -92,7 +126,9 @@ public class ViewsService extends BaseService {
* This is a POST request.
* @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/add_sub_view">Further information about this action online (including a response example)</a>
* @since 1.0
+ * @deprecated since 9.3
*/
+ @Deprecated
public void addSubView(AddSubViewRequest request) {
call(
new PostRequest(path("add_sub_view"))
@@ -107,6 +143,21 @@ public class ViewsService extends BaseService {
/**
*
* This is part of the internal API.
+ * This is a GET request.
+ * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/applications">Further information about this action online (including a response example)</a>
+ * @since 9.3
+ */
+ public String applications(ApplicationsRequest request) {
+ return call(
+ new GetRequest(path("applications"))
+ .setParam("portfolio", request.getPortfolio())
+ .setMediaType(MediaTypes.JSON)
+ ).content();
+ }
+
+ /**
+ *
+ * This is part of the internal API.
* This is a POST request.
* @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/create">Further information about this action online (including a response example)</a>
* @since 1.0
@@ -117,7 +168,7 @@ public class ViewsService extends BaseService {
.setParam("description", request.getDescription())
.setParam("key", request.getKey())
.setParam("name", request.getName())
- .setParam("qualifier", request.getQualifier())
+ .setParam("parent", request.getParent())
.setParam("visibility", request.getVisibility())
.setMediaType(MediaTypes.JSON)
).content();
@@ -191,7 +242,9 @@ public class ViewsService extends BaseService {
* This is a GET request.
* @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/local_views">Further information about this action online (including a response example)</a>
* @since 1.0
+ * @deprecated since 9.3
*/
+ @Deprecated
public String localViews(LocalViewsRequest request) {
return call(
new GetRequest(path("local_views"))
@@ -235,6 +288,21 @@ public class ViewsService extends BaseService {
*
* This is part of the internal API.
* This is a GET request.
+ * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/portfolios">Further information about this action online (including a response example)</a>
+ * @since 9.3
+ */
+ public String portfolios(PortfoliosRequest request) {
+ return call(
+ new GetRequest(path("portfolios"))
+ .setParam("portfolio", request.getPortfolio())
+ .setMediaType(MediaTypes.JSON)
+ ).content();
+ }
+
+ /**
+ *
+ * This is part of the internal API.
+ * This is a GET request.
* @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/projects">Further information about this action online (including a response example)</a>
* @since 1.0
*/
@@ -269,6 +337,38 @@ public class ViewsService extends BaseService {
*
* This is part of the internal API.
* This is a POST request.
+ * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/remove_application">Further information about this action online (including a response example)</a>
+ * @since 9.3
+ */
+ public void removeApplication(RemoveApplicationRequest request) {
+ call(
+ new PostRequest(path("remove_application"))
+ .setParam("application", request.getApplication())
+ .setParam("portfolio", request.getPortfolio())
+ .setMediaType(MediaTypes.JSON)
+ ).content();
+ }
+
+ /**
+ *
+ * This is part of the internal API.
+ * This is a POST request.
+ * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/remove_portfolio">Further information about this action online (including a response example)</a>
+ * @since 9.3
+ */
+ public void removePortfolio(RemovePortfolioRequest request) {
+ call(
+ new PostRequest(path("remove_portfolio"))
+ .setParam("portfolio", request.getPortfolio())
+ .setParam("reference", request.getReference())
+ .setMediaType(MediaTypes.JSON)
+ ).content();
+ }
+
+ /**
+ *
+ * This is part of the internal API.
+ * This is a POST request.
* @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/remove_project">Further information about this action online (including a response example)</a>
* @since 1.0
*/
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/package-info.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/package-info.java
index fcafa096735..f0eb302e647 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/package-info.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/package-info.java
@@ -21,6 +21,6 @@
@Generated("sonar-ws-generator")
package org.sonarqube.ws.client.views;
-import javax.annotation.Generated;
import javax.annotation.ParametersAreNonnullByDefault;
+import javax.annotation.Generated;