diff options
author | Belen Pruvost <belen.pruvost@sonarsource.com> | 2020-11-04 18:29:42 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-11-25 20:06:25 +0000 |
commit | 8f7ab01f946b6e35bb00c705ee8f7bf4e61531d3 (patch) | |
tree | 09fa290dc68588c32329d55f674580afa03fc24b /sonar-ws/src/main | |
parent | b04cd069e32d9ad87d4a5b64f62bcae316db103e (diff) | |
download | sonarqube-8f7ab01f946b6e35bb00c705ee8f7bf4e61531d3.tar.gz sonarqube-8f7ab01f946b6e35bb00c705ee8f7bf4e61531d3.zip |
SONAR-14058 add url to update_azure endpoint
Diffstat (limited to 'sonar-ws/src/main')
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java | 1 | ||||
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/UpdateAzureRequest.java | 13 |
2 files changed, 14 insertions, 0 deletions
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; + } + } |