diff options
Diffstat (limited to 'sonar-ws')
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java index dca4a15cbea..27cc69dbb3a 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java @@ -22,6 +22,7 @@ package org.sonarqube.ws.client.projects; import java.util.stream.Collectors; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; +import org.sonarqube.ws.Projects; import org.sonarqube.ws.Projects.CreateWsResponse; import org.sonarqube.ws.Projects.SearchMyProjectsWsResponse; import org.sonarqube.ws.Projects.SearchWsResponse; @@ -97,6 +98,19 @@ public class ProjectsService 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/projects/license_usage">Further information about this action online (including a response example)</a> + * @since 9.4 + */ + public String licenseUsage() { + GetRequest getRequest = new GetRequest(path("license_usage")) + .setMediaType(MediaTypes.CSV); + return call(getRequest).content(); + } + + /** + * + * This is part of the internal API. + * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/projects/search">Further information about this action online (including a response example)</a> * @since 6.3 */ |