From 8f7ab01f946b6e35bb00c705ee8f7bf4e61531d3 Mon Sep 17 00:00:00 2001 From: Belen Pruvost Date: Wed, 4 Nov 2020 18:29:42 +0200 Subject: [PATCH] SONAR-14058 add url to update_azure endpoint --- .../ws/client/almsettings/AlmSettingsService.java | 1 + .../ws/client/almsettings/UpdateAzureRequest.java | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java index 4eb47a12895..032882f0418 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java @@ -255,6 +255,7 @@ public class AlmSettingsService extends BaseService { .setParam("key", request.getKey()) .setParam("newKey", request.getNewKey()) .setParam("personalAccessToken", request.getPersonalAccessToken()) + .setParam("url", request.getUrl()) .setMediaType(MediaTypes.JSON)).content(); } diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/UpdateAzureRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/UpdateAzureRequest.java index 1526194c49a..8c406f89ac8 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/UpdateAzureRequest.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/UpdateAzureRequest.java @@ -32,6 +32,7 @@ public class UpdateAzureRequest { private String key; private String newKey; private String personalAccessToken; + private String url; public String getKey() { return key; @@ -68,4 +69,16 @@ public class UpdateAzureRequest { return this; } + public String getUrl() { + return url; + } + + /** + * This is a mandatory parameter. + */ + public UpdateAzureRequest setUrl(String url) { + this.url = url; + return this; + } + } -- 2.39.5