diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2018-04-18 18:26:08 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-05-10 20:20:53 +0200 |
commit | baa5c72513957ca1600d10f2508378239c52bf29 (patch) | |
tree | 3a1e9e9fc5b893684b5ba2d026bc960b708de564 /sonar-ws/src/main | |
parent | af37124fb9fc67d55fe76bb648dbb435227aacf6 (diff) | |
download | sonarqube-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.java | 25 |
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. |