aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorBelen Pruvost <belen.pruvost@sonarsource.com>2021-12-01 20:14:30 +0100
committersonartech <sonartech@sonarsource.com>2021-12-03 20:03:33 +0000
commit63cfc466262815718d808f211ec16427d5c60649 (patch)
tree2747094f83e7794683330ff4c49df0f2b0de3a25 /sonar-ws
parent8d5df5c6b16493d1ecc8f9faae5925460b18b325 (diff)
downloadsonarqube-63cfc466262815718d808f211ec16427d5c60649.tar.gz
sonarqube-63cfc466262815718d808f211ec16427d5c60649.zip
SONAR-15702 - Backend Integration Tests
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/ApplicationStatusRequest.java56
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/QualitygatesService.java26
2 files changed, 76 insertions, 6 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/ApplicationStatusRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/ApplicationStatusRequest.java
new file mode 100644
index 00000000000..fc79f3f2213
--- /dev/null
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/ApplicationStatusRequest.java
@@ -0,0 +1,56 @@
+/*
+ * 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.qualitygates;
+
+import javax.annotation.Generated;
+
+/**
+ * This is part of the internal API.
+ * This is a GET request.
+ * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualitygates/application_status">Further information about this action online (including a response example)</a>
+ * @since 2.0
+ */
+@Generated("sonar-ws-generator")
+public class ApplicationStatusRequest {
+
+ private String application;
+ private String branch;
+
+ /**
+ * Example value: "my_application"
+ */
+ public ApplicationStatusRequest setApplication(String application) {
+ this.application = application;
+ return this;
+ }
+
+ public String getApplication() {
+ return application;
+ }
+
+ public String getBranch() {
+ return branch;
+ }
+
+ public ApplicationStatusRequest setBranch(String branch) {
+ this.branch = branch;
+ return this;
+ }
+}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/QualitygatesService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/QualitygatesService.java
index 1f7f34eb021..c445ef83f89 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/QualitygatesService.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/QualitygatesService.java
@@ -191,6 +191,20 @@ public class QualitygatesService 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/qualitygates/application_status">Further information about this action online (including a response example)</a>
+ * @since 2.0
+ */
+ public void applicationStatus(ApplicationStatusRequest request) {
+ call(
+ new GetRequest(path("application_status"))
+ .setParam("application", request.getApplication())
+ .setParam("branch", request.getBranch()));
+ }
+
+ /**
+ * This is part of the internal API.
* This is a POST request.
*
* @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualitygates/rename">Further information about this action online (including a response example)</a>
@@ -285,9 +299,9 @@ public class QualitygatesService 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/qualitygates/add_user">Further information about this action online (including a response example)</a>
* @since 9.2
*/
@@ -301,9 +315,9 @@ public class QualitygatesService 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/qualitygates/search_users">Further information about this action online (including a response example)</a>
* @since 9.2
*/
@@ -319,9 +333,9 @@ public class QualitygatesService 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/qualitygates/remove_user">Further information about this action online (including a response example)</a>
* @since 9.2
*/
@@ -335,9 +349,9 @@ public class QualitygatesService 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/qualitygates/add_group">Further information about this action online (including a response example)</a>
* @since 9.2
*/
@@ -351,9 +365,9 @@ public class QualitygatesService 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/qualitygates/search_groups">Further information about this action online (including a response example)</a>
* @since 9.2
*/
@@ -369,9 +383,9 @@ public class QualitygatesService 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/qualitygates/remove_group">Further information about this action online (including a response example)</a>
* @since 9.2
*/