aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src/main
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2018-04-18 18:26:08 +0200
committerSonarTech <sonartech@sonarsource.com>2018-05-10 20:20:53 +0200
commitbaa5c72513957ca1600d10f2508378239c52bf29 (patch)
tree3a1e9e9fc5b893684b5ba2d026bc960b708de564 /sonar-ws/src/main
parentaf37124fb9fc67d55fe76bb648dbb435227aacf6 (diff)
downloadsonarqube-baa5c72513957ca1600d10f2508378239c52bf29.tar.gz
sonarqube-baa5c72513957ca1600d10f2508378239c52bf29.zip
SONAR-10592 add WS api/ce/pause and api/ce/resume
Diffstat (limited to 'sonar-ws/src/main')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/ce/CeService.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/CeService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/CeService.java
index aa49783c8cc..c02981e25f0 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/CeService.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/CeService.java
@@ -128,6 +128,7 @@ public class CeService extends BaseService {
}
/**
+ *
* This is a GET request.
* @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/info">Further information about this action online (including a response example)</a>
* @since 7.2
@@ -139,6 +140,30 @@ public class CeService extends BaseService {
}
/**
+ * This is a POST request.
+ * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/pause">Further information about this action online (including a response example)</a>
+ * @since 7.2
+ */
+ public void pause() {
+ call(
+ new PostRequest(path("pause"))
+ .setMediaType(MediaTypes.JSON)
+ ).content();
+ }
+
+ /**
+ * This is a POST request.
+ * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/resume">Further information about this action online (including a response example)</a>
+ * @since 7.2
+ */
+ public void resume() {
+ call(
+ new PostRequest(path("resume"))
+ .setMediaType(MediaTypes.JSON)
+ ).content();
+ }
+
+ /**
*
* This is part of the internal API.
* This is a POST request.