diff options
author | Belen Pruvost <belen.pruvost@sonarsource.com> | 2020-11-11 11:06:12 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-11-25 20:06:26 +0000 |
commit | 347294d72cb62a0420ebd0aee2d2433f829300ed (patch) | |
tree | 874ce6368b4b7cf0df3a817adf2ceec766e39499 /sonar-ws/src/main/java/org/sonarqube/ws/client/almintegrations | |
parent | 7c31fe04f91c65bb44bb6593f4568ff92b05d3b8 (diff) | |
download | sonarqube-347294d72cb62a0420ebd0aee2d2433f829300ed.tar.gz sonarqube-347294d72cb62a0420ebd0aee2d2433f829300ed.zip |
SONAR-14057 list ado projects
Diffstat (limited to 'sonar-ws/src/main/java/org/sonarqube/ws/client/almintegrations')
2 files changed, 58 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/almintegrations/AlmIntegrationsService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/almintegrations/AlmIntegrationsService.java index f8832483ca1..cc5e31f1730 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/almintegrations/AlmIntegrationsService.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/almintegrations/AlmIntegrationsService.java @@ -105,6 +105,21 @@ public class AlmIntegrationsService 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/alm_integrations/list_azure_projects">Further information about this action online (including a response example)</a> + * @since 8.2 + */ + public AlmIntegrations.ListAzureProjectsWsResponse listAzureProjects(ListAzureProjectsRequest request) { + return call( + new GetRequest(path("list_azure_projects")) + .setParam("almSetting", request.getAlmSetting()) + .setMediaType(MediaTypes.JSON), + AlmIntegrations.ListAzureProjectsWsResponse.parser()); + } + + /** + * + * This is part of the internal API. + * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/alm_integrations/list_bitbucketserver_projects">Further information about this action online (including a response example)</a> * @since 8.2 */ diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/almintegrations/ListAzureProjectsRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/almintegrations/ListAzureProjectsRequest.java new file mode 100644 index 00000000000..e66848551ca --- /dev/null +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/almintegrations/ListAzureProjectsRequest.java @@ -0,0 +1,43 @@ +/* + * SonarQube + * Copyright (C) 2009-2020 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.almintegrations; + +/** + * This is part of the internal API. + * This is a POST request. + * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/alm_integrations/list_azure_projects">Further information about this action online (including a response example)</a> + * @since 8.6 + */ +public class ListAzureProjectsRequest { + + private String almSetting; + + /** + * This is a mandatory parameter. + */ + public ListAzureProjectsRequest setAlmSetting(String almSetting) { + this.almSetting = almSetting; + return this; + } + + public String getAlmSetting() { + return almSetting; + } +} |