repo
stringlengths
1
191
file
stringlengths
23
351
code
stringlengths
0
5.32M
file_length
int64
0
5.32M
avg_line_length
float64
0
2.9k
max_line_length
int64
0
288k
extension_type
stringclasses
1 value
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/applications/DeleteBranchRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.applications; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/applications/delete_branch">Further information about this action online (including a response example)</a> * @since 7.3 */ @Generated("sonar-ws-generator") public class DeleteBranchRequest { private String application; private String branch; /** * This is a mandatory parameter. */ public DeleteBranchRequest setApplication(String application) { this.application = application; return this; } public String getApplication() { return application; } /** * This is a mandatory parameter. */ public DeleteBranchRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } }
1,754
28.25
173
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/applications/DeleteRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.applications; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/applications/delete">Further information about this action online (including a response example)</a> * @since 7.3 */ @Generated("sonar-ws-generator") public class DeleteRequest { private String application; /** * This is a mandatory parameter. */ public DeleteRequest setApplication(String application) { this.application = application; return this; } public String getApplication() { return application; } }
1,504
31.021277
166
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/applications/RemoveProjectRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.applications; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/applications/remove_project">Further information about this action online (including a response example)</a> * @since 7.3 */ @Generated("sonar-ws-generator") public class RemoveProjectRequest { private String application; private String project; /** * This is a mandatory parameter. */ public RemoveProjectRequest setApplication(String application) { this.application = application; return this; } public String getApplication() { return application; } /** * This is a mandatory parameter. * Example value: "my_project" */ public RemoveProjectRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } }
1,798
28.491803
174
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/applications/SearchProjectsRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.applications; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/applications/search_projects">Further information about this action online (including a response example)</a> * @since 7.3 */ @Generated("sonar-ws-generator") public class SearchProjectsRequest { private String application; private String p; private String ps; private String q; private String selected; /** * This is a mandatory parameter. * Example value: "my_application" */ public SearchProjectsRequest setApplication(String application) { this.application = application; return this; } public String getApplication() { return application; } /** * Example value: "42" */ public SearchProjectsRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "20" */ public SearchProjectsRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Example value: "project" */ public SearchProjectsRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * Possible values: * <ul> * <li>"all"</li> * <li>"deselected"</li> * <li>"selected"</li> * </ul> */ public SearchProjectsRequest setSelected(String selected) { this.selected = selected; return this; } public String getSelected() { return selected; } }
2,471
22.542857
175
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/applications/ShowLeakRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.applications; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/applications/show_leak">Further information about this action online (including a response example)</a> * @since 7.3 */ @Generated("sonar-ws-generator") public class ShowLeakRequest { private String application; private String branch; /** * This is a mandatory parameter. * Example value: "my_application" */ public ShowLeakRequest setApplication(String application) { this.application = application; return this; } public String getApplication() { return application; } /** * Example value: "branch-2.0" */ public ShowLeakRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } }
1,772
28.065574
169
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/applications/ShowRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.applications; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/applications/show">Further information about this action online (including a response example)</a> * @since 7.3 */ @Generated("sonar-ws-generator") public class ShowRequest { private String application; private String branch; /** * This is a mandatory parameter. * Example value: "my_application" */ public ShowRequest setApplication(String application) { this.application = application; return this; } public String getApplication() { return application; } /** * Example value: "branch-2.0" */ public ShowRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } }
1,755
27.786885
164
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/applications/UpdateBranchRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.applications; import java.util.List; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/applications/update_branch">Further information about this action online (including a response example)</a> * @since 7.3 */ @Generated("sonar-ws-generator") public class UpdateBranchRequest { private String application; private String branch; private String name; private List<String> projects; private List<String> projectBranches; /** * This is a mandatory parameter. * Example value: "my_application" */ public UpdateBranchRequest setApplication(String application) { this.application = application; return this; } public String getApplication() { return application; } /** * This is a mandatory parameter. * Example value: "branch-2.0" */ public UpdateBranchRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * This is a mandatory parameter. */ public UpdateBranchRequest setName(String name) { this.name = name; return this; } public String getName() { return name; } /** * This is a mandatory parameter. * Example value: "project=firstProjectKey&project=secondProjectKey&project=thirdProjectKey" */ public UpdateBranchRequest setProject(List<String> projects) { this.projects = projects; return this; } public List<String> getProject() { return projects; } /** * This is a mandatory parameter. * Example value: "projectBranch=&projectBranch=branch-2.0&projectBranch=branch-2.1" */ public UpdateBranchRequest setProjectBranch(List<String> projectBranches) { this.projectBranches = projectBranches; return this; } public List<String> getProjectBranch() { return projectBranches; } }
2,815
26.076923
173
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/applications/UpdateRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.applications; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/applications/update">Further information about this action online (including a response example)</a> * @since 7.3 */ @Generated("sonar-ws-generator") public class UpdateRequest { private String application; private String description; private String name; /** * This is a mandatory parameter. */ public UpdateRequest setApplication(String application) { this.application = application; return this; } public String getApplication() { return application; } /** */ public UpdateRequest setDescription(String description) { this.description = description; return this; } public String getDescription() { return description; } /** * This is a mandatory parameter. */ public UpdateRequest setName(String name) { this.name = name; return this; } public String getName() { return name; } }
1,939
25.944444
166
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/applications/package-info.java
/* * SonarQube * Copyright (C) 2009-2023 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. */ @ParametersAreNonnullByDefault @Generated("sonar-ws-generator") package org.sonarqube.ws.client.applications; import javax.annotation.Generated; import javax.annotation.ParametersAreNonnullByDefault;
1,045
37.740741
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/authentication/AuthenticationService.java
/* * SonarQube * Copyright (C) 2009-2023 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.authentication; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.client.BaseService; import org.sonarqube.ws.client.GetRequest; import org.sonarqube.ws.client.PostRequest; import org.sonarqube.ws.client.WsConnector; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/authentication">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class AuthenticationService extends BaseService { public AuthenticationService(WsConnector wsConnector) { super(wsConnector, "api/authentication"); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/authentication/login">Further information about this action online (including a response example)</a> * @since 6.0 */ public void login(LoginRequest request) { call( new PostRequest(path("login")) .setParam("login", request.getLogin()) .setParam("password", request.getPassword()) .setMediaType(MediaTypes.JSON) ).content(); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/authentication/logout">Further information about this action online (including a response example)</a> * @since 6.3 */ public void logout() { call( new PostRequest(path("logout")) .setMediaType(MediaTypes.JSON) ).content(); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/authentication/validate">Further information about this action online (including a response example)</a> * @since 3.3 */ public String validate() { return call( new GetRequest(path("validate")) .setMediaType(MediaTypes.JSON) ).content(); } }
2,838
33.204819
172
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/authentication/LoginRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.authentication; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/authentication/login">Further information about this action online (including a response example)</a> * @since 6.0 */ @Generated("sonar-ws-generator") public class LoginRequest { private String login; private String password; /** * This is a mandatory parameter. */ public LoginRequest setLogin(String login) { this.login = login; return this; } public String getLogin() { return login; } /** * This is a mandatory parameter. */ public LoginRequest setPassword(String password) { this.password = password; return this; } public String getPassword() { return password; } }
1,701
27.366667
167
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/authentication/package-info.java
/* * SonarQube * Copyright (C) 2009-2023 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. */ @ParametersAreNonnullByDefault @Generated("sonar-ws-generator") package org.sonarqube.ws.client.authentication; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,047
37.814815
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/batch/BatchService.java
/* * SonarQube * Copyright (C) 2009-2023 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.batch; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.client.BaseService; import org.sonarqube.ws.client.GetRequest; import org.sonarqube.ws.client.WsConnector; import org.sonarqube.ws.Batch.WsProjectResponse; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/batch">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class BatchService extends BaseService { public BatchService(WsConnector wsConnector) { super(wsConnector, "batch"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/batch/file">Further information about this action online (including a response example)</a> * @since 4.4 */ public String file(FileRequest request) { return call( new GetRequest(path("file")) .setParam("name", request.getName()) .setMediaType(MediaTypes.JSON) ).content(); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/batch/index">Further information about this action online (including a response example)</a> * @since 4.4 */ public String index() { return call( new GetRequest(path("index")) .setMediaType(MediaTypes.JSON) ).content(); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/batch/issues">Further information about this action online (including a response example)</a> * @since 5.1 */ public String issues(IssuesRequest request) { return call( new GetRequest(path("issues")) .setParam("branch", request.getBranch()) .setParam("key", request.getKey()) .setMediaType(MediaTypes.JSON) ).content(); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/batch/project">Further information about this action online (including a response example)</a> * @since 4.5 */ public WsProjectResponse project(ProjectRequest request) { return call( new GetRequest(path("project")) .setParam("branch", request.getBranch()) .setParam("issues_mode", request.getIssuesMode()) .setParam("key", request.getKey()) .setParam("profile", request.getProfile()), WsProjectResponse.parser()); } }
3,427
32.940594
158
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/batch/FileRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.batch; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/batch/file">Further information about this action online (including a response example)</a> * @since 4.4 */ @Generated("sonar-ws-generator") public class FileRequest { private String name; /** * Example value: "batch-library-2.3.jar" */ public FileRequest setName(String name) { this.name = name; return this; } public String getName() { return name; } }
1,439
29.638298
153
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/batch/IssuesRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.batch; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/batch/issues">Further information about this action online (including a response example)</a> * @since 5.1 */ @Generated("sonar-ws-generator") public class IssuesRequest { private String branch; private String key; /** * Example value: "feature/my_branch" */ public IssuesRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * This is a mandatory parameter. * Example value: "my_project" */ public IssuesRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } }
1,692
26.754098
155
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/batch/ProjectRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.batch; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/batch/project">Further information about this action online (including a response example)</a> * @since 4.5 */ @Generated("sonar-ws-generator") public class ProjectRequest { private String branch; private String issuesMode; private String key; private String profile; /** * Example value: "feature/my_branch" */ public ProjectRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public ProjectRequest setIssuesMode(String issuesMode) { this.issuesMode = issuesMode; return this; } public String getIssuesMode() { return issuesMode; } /** * This is a mandatory parameter. * Example value: "my_project" */ public ProjectRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } /** * Example value: "SonarQube Way" */ public ProjectRequest setProfile(String profile) { this.profile = profile; return this; } public String getProfile() { return profile; } }
2,280
23.526882
156
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/batch/package-info.java
/* * SonarQube * Copyright (C) 2009-2023 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. */ @ParametersAreNonnullByDefault @Generated("sonar-ws-generator") package org.sonarqube.ws.client.batch; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,038
37.481481
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/ActivityRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.ce; import java.util.List; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/activity">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class ActivityRequest { private String component; private String maxExecutedAt; private String minSubmittedAt; private String onlyCurrents; private String p; private String ps; private String q; private List<String> status; private String type; /** * Example value: "sample:src/main/xoo/sample/Sample2.xoo" */ public ActivityRequest setComponent(String component) { this.component = component; return this; } public String getComponent() { return component; } /** * Example value: "2017-10-19T13:00:00+0200" */ public ActivityRequest setMaxExecutedAt(String maxExecutedAt) { this.maxExecutedAt = maxExecutedAt; return this; } public String getMaxExecutedAt() { return maxExecutedAt; } /** * Example value: "2017-10-19T13:00:00+0200" */ public ActivityRequest setMinSubmittedAt(String minSubmittedAt) { this.minSubmittedAt = minSubmittedAt; return this; } public String getMinSubmittedAt() { return minSubmittedAt; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public ActivityRequest setOnlyCurrents(String onlyCurrents) { this.onlyCurrents = onlyCurrents; return this; } public String getOnlyCurrents() { return onlyCurrents; } /** * Example value: "1" */ public ActivityRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "20" */ public ActivityRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Example value: "Apache" */ public ActivityRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * Example value: "IN_PROGRESS,SUCCESS" * Possible values: * <ul> * <li>"SUCCESS"</li> * <li>"FAILED"</li> * <li>"CANCELED"</li> * <li>"PENDING"</li> * <li>"IN_PROGRESS"</li> * </ul> */ public ActivityRequest setStatus(List<String> status) { this.status = status; return this; } public List<String> getStatus() { return status; } /** * Example value: "REPORT" * Possible values: * <ul> * <li>"REPORT"</li> * </ul> */ public ActivityRequest setType(String type) { this.type = type; return this; } public String getType() { return type; } }
3,726
20.923529
158
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/ActivityStatusRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.ce; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/activity_status">Further information about this action online (including a response example)</a> * @since 5.5 */ @Generated("sonar-ws-generator") public class ActivityStatusRequest { private String component; /** * Example value: "my_project" */ public ActivityStatusRequest setComponent(String component) { this.component = component; return this; } public String getComponent() { return component; } }
1,492
30.765957
165
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/AnalysisStatusRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.ce; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/analysis_status">Further information about this action online (including a response example)</a> * @since 7.4 */ @Generated("sonar-ws-generator") public class AnalysisStatusRequest { private String branch; private String component; private String pullRequest; /** * This is part of the internal API. * Example value: "feature/my_branch" */ public AnalysisStatusRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * This is a mandatory parameter. * Example value: "my_project" */ public AnalysisStatusRequest setComponent(String component) { this.component = component; return this; } public String getComponent() { return component; } /** * This is part of the internal API. * Example value: "5461" */ public AnalysisStatusRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } }
2,102
26.671053
165
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/CancelRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.ce; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/cancel">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class CancelRequest { private String id; /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public CancelRequest setId(String id) { this.id = id; return this; } public String getId() { return id; } }
1,464
29.520833
156
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/CeService.java
/* * SonarQube * Copyright (C) 2009-2023 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.ce; import java.util.stream.Collectors; import javax.annotation.Generated; import org.sonarqube.ws.Ce.ActivityResponse; import org.sonarqube.ws.Ce.ActivityStatusWsResponse; import org.sonarqube.ws.Ce.AnalysisStatusWsResponse; import org.sonarqube.ws.Ce.ComponentResponse; import org.sonarqube.ws.Ce.InfoWsResponse; import org.sonarqube.ws.Ce.SubmitResponse; import org.sonarqube.ws.Ce.TaskResponse; import org.sonarqube.ws.Ce.TaskTypesWsResponse; import org.sonarqube.ws.Ce.WorkerCountResponse; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.client.BaseService; import org.sonarqube.ws.client.GetRequest; import org.sonarqube.ws.client.PostRequest; import org.sonarqube.ws.client.WsConnector; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class CeService extends BaseService { public CeService(WsConnector wsConnector) { super(wsConnector, "api/ce"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/activity">Further information about this action online (including a response example)</a> * @since 5.2 */ public ActivityResponse activity(ActivityRequest request) { return call( new GetRequest(path("activity")) .setParam("component", request.getComponent()) .setParam("maxExecutedAt", request.getMaxExecutedAt()) .setParam("minSubmittedAt", request.getMinSubmittedAt()) .setParam("onlyCurrents", request.getOnlyCurrents()) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("q", request.getQ()) .setParam("status", request.getStatus() == null ? null : request.getStatus().stream().collect(Collectors.joining(","))) .setParam("type", request.getType()), ActivityResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/activity_status">Further information about this action online (including a response example)</a> * @since 5.5 */ public ActivityStatusWsResponse activityStatus(ActivityStatusRequest request) { return call( new GetRequest(path("activity_status")) .setParam("component", request.getComponent()), ActivityStatusWsResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/analysis_status">Further information about this action online (including a response example)</a> * @since 7.4 */ public AnalysisStatusWsResponse analysisStatus(AnalysisStatusRequest request) { return call( new GetRequest(path("analysis_status")) .setParam("branch", request.getBranch()) .setParam("component", request.getComponent()) .setParam("pullRequest", request.getPullRequest()), AnalysisStatusWsResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/cancel">Further information about this action online (including a response example)</a> * @since 5.2 */ public void cancel(CancelRequest request) { call( new PostRequest(path("cancel")) .setParam("id", request.getId()) .setMediaType(MediaTypes.JSON)).content(); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/cancel_all">Further information about this action online (including a response example)</a> * @since 5.2 */ public void cancelAll() { call( new PostRequest(path("cancel_all")) .setMediaType(MediaTypes.JSON)).content(); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/component">Further information about this action online (including a response example)</a> * @since 5.2 */ public ComponentResponse component(ComponentRequest request) { return call( new GetRequest(path("component")) .setParam("component", request.getComponent()) .setParam("componentId", request.getComponentId()), ComponentResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/dismiss_analysis_warning">Further information about this action online (including a response example)</a> * @since 8.5 */ public void dismissAnalysisWarning(DismissAnalysisWarningRequest request) { call( new PostRequest(path("dismiss_analysis_warning")) .setParam("component", request.getComponent()) .setParam("warning", request.getWarning()) .setMediaType(MediaTypes.JSON) ).content(); } /** * * This is part of the internal API. * 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 */ public InfoWsResponse info() { return call( new GetRequest(path("info")), InfoWsResponse.parser()); } /** * * This is part of the internal API. * 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 part of the internal API. * 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. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/submit">Further information about this action online (including a response example)</a> * @since 5.2 */ public SubmitResponse submit(SubmitRequest request) { return call( new PostRequest(path("submit")) .setParam("characteristic", request.getCharacteristic()) .setParam("projectBranch", request.getProjectBranch()) .setParam("projectKey", request.getProjectKey()) .setParam("projectName", request.getProjectName()) .setParam("report", request.getReport()), SubmitResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/task">Further information about this action online (including a response example)</a> * @since 5.2 */ public TaskResponse task(TaskRequest request) { return call( new GetRequest(path("task")) .setParam("additionalFields", request.getAdditionalFields() == null ? null : request.getAdditionalFields().stream().collect(Collectors.joining(","))) .setParam("id", request.getId()), TaskResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/task_types">Further information about this action online (including a response example)</a> * @since 5.5 */ public TaskTypesWsResponse taskTypes() { return call( new GetRequest(path("task_types")), TaskTypesWsResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/worker_count">Further information about this action online (including a response example)</a> * @since 6.5 */ public WorkerCountResponse workerCount() { return call( new GetRequest(path("worker_count")), WorkerCountResponse.parser()); } }
9,225
34.898833
176
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/ComponentRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.ce; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/component">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class ComponentRequest { private String component; private String componentId; /** * Example value: "my_project" */ public ComponentRequest setComponent(String component) { this.component = component; return this; } public String getComponent() { return component; } public String getComponentId() { return componentId; } }
1,570
29.211538
159
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/DismissAnalysisWarningRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.ce; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/dismiss_analysis_warning">Further information about this action online (including a response example)</a> * @since 8.5 */ @Generated("sonar-ws-generator") public class DismissAnalysisWarningRequest { private String component; private String warning; /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public DismissAnalysisWarningRequest setComponent(String component) { this.component = component; return this; } public String getComponent() { return component; } /** * Example value: "AU-TpxcA-iU5OvuD2FLz" */ public DismissAnalysisWarningRequest setWarning(String warning) { this.warning = warning; return this; } public String getWarning() { return warning; } }
1,782
28.716667
174
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/SubmitRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.ce; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/submit">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class SubmitRequest { private String characteristic; private String projectBranch; private String projectKey; private String projectName; private String report; /** * Example value: "branchType=long" */ public SubmitRequest setCharacteristic(String characteristic) { this.characteristic = characteristic; return this; } public String getCharacteristic() { return characteristic; } /** * Example value: "branch-1.x" */ public SubmitRequest setProjectBranch(String projectBranch) { this.projectBranch = projectBranch; return this; } public String getProjectBranch() { return projectBranch; } /** * This is a mandatory parameter. * Example value: "my_project" */ public SubmitRequest setProjectKey(String projectKey) { this.projectKey = projectKey; return this; } public String getProjectKey() { return projectKey; } /** * Example value: "My Project" */ public SubmitRequest setProjectName(String projectName) { this.projectName = projectName; return this; } public String getProjectName() { return projectName; } /** * This is a mandatory parameter. */ public SubmitRequest setReport(String report) { this.report = report; return this; } public String getReport() { return report; } }
2,546
24.47
156
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/TaskRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.ce; import java.util.List; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/task">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class TaskRequest { private List<String> additionalFields; private String id; /** * Possible values: * <ul> * <li>"stacktrace"</li> * <li>"scannerContext"</li> * <li>"warnings"</li> * </ul> */ public TaskRequest setAdditionalFields(List<String> additionalFields) { this.additionalFields = additionalFields; return this; } public List<String> getAdditionalFields() { return additionalFields; } /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public TaskRequest setId(String id) { this.id = id; return this; } public String getId() { return id; } }
1,888
27.19403
154
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/package-info.java
/* * SonarQube * Copyright (C) 2009-2023 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. */ @ParametersAreNonnullByDefault @Generated("sonar-ws-generator") package org.sonarqube.ws.client.ce; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,035
37.37037
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/component/ComponentsWsParameters.java
/* * SonarQube * Copyright (C) 2009-2023 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.component; public class ComponentsWsParameters { public static final String CONTROLLER_COMPONENTS = "api/components"; // actions public static final String ACTION_SEARCH = "search"; public static final String ACTION_TREE = "tree"; public static final String ACTION_SHOW = "show"; public static final String ACTION_SEARCH_PROJECTS = "search_projects"; public static final String ACTION_SUGGESTIONS = "suggestions"; // parameters public static final String PARAM_QUALIFIERS = "qualifiers"; public static final String PARAM_STRATEGY = "strategy"; public static final String PARAM_FILTER = "filter"; public static final String PARAM_COMPONENT = "component"; public static final String PARAM_BRANCH = "branch"; public static final String PARAM_PULL_REQUEST = "pullRequest"; private ComponentsWsParameters() { // static utility class } }
1,748
37.866667
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/components/AppRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.components; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/app">Further information about this action online (including a response example)</a> * @since 4.4 */ @Generated("sonar-ws-generator") public class AppRequest { private String branch; private String component; private String pullRequest; /** * This is part of the internal API. * Example value: "feature/my_branch" */ public AppRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * Example value: "my_project" */ public AppRequest setComponent(String component) { this.component = component; return this; } public String getComponent() { return component; } /** * This is part of the internal API. * Example value: "5461" */ public AppRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } }
2,026
26.026667
161
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/components/ComponentsService.java
/* * SonarQube * Copyright (C) 2009-2023 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.components; import java.util.stream.Collectors; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.client.BaseService; import org.sonarqube.ws.client.GetRequest; import org.sonarqube.ws.client.WsConnector; import org.sonarqube.ws.Components.SearchWsResponse; import org.sonarqube.ws.Components.SearchProjectsWsResponse; import org.sonarqube.ws.Components.ShowWsResponse; import org.sonarqube.ws.Components.SuggestionsWsResponse; import org.sonarqube.ws.Components.TreeWsResponse; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class ComponentsService extends BaseService { public ComponentsService(WsConnector wsConnector) { super(wsConnector, "api/components"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/app">Further information about this action online (including a response example)</a> * @since 4.4 */ public String app(AppRequest request) { return call( new GetRequest(path("app")) .setParam("branch", request.getBranch()) .setParam("component", request.getComponent()) .setParam("pullRequest", request.getPullRequest()) .setMediaType(MediaTypes.JSON) ).content(); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/search">Further information about this action online (including a response example)</a> * @since 6.3 */ public SearchWsResponse search(SearchRequest request) { return call( new GetRequest(path("search")) .setParam("language", request.getLanguage()) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("q", request.getQ()) .setParam("qualifiers", request.getQualifiers() == null ? null : request.getQualifiers().stream().collect(Collectors.joining(","))), SearchWsResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/search_projects">Further information about this action online (including a response example)</a> * @since 6.2 */ public SearchProjectsWsResponse searchProjects(SearchProjectsRequest request) { return call( new GetRequest(path("search_projects")) .setParam("asc", request.getAsc()) .setParam("f", request.getF() == null ? null : request.getF().stream().collect(Collectors.joining(","))) .setParam("facets", request.getFacets() == null ? null : request.getFacets().stream().collect(Collectors.joining(","))) .setParam("filter", request.getFilter()) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("s", request.getS()), SearchProjectsWsResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/show">Further information about this action online (including a response example)</a> * @since 5.4 */ public ShowWsResponse show(ShowRequest request) { return call( new GetRequest(path("show")) .setParam("branch", request.getBranch()) .setParam("component", request.getComponent()) .setParam("pullRequest", request.getPullRequest()), ShowWsResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/suggestions">Further information about this action online (including a response example)</a> * @since 4.2 */ public SuggestionsWsResponse suggestions(SuggestionsRequest request) { return call( new GetRequest(path("suggestions")) .setParam("more", request.getMore()) .setParam("recentlyBrowsed", request.getRecentlyBrowsed() == null ? null : request.getRecentlyBrowsed().stream().collect(Collectors.joining(","))) .setParam("s", request.getS()), SuggestionsWsResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/tree">Further information about this action online (including a response example)</a> * @since 5.4 */ public TreeWsResponse tree(TreeRequest request) { return call( new GetRequest(path("tree")) .setParam("asc", request.getAsc()) .setParam("branch", request.getBranch()) .setParam("component", request.getComponent()) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("pullRequest", request.getPullRequest()) .setParam("q", request.getQ()) .setParam("qualifiers", request.getQualifiers() == null ? null : request.getQualifiers().stream().collect(Collectors.joining(","))) .setParam("s", request.getS() == null ? null : request.getS().stream().collect(Collectors.joining(","))) .setParam("strategy", request.getStrategy()), TreeWsResponse.parser()); } }
6,261
39.662338
175
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/components/SearchProjectsRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.components; import java.util.List; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/search_projects">Further information about this action online (including a response example)</a> * @since 6.2 */ @Generated("sonar-ws-generator") public class SearchProjectsRequest { private String asc; private List<String> f; private List<String> facets; private String filter; private String p; private String ps; private String s; /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public SearchProjectsRequest setAsc(String asc) { this.asc = asc; return this; } public String getAsc() { return asc; } /** * Possible values: * <ul> * <li>"analysisDate"</li> * <li>"leakPeriodDate"</li> * </ul> */ public SearchProjectsRequest setF(List<String> f) { this.f = f; return this; } public List<String> getF() { return f; } /** * Possible values: * <ul> * <li>"alert_status"</li> * <li>"coverage"</li> * <li>"duplicated_lines_density"</li> * <li>"languages"</li> * <li>"ncloc"</li> * <li>"new_coverage"</li> * <li>"new_duplicated_lines_density"</li> * <li>"new_lines"</li> * <li>"new_maintainability_rating"</li> * <li>"new_reliability_rating"</li> * <li>"new_security_rating"</li> * <li>"reliability_rating"</li> * <li>"security_rating"</li> * <li>"sqale_rating"</li> * <li>"tags"</li> * </ul> */ public SearchProjectsRequest setFacets(List<String> facets) { this.facets = facets; return this; } public List<String> getFacets() { return facets; } /** */ public SearchProjectsRequest setFilter(String filter) { this.filter = filter; return this; } public String getFilter() { return filter; } /** * Example value: "42" */ public SearchProjectsRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "20" */ public SearchProjectsRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Possible values: * <ul> * <li>"alert_status"</li> * <li>"analysisDate"</li> * <li>"coverage"</li> * <li>"duplicated_lines_density"</li> * <li>"lines"</li> * <li>"name"</li> * <li>"ncloc"</li> * <li>"ncloc_language_distribution"</li> * <li>"new_coverage"</li> * <li>"new_duplicated_lines_density"</li> * <li>"new_lines"</li> * <li>"new_maintainability_rating"</li> * <li>"new_reliability_rating"</li> * <li>"new_security_rating"</li> * <li>"reliability_rating"</li> * <li>"security_rating"</li> * <li>"sqale_rating"</li> * </ul> */ public SearchProjectsRequest setS(String s) { this.s = s; return this; } public String getS() { return s; } }
4,006
22.432749
173
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/components/SearchRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.components; import java.util.List; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/search">Further information about this action online (including a response example)</a> * @since 6.3 */ @Generated("sonar-ws-generator") public class SearchRequest { private String language; private String p; private String ps; private String q; private List<String> qualifiers; /** * Example value: "" */ public SearchRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return language; } /** * Example value: "42" */ public SearchRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "20" */ public SearchRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Example value: "sonar" */ public SearchRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * This is a mandatory parameter. * Possible values: * <ul> * <li>"DIR"</li> * <li>"FIL"</li> * <li>"TRK"</li> * <li>"UTS"</li> * </ul> */ public SearchRequest setQualifiers(List<String> qualifiers) { this.qualifiers = qualifiers; return this; } public List<String> getQualifiers() { return qualifiers; } }
2,438
21.794393
164
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/components/ShowRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.components; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/show">Further information about this action online (including a response example)</a> * @since 5.4 */ @Generated("sonar-ws-generator") public class ShowRequest { private String branch; private String component; private String pullRequest; /** * This is part of the internal API. * Example value: "feature/my_branch" */ public ShowRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * Example value: "my_project" */ public ShowRequest setComponent(String component) { this.component = component; return this; } public String getComponent() { return component; } /** * This is part of the internal API. * Example value: "5461" */ public ShowRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } }
2,031
26.093333
162
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/components/SuggestionsRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.components; import java.util.List; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/suggestions">Further information about this action online (including a response example)</a> * @since 4.2 */ @Generated("sonar-ws-generator") public class SuggestionsRequest { private String more; private List<String> recentlyBrowsed; private String s; /** * Possible values: * <ul> * <li>"VW"</li> * <li>"SVW"</li> * <li>"APP"</li> * <li>"TRK"</li> * <li>"FIL"</li> * <li>"UTS"</li> * </ul> */ public SuggestionsRequest setMore(String more) { this.more = more; return this; } public String getMore() { return more; } /** * Example value: "org.sonarsource:sonarqube,some.other:project" */ public SuggestionsRequest setRecentlyBrowsed(List<String> recentlyBrowsed) { this.recentlyBrowsed = recentlyBrowsed; return this; } public List<String> getRecentlyBrowsed() { return recentlyBrowsed; } /** * Example value: "sonar" */ public SuggestionsRequest setS(String s) { this.s = s; return this; } public String getS() { return s; } }
2,156
25.304878
169
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/components/TreeRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.components; import java.util.List; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/tree">Further information about this action online (including a response example)</a> * @since 5.4 */ @Generated("sonar-ws-generator") public class TreeRequest { private String asc; private String branch; private String component; private String p; private String ps; private String pullRequest; private String q; private List<String> qualifiers; private List<String> s; private String strategy; /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public TreeRequest setAsc(String asc) { this.asc = asc; return this; } public String getAsc() { return asc; } /** * This is part of the internal API. * Example value: "feature/my_branch" */ public TreeRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * Example value: "my_project" */ public TreeRequest setComponent(String component) { this.component = component; return this; } public String getComponent() { return component; } /** * Example value: "42" */ public TreeRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "20" */ public TreeRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * This is part of the internal API. * Example value: "5461" */ public TreeRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } /** * Example value: "FILE_NAM" */ public TreeRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * Possible values: * <ul> * <li>"DIR"</li> * <li>"FIL"</li> * <li>"TRK"</li> * <li>"UTS"</li> * </ul> */ public TreeRequest setQualifiers(List<String> qualifiers) { this.qualifiers = qualifiers; return this; } public List<String> getQualifiers() { return qualifiers; } /** * Example value: "name, path" * Possible values: * <ul> * <li>"name"</li> * <li>"path"</li> * <li>"qualifier"</li> * </ul> */ public TreeRequest setS(List<String> s) { this.s = s; return this; } public List<String> getS() { return s; } /** * Possible values: * <ul> * <li>"all"</li> * <li>"children"</li> * <li>"leaves"</li> * </ul> */ public TreeRequest setStrategy(String strategy) { this.strategy = strategy; return this; } public String getStrategy() { return strategy; } }
3,899
19.526316
162
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/components/package-info.java
/* * SonarQube * Copyright (C) 2009-2023 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. */ @ParametersAreNonnullByDefault @Generated("sonar-ws-generator") package org.sonarqube.ws.client.components; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,043
37.666667
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/developers/DevelopersService.java
/* * SonarQube * Copyright (C) 2009-2023 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.developers; import java.util.stream.Collectors; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.client.BaseService; import org.sonarqube.ws.client.GetRequest; import org.sonarqube.ws.client.WsConnector; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/developers">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class DevelopersService extends BaseService { public DevelopersService(WsConnector wsConnector) { super(wsConnector, "api/developers"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/developers/search_events">Further information about this action online (including a response example)</a> * @since 1.0 */ public String searchEvents(SearchEventsRequest request) { return call( new GetRequest(path("search_events")) .setParam("from", request.getFrom() == null ? null : request.getFrom().stream().collect(Collectors.joining(","))) .setParam("projects", request.getProjects() == null ? null : request.getProjects().stream().collect(Collectors.joining(","))) .setMediaType(MediaTypes.JSON) ).content(); } }
2,168
38.436364
173
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/developers/SearchEventsRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.developers; import java.util.List; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/developers/search_events">Further information about this action online (including a response example)</a> * @since 1.0 */ @Generated("sonar-ws-generator") public class SearchEventsRequest { private List<String> from; private List<String> projects; /** * This is a mandatory parameter. * Example value: "2017-10-19T13:00:00+0200" */ public SearchEventsRequest setFrom(List<String> from) { this.from = from; return this; } public List<String> getFrom() { return from; } /** * This is a mandatory parameter. * Example value: "my_project,another_project" */ public SearchEventsRequest setProjects(List<String> projects) { this.projects = projects; return this; } public List<String> getProjects() { return projects; } }
1,870
28.698413
171
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/developers/package-info.java
/* * SonarQube * Copyright (C) 2009-2023 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. */ @ParametersAreNonnullByDefault @Generated("sonar-ws-generator") package org.sonarqube.ws.client.developers; import javax.annotation.Generated; import javax.annotation.ParametersAreNonnullByDefault;
1,043
37.666667
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/duplications/DuplicationsService.java
/* * SonarQube * Copyright (C) 2009-2023 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.duplications; import javax.annotation.Generated; import org.sonarqube.ws.client.BaseService; import org.sonarqube.ws.client.GetRequest; import org.sonarqube.ws.client.WsConnector; import org.sonarqube.ws.Duplications.ShowResponse; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/duplications">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class DuplicationsService extends BaseService { public DuplicationsService(WsConnector wsConnector) { super(wsConnector, "api/duplications"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/duplications/show">Further information about this action online (including a response example)</a> * @since 4.4 */ public ShowResponse show(ShowRequest request) { return call( new GetRequest(path("show")) .setParam("branch", request.getBranch()) .setParam("key", request.getKey()) .setParam("pullRequest", request.getPullRequest()) .setParam("uuid", request.getUuid()), ShowResponse.parser()); } }
2,046
36.218182
166
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/duplications/ShowRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.duplications; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/duplications/show">Further information about this action online (including a response example)</a> * @since 4.4 */ @Generated("sonar-ws-generator") public class ShowRequest { private String branch; private String key; private String pullRequest; private String uuid; /** * This is part of the internal API. * Example value: "feature/my_branch" */ public ShowRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * Example value: "my_project:/src/foo/Bar.php" */ public ShowRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } /** * This is part of the internal API. * Example value: "5461" */ public ShowRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } /** * Example value: "584a89f2-8037-4f7b-b82c-8b45d2d63fb2" * @deprecated since 6.5 */ @Deprecated public ShowRequest setUuid(String uuid) { this.uuid = uuid; return this; } public String getUuid() { return uuid; } }
2,283
24.377778
164
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/duplications/package-info.java
/* * SonarQube * Copyright (C) 2009-2023 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. */ @ParametersAreNonnullByDefault @Generated("sonar-ws-generator") package org.sonarqube.ws.client.duplications; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,045
37.740741
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/editions/EditionsService.java
/* * SonarQube * Copyright (C) 2009-2023 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.editions; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.client.BaseService; import org.sonarqube.ws.client.GetRequest; import org.sonarqube.ws.client.PostRequest; import org.sonarqube.ws.client.WsConnector; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/editions">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class EditionsService extends BaseService { public EditionsService(WsConnector wsConnector) { super(wsConnector, "api/editions"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/editions/is_valid_license">Further information about this action online (including a response example)</a> * @since 7.3 */ public String isValidLicense() { return call( new GetRequest(path("is_valid_license")) .setMediaType(MediaTypes.JSON) ).content(); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/editions/set_license">Further information about this action online (including a response example)</a> * @since 7.2 */ public void setLicense(SetLicenseRequest request) { call( new PostRequest(path("set_license")) .setParam("license", request.getLicense()) .setMediaType(MediaTypes.JSON) ).content(); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/editions/show_license">Further information about this action online (including a response example)</a> * @since 7.2 */ public String showLicense() { return call( new GetRequest(path("show_license")) .setMediaType(MediaTypes.JSON) ).content(); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/editions/unset_license">Further information about this action online (including a response example)</a> * @since 7.2 */ public void unsetLicense() { call( new PostRequest(path("unset_license")) .setMediaType(MediaTypes.JSON) ).content(); } }
3,231
32.666667
174
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/editions/SetLicenseRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.editions; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/editions/set_license">Further information about this action online (including a response example)</a> * @since 7.2 */ @Generated("sonar-ws-generator") public class SetLicenseRequest { private String license; /** * This is a mandatory parameter. */ public SetLicenseRequest setLicense(String license) { this.license = license; return this; } public String getLicense() { return license; } }
1,481
30.531915
167
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/editions/package-info.java
/* * SonarQube * Copyright (C) 2009-2023 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. */ @ParametersAreNonnullByDefault @Generated("sonar-ws-generator") package org.sonarqube.ws.client.editions; import javax.annotation.Generated; import javax.annotation.ParametersAreNonnullByDefault;
1,041
37.592593
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/emails/EmailsService.java
/* * SonarQube * Copyright (C) 2009-2023 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.emails; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.client.BaseService; import org.sonarqube.ws.client.PostRequest; import org.sonarqube.ws.client.WsConnector; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/emails">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class EmailsService extends BaseService { public EmailsService(WsConnector wsConnector) { super(wsConnector, "api/emails"); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/emails/send">Further information about this action online (including a response example)</a> * @since 6.1 */ public void send(SendRequest request) { call( new PostRequest(path("send")) .setParam("message", request.getMessage()) .setParam("subject", request.getSubject()) .setParam("to", request.getTo()) .setMediaType(MediaTypes.JSON) ).content(); } }
1,957
34.6
160
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/emails/SendRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.emails; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/emails/send">Further information about this action online (including a response example)</a> * @since 6.1 */ @Generated("sonar-ws-generator") public class SendRequest { private String message; private String subject; private String to; /** * This is a mandatory parameter. */ public SendRequest setMessage(String message) { this.message = message; return this; } public String getMessage() { return message; } /** * Example value: "Test Message from SonarQube" */ public SendRequest setSubject(String subject) { this.subject = subject; return this; } public String getSubject() { return subject; } /** * This is a mandatory parameter. * Example value: "john@doo.com" */ public SendRequest setTo(String to) { this.to = to; return this; } public String getTo() { return to; } }
1,932
25.121622
158
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/emails/package-info.java
/* * SonarQube * Copyright (C) 2009-2023 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. */ @ParametersAreNonnullByDefault @Generated("sonar-ws-generator") package org.sonarqube.ws.client.emails; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,039
37.518519
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/favorites/AddRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.favorites; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/favorites/add">Further information about this action online (including a response example)</a> * @since 6.3 */ @Generated("sonar-ws-generator") public class AddRequest { private String component; /** * This is a mandatory parameter. * Example value: "my_project:/src/foo/Bar.php" */ public AddRequest setComponent(String component) { this.component = component; return this; } public String getComponent() { return component; } }
1,525
30.791667
160
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/favorites/FavoritesService.java
/* * SonarQube * Copyright (C) 2009-2023 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.favorites; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.client.BaseService; import org.sonarqube.ws.client.GetRequest; import org.sonarqube.ws.client.PostRequest; import org.sonarqube.ws.client.WsConnector; import org.sonarqube.ws.Favorites.SearchResponse; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/favorites">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class FavoritesService extends BaseService { public FavoritesService(WsConnector wsConnector) { super(wsConnector, "api/favorites"); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/favorites/add">Further information about this action online (including a response example)</a> * @since 6.3 */ public void add(AddRequest request) { call( new PostRequest(path("add")) .setParam("component", request.getComponent()) .setMediaType(MediaTypes.JSON) ).content(); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/favorites/remove">Further information about this action online (including a response example)</a> * @since 6.3 */ public void remove(RemoveRequest request) { call( new PostRequest(path("remove")) .setParam("component", request.getComponent()) .setMediaType(MediaTypes.JSON) ).content(); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/favorites/search">Further information about this action online (including a response example)</a> * @since 6.3 */ public SearchResponse search(SearchRequest request) { return call( new GetRequest(path("search")) .setParam("p", request.getP()) .setParam("ps", request.getPs()), SearchResponse.parser()); } }
2,949
33.705882
165
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/favorites/RemoveRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.favorites; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/favorites/remove">Further information about this action online (including a response example)</a> * @since 6.3 */ @Generated("sonar-ws-generator") public class RemoveRequest { private String component; /** * This is a mandatory parameter. * Example value: "my_project" */ public RemoveRequest setComponent(String component) { this.component = component; return this; } public String getComponent() { return component; } }
1,517
30.625
163
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/favorites/SearchRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.favorites; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/favorites/search">Further information about this action online (including a response example)</a> * @since 6.3 */ @Generated("sonar-ws-generator") public class SearchRequest { private String p; private String ps; /** * Example value: "42" */ public SearchRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "20" */ public SearchRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } }
1,603
25.733333
163
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/favorites/package-info.java
/* * SonarQube * Copyright (C) 2009-2023 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. */ @ParametersAreNonnullByDefault @Generated("sonar-ws-generator") package org.sonarqube.ws.client.favorites; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,042
37.62963
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/githubprovisioning/GithubProvisioningService.java
/* * SonarQube * Copyright (C) 2009-2023 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.githubprovisioning; import org.sonarqube.ws.client.BaseService; import org.sonarqube.ws.client.PostRequest; import org.sonarqube.ws.client.WsConnector; public class GithubProvisioningService extends BaseService { public GithubProvisioningService(WsConnector wsConnector) { super(wsConnector, "api/github_provisioning"); } public void enable() { call( new PostRequest(path("enable")) ); } public void disable() { call( new PostRequest(path("disable")) ); } }
1,381
31.139535
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/governancereports/DownloadRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.governancereports; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/governance_reports/download">Further information about this action online (including a response example)</a> * @since 1.0 */ @Generated("sonar-ws-generator") public class DownloadRequest { private String componentId; private String componentKey; /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public DownloadRequest setComponentId(String componentId) { this.componentId = componentId; return this; } public String getComponentId() { return componentId; } /** * Example value: "my_project" */ public DownloadRequest setComponentKey(String componentKey) { this.componentKey = componentKey; return this; } public String getComponentKey() { return componentKey; } }
1,794
28.916667
174
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/governancereports/GovernanceReportsService.java
/* * SonarQube * Copyright (C) 2009-2023 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.governancereports; import java.util.stream.Collectors; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.client.BaseService; import org.sonarqube.ws.client.GetRequest; import org.sonarqube.ws.client.PostRequest; import org.sonarqube.ws.client.WsConnector; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/governance_reports">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class GovernanceReportsService extends BaseService { public GovernanceReportsService(WsConnector wsConnector) { super(wsConnector, "api/governance_reports"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/governance_reports/download">Further information about this action online (including a response example)</a> * @since 1.0 */ public String download(DownloadRequest request) { return call( new GetRequest(path("download")) .setParam("componentId", request.getComponentId()) .setParam("componentKey", request.getComponentKey()) .setMediaType(MediaTypes.JSON) ).content(); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/governance_reports/status">Further information about this action online (including a response example)</a> * @since 1.0 */ public String status(StatusRequest request) { return call( new GetRequest(path("status")) .setParam("componentId", request.getComponentId()) .setParam("componentKey", request.getComponentKey()) .setMediaType(MediaTypes.JSON) ).content(); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/governance_reports/subscribe">Further information about this action online (including a response example)</a> * @since 1.0 */ public void subscribe(SubscribeRequest request) { call( new PostRequest(path("subscribe")) .setParam("componentId", request.getComponentId()) .setParam("componentKey", request.getComponentKey()) .setMediaType(MediaTypes.JSON) ).content(); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/governance_reports/unsubscribe">Further information about this action online (including a response example)</a> * @since 1.0 */ public void unsubscribe(UnsubscribeRequest request) { call( new PostRequest(path("unsubscribe")) .setParam("componentId", request.getComponentId()) .setParam("componentKey", request.getComponentKey()) .setMediaType(MediaTypes.JSON) ).content(); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/governance_reports/update_frequency">Further information about this action online (including a response example)</a> * @since 1.0 */ public void updateFrequency(UpdateFrequencyRequest request) { call( new PostRequest(path("update_frequency")) .setParam("componentId", request.getComponentId()) .setParam("componentKey", request.getComponentKey()) .setParam("frequency", request.getFrequency()) .setMediaType(MediaTypes.JSON) ).content(); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/governance_reports/update_recipients">Further information about this action online (including a response example)</a> * @since 1.0 */ public void updateRecipients(UpdateRecipientsRequest request) { call( new PostRequest(path("update_recipients")) .setParam("componentId", request.getComponentId()) .setParam("componentKey", request.getComponentKey()) .setParam("recipients", request.getRecipients() == null ? null : request.getRecipients().stream().collect(Collectors.joining(","))) .setMediaType(MediaTypes.JSON) ).content(); } }
5,184
36.572464
185
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/governancereports/StatusRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.governancereports; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/governance_reports/status">Further information about this action online (including a response example)</a> * @since 1.0 */ @Generated("sonar-ws-generator") public class StatusRequest { private String componentId; private String componentKey; /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public StatusRequest setComponentId(String componentId) { this.componentId = componentId; return this; } public String getComponentId() { return componentId; } /** * Example value: "my_project" */ public StatusRequest setComponentKey(String componentKey) { this.componentKey = componentKey; return this; } public String getComponentKey() { return componentKey; } }
1,786
28.783333
172
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/governancereports/SubscribeRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.governancereports; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/governance_reports/subscribe">Further information about this action online (including a response example)</a> * @since 1.0 */ @Generated("sonar-ws-generator") public class SubscribeRequest { private String componentId; private String componentKey; /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public SubscribeRequest setComponentId(String componentId) { this.componentId = componentId; return this; } public String getComponentId() { return componentId; } /** * Example value: "my_project" */ public SubscribeRequest setComponentKey(String componentKey) { this.componentKey = componentKey; return this; } public String getComponentKey() { return componentKey; } }
1,798
28.983333
175
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/governancereports/UnsubscribeRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.governancereports; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/governance_reports/unsubscribe">Further information about this action online (including a response example)</a> * @since 1.0 */ @Generated("sonar-ws-generator") public class UnsubscribeRequest { private String componentId; private String componentKey; /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public UnsubscribeRequest setComponentId(String componentId) { this.componentId = componentId; return this; } public String getComponentId() { return componentId; } /** * Example value: "my_project" */ public UnsubscribeRequest setComponentKey(String componentKey) { this.componentKey = componentKey; return this; } public String getComponentKey() { return componentKey; } }
1,806
29.116667
177
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/governancereports/UpdateFrequencyRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.governancereports; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/governance_reports/update_frequency">Further information about this action online (including a response example)</a> * @since 1.0 */ @Generated("sonar-ws-generator") public class UpdateFrequencyRequest { private String componentId; private String componentKey; private String frequency; /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public UpdateFrequencyRequest setComponentId(String componentId) { this.componentId = componentId; return this; } public String getComponentId() { return componentId; } /** * Example value: "my_project" */ public UpdateFrequencyRequest setComponentKey(String componentKey) { this.componentKey = componentKey; return this; } public String getComponentKey() { return componentKey; } /** * Possible values: * <ul> * <li>"daily"</li> * <li>"weekly"</li> * <li>"monthly"</li> * </ul> */ public UpdateFrequencyRequest setFrequency(String frequency) { this.frequency = frequency; return this; } public String getFrequency() { return frequency; } }
2,160
26.705128
182
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/governancereports/UpdateRecipientsRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.governancereports; import java.util.List; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/governance_reports/update_recipients">Further information about this action online (including a response example)</a> * @since 1.0 */ @Generated("sonar-ws-generator") public class UpdateRecipientsRequest { private String componentId; private String componentKey; private List<String> recipients; /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public UpdateRecipientsRequest setComponentId(String componentId) { this.componentId = componentId; return this; } public String getComponentId() { return componentId; } /** * Example value: "my_project" */ public UpdateRecipientsRequest setComponentKey(String componentKey) { this.componentKey = componentKey; return this; } public String getComponentKey() { return componentKey; } /** * This is a mandatory parameter. * Example value: "john@smith.com,jane@doo.fr" */ public UpdateRecipientsRequest setRecipients(List<String> recipients) { this.recipients = recipients; return this; } public List<String> getRecipients() { return recipients; } }
2,180
28.08
183
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/governancereports/package-info.java
/* * SonarQube * Copyright (C) 2009-2023 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. */ @ParametersAreNonnullByDefault @Generated("sonar-ws-generator") package org.sonarqube.ws.client.governancereports; import javax.annotation.Generated; import javax.annotation.ParametersAreNonnullByDefault;
1,050
37.925926
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/hotspots/AddCommentRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.hotspots; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/hotspots/add_comment">Further information about this action online (including a response example)</a> * @since 8.1 */ @Generated("sonar-ws-generator") public class AddCommentRequest { private String comment; private String hotspot; /** * This is a mandatory parameter. * Example value: "This is safe because user input is validated by the calling code" */ public AddCommentRequest setComment(String comment) { this.comment = comment; return this; } public String getComment() { return comment; } /** * This is a mandatory parameter. * Example value: "AU-TpxcA-iU5OvuD2FL0" */ public AddCommentRequest setHotspot(String hotspot) { this.hotspot = hotspot; return this; } public String getHotspot() { return hotspot; } }
1,847
28.806452
167
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/hotspots/AssignRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.hotspots; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/hotspots/assign">Further information about this action online (including a response example)</a> * @since 8.2 */ @Generated("sonar-ws-generator") public class AssignRequest { private String assignee; private String comment; private String hotspot; /** * This is a mandatory parameter. * Example value: "admin" */ public AssignRequest setAssignee(String assignee) { this.assignee = assignee; return this; } public String getAssignee() { return assignee; } /** * Example value: "Hey Bob! Could you please have a look and confirm my assertion that we are safe here, please" */ public AssignRequest setComment(String comment) { this.comment = comment; return this; } public String getComment() { return comment; } /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public AssignRequest setHotspot(String hotspot) { this.hotspot = hotspot; return this; } public String getHotspot() { return hotspot; } }
2,089
26.866667
162
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/hotspots/ChangeStatusRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.hotspots; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/hotspots/change_status">Further information about this action online (including a response example)</a> * @since 8.1 */ @Generated("sonar-ws-generator") public class ChangeStatusRequest { private String comment; private String hotspot; private String resolution; private String status; /** * Example value: "This is safe because user input is validated by the calling code" */ public ChangeStatusRequest setComment(String comment) { this.comment = comment; return this; } public String getComment() { return comment; } /** * This is a mandatory parameter. * Example value: "AU-TpxcA-iU5OvuD2FL0" */ public ChangeStatusRequest setHotspot(String hotspot) { this.hotspot = hotspot; return this; } public String getHotspot() { return hotspot; } /** * Possible values: * <ul> * <li>"FIXED"</li> * <li>"SAFE"</li> * </ul> */ public ChangeStatusRequest setResolution(String resolution) { this.resolution = resolution; return this; } public String getResolution() { return resolution; } /** * This is a mandatory parameter. * Possible values: * <ul> * <li>"TO_REVIEW"</li> * <li>"REVIEWED"</li> * </ul> */ public ChangeStatusRequest setStatus(String status) { this.status = status; return this; } public String getStatus() { return status; } }
2,461
24.645833
169
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/hotspots/DeleteCommentRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.hotspots; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/hotspots/delete_comment">Further information about this action online (including a response example)</a> * @since 8.2 */ @Generated("sonar-ws-generator") public class DeleteCommentRequest { private String comment; /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public DeleteCommentRequest setComment(String comment) { this.comment = comment; return this; } public String getComment() { return comment; } }
1,533
30.958333
170
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/hotspots/EditCommentRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.hotspots; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/hotspots/edit_comment">Further information about this action online (including a response example)</a> * @since 8.2 */ @Generated("sonar-ws-generator") public class EditCommentRequest { private String comment; private String text; /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public EditCommentRequest setComment(String comment) { this.comment = comment; return this; } public String getComment() { return comment; } /** * This is a mandatory parameter. * Example value: "Safe because it doesn't apply to the context" */ public EditCommentRequest setText(String text) { this.text = text; return this; } public String getText() { return text; } }
1,810
28.209677
168
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/hotspots/HotspotsService.java
/* * SonarQube * Copyright (C) 2009-2023 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.hotspots; import java.util.stream.Collectors; import javax.annotation.Generated; import org.sonarqube.ws.Common; import org.sonarqube.ws.Hotspots; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.client.BaseService; import org.sonarqube.ws.client.GetRequest; import org.sonarqube.ws.client.PostRequest; import org.sonarqube.ws.client.WsConnector; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/hotspots">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class HotspotsService extends BaseService { public HotspotsService(WsConnector wsConnector) { super(wsConnector, "api/hotspots"); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/hotspots/add_comment">Further information about this action online (including a response example)</a> * @since 8.1 */ public void addComment(AddCommentRequest request) { call( new PostRequest(path("add_comment")) .setParam("comment", request.getComment()) .setParam("hotspot", request.getHotspot()) .setMediaType(MediaTypes.JSON)).content(); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/hotspots/assign">Further information about this action online (including a response example)</a> * @since 8.2 */ public void assign(AssignRequest request) { call( new PostRequest(path("assign")) .setParam("assignee", request.getAssignee()) .setParam("comment", request.getComment()) .setParam("hotspot", request.getHotspot()) .setMediaType(MediaTypes.JSON)).content(); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/hotspots/change_status">Further information about this action online (including a response example)</a> * @since 8.1 */ public void changeStatus(ChangeStatusRequest request) { call( new PostRequest(path("change_status")) .setParam("comment", request.getComment()) .setParam("hotspot", request.getHotspot()) .setParam("resolution", request.getResolution()) .setParam("status", request.getStatus()) .setMediaType(MediaTypes.JSON)).content(); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/hotspots/edit_comment">Further information about this action online (including a response example)</a> * @since 8.2 */ public Common.Comment editComment(EditCommentRequest request) { return call( new PostRequest(path("edit_comment")) .setParam("comment", request.getComment()) .setParam("text", request.getText()) .setMediaType(MediaTypes.JSON), Common.Comment.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/hotspots/delete_comment">Further information about this action online (including a response example)</a> * @since 8.2 */ public void deleteComment(DeleteCommentRequest request) { call( new PostRequest(path("delete_comment")) .setParam("comment", request.getComment()) .setMediaType(MediaTypes.JSON) ).content(); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/hotspots/search">Further information about this action online (including a response example)</a> * @since 8.1 */ public Hotspots.SearchWsResponse search(SearchRequest request) { return call( new GetRequest(path("search")) .setParam("branch", request.getBranch()) .setParam("hotspots", request.getHotspots() == null ? null : request.getHotspots().stream().collect(Collectors.joining(","))) .setParam("onlyMine", request.getOnlyMine()) .setParam("p", request.getP()) .setParam("projectKey", request.getProjectKey()) .setParam("ps", request.getPs()) .setParam("pullRequest", request.getPullRequest()) .setParam("resolution", request.getResolution()) .setParam("inNewCodePeriod", request.getInNewCodePeriod()) .setParam("status", request.getStatus()) .setMediaType(MediaTypes.JSON), Hotspots.SearchWsResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/hotspots/show">Further information about this action online (including a response example)</a> * @since 8.1 */ public Hotspots.ShowWsResponse show(ShowRequest request) { return call( new GetRequest(path("show")) .setParam("hotspot", request.getHotspot()) .setMediaType(MediaTypes.JSON), Hotspots.ShowWsResponse.parser()); } }
5,981
36.3875
172
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/hotspots/SearchRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.hotspots; import java.util.List; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/hotspots/search">Further information about this action online (including a response example)</a> * @since 8.1 */ @Generated("sonar-ws-generator") public class SearchRequest { private String branch; private List<String> hotspots; private String onlyMine; private String p; private String projectKey; private String ps; private String pullRequest; private String resolution; private String inNewCodePeriod; private String status; private String files; /** * This is part of the internal API. * Example value: "feature/my_branch" */ public SearchRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * Example value: "AWhXpLoInp4On-Y3xc8x" */ public SearchRequest setHotspots(List<String> hotspots) { this.hotspots = hotspots; return this; } public List<String> getHotspots() { return hotspots; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public SearchRequest setOnlyMine(String onlyMine) { this.onlyMine = onlyMine; return this; } public String getOnlyMine() { return onlyMine; } /** * Example value: "42" */ public SearchRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "my_project" */ public SearchRequest setProjectKey(String projectKey) { this.projectKey = projectKey; return this; } public String getProjectKey() { return projectKey; } /** * Example value: "20" */ public SearchRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * This is part of the internal API. * Example value: "5461" */ public SearchRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } /** * Possible values: * <ul> * <li>"FIXED"</li> * <li>"SAFE"</li> * </ul> */ public SearchRequest setResolution(String resolution) { this.resolution = resolution; return this; } public String getResolution() { return resolution; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public SearchRequest setInNewCodePeriod(String inNewCodePeriod) { this.inNewCodePeriod = inNewCodePeriod; return this; } public String getInNewCodePeriod() { return inNewCodePeriod; } /** * Possible values: * <ul> * <li>"TO_REVIEW"</li> * <li>"REVIEWED"</li> * </ul> */ public SearchRequest setStatus(String status) { this.status = status; return this; } public String getStatus() { return status; } public String getFiles() { return files; } public void setFiles(String files) { this.files = files; } }
4,155
20.204082
162
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/hotspots/ShowRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.hotspots; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/hotspots/show">Further information about this action online (including a response example)</a> * @since 8.1 */ @Generated("sonar-ws-generator") public class ShowRequest { private String hotspot; /** * This is a mandatory parameter. * Example value: "AU-TpxcA-iU5OvuD2FL0" */ public ShowRequest setHotspot(String hotspot) { this.hotspot = hotspot; return this; } public String getHotspot() { return hotspot; } }
1,505
30.375
160
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/hotspots/package-info.java
/* * SonarQube * Copyright (C) 2009-2023 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. */ @ParametersAreNonnullByDefault @Generated("sonar-ws-generator") package org.sonarqube.ws.client.hotspots; import javax.annotation.Generated; import javax.annotation.ParametersAreNonnullByDefault;
1,040
39.038462
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java
/* * SonarQube * Copyright (C) 2009-2023 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.issue; /** * @since 5.3 */ public class IssuesWsParameters { public static final String CONTROLLER_ISSUES = "api/issues"; public static final String ACTION_SEARCH = "search"; public static final String ACTION_CHANGELOG = "changelog"; public static final String ACTION_ADD_COMMENT = "add_comment"; public static final String ACTION_EDIT_COMMENT = "edit_comment"; public static final String ACTION_DELETE_COMMENT = "delete_comment"; public static final String ACTION_ASSIGN = "assign"; public static final String ACTION_DO_TRANSITION = "do_transition"; public static final String ACTION_SET_SEVERITY = "set_severity"; public static final String ACTION_COMPONENT_TAGS = "component_tags"; public static final String ACTION_SET_TAGS = "set_tags"; public static final String ACTION_SET_TYPE = "set_type"; public static final String ACTION_BULK_CHANGE = "bulk_change"; public static final String ACTION_PULL = "pull"; public static final String ACTION_PULL_TAINT = "pull_taint"; public static final String PARAM_ISSUE = "issue"; public static final String PARAM_COMMENT = "comment"; public static final String PARAM_TEXT = "text"; public static final String PARAM_ASSIGNEE = "assignee"; public static final String PARAM_TRANSITION = "transition"; public static final String PARAM_SEVERITY = "severity"; public static final String PARAM_COMPONENT = "component"; public static final String PARAM_COMPONENT_UUID = "componentUuid"; public static final String PARAM_TYPE = "type"; public static final String PARAM_ISSUES = "issues"; public static final String PARAM_SEVERITIES = "severities"; public static final String PARAM_STATUSES = "statuses"; public static final String PARAM_RESOLUTIONS = "resolutions"; public static final String PARAM_RESOLVED = "resolved"; public static final String PARAM_COMPONENT_KEYS = "componentKeys"; public static final String PARAM_COMPONENT_UUIDS = "componentUuids"; public static final String PARAM_PROJECTS = "projects"; public static final String PARAM_DIRECTORIES = "directories"; public static final String PARAM_FILES = "files"; public static final String PARAM_ON_COMPONENT_ONLY = "onComponentOnly"; public static final String PARAM_BRANCH = "branch"; public static final String PARAM_PULL_REQUEST = "pullRequest"; public static final String PARAM_RULES = "rules"; public static final String PARAM_ASSIGN = "assign"; public static final String PARAM_SET_SEVERITY = "set_severity"; public static final String PARAM_SET_TYPE = "set_type"; public static final String PARAM_DO_TRANSITION = "do_transition"; public static final String PARAM_ADD_TAGS = "add_tags"; public static final String PARAM_REMOVE_TAGS = "remove_tags"; public static final String PARAM_SEND_NOTIFICATIONS = "sendNotifications"; public static final String PARAM_ASSIGNEES = "assignees"; public static final String PARAM_AUTHOR = "author"; public static final String PARAM_SCOPES = "scopes"; public static final String PARAM_LANGUAGES = "languages"; public static final String PARAM_TAGS = "tags"; public static final String PARAM_TYPES = "types"; public static final String PARAM_OWASP_ASVS_LEVEL = "owaspAsvsLevel"; public static final String PARAM_PCI_DSS = "pciDss"; public static final String PARAM_PCI_DSS_32 = "pciDss-3.2"; public static final String PARAM_PCI_DSS_40 = "pciDss-4.0"; public static final String PARAM_OWASP_ASVS = "owaspAsvs"; public static final String PARAM_OWASP_ASVS_40 = "owaspAsvs-4.0"; public static final String PARAM_OWASP_TOP_10 = "owaspTop10"; public static final String PARAM_OWASP_TOP_10_2021 = "owaspTop10-2021"; @Deprecated public static final String PARAM_SANS_TOP_25 = "sansTop25"; public static final String PARAM_CWE_TOP_25 = "cweTop25"; public static final String PARAM_SONARSOURCE_SECURITY = "sonarsourceSecurity"; public static final String PARAM_CWE = "cwe"; public static final String PARAM_ASSIGNED = "assigned"; public static final String PARAM_HIDE_COMMENTS = "hideComments"; public static final String PARAM_CREATED_AFTER = "createdAfter"; public static final String PARAM_CREATED_AT = "createdAt"; public static final String PARAM_CREATED_BEFORE = "createdBefore"; public static final String PARAM_CREATED_IN_LAST = "createdInLast"; public static final String PARAM_IN_NEW_CODE_PERIOD = "inNewCodePeriod"; public static final String PARAM_ASC = "asc"; public static final String PARAM_ADDITIONAL_FIELDS = "additionalFields"; public static final String PARAM_TIMEZONE = "timeZone"; public static final String PARAM_CODE_VARIANTS = "codeVariants"; public static final String FACET_MODE_EFFORT = "effort"; private IssuesWsParameters() { // Utility class } }
5,649
49
80
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/issue/package-info.java
/* * SonarQube * Copyright (C) 2009-2023 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. */ @ParametersAreNonnullByDefault package org.sonarqube.ws.client.issue; import javax.annotation.ParametersAreNonnullByDefault;
970
37.84
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/AddCommentRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.issues; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/add_comment">Further information about this action online (including a response example)</a> * @since 3.6 */ @Generated("sonar-ws-generator") public class AddCommentRequest { private String issue; private String text; /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public AddCommentRequest setIssue(String issue) { this.issue = issue; return this; } public String getIssue() { return issue; } /** * This is a mandatory parameter. * Example value: "Won't fix because it doesn't apply to the context" */ public AddCommentRequest setText(String text) { this.text = text; return this; } public String getText() { return text; } }
1,793
27.935484
165
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/AssignRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.issues; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/assign">Further information about this action online (including a response example)</a> * @since 3.6 */ @Generated("sonar-ws-generator") public class AssignRequest { private String assignee; private String issue; /** * Example value: "admin" */ public AssignRequest setAssignee(String assignee) { this.assignee = assignee; return this; } public String getAssignee() { return assignee; } /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public AssignRequest setIssue(String issue) { this.issue = issue; return this; } public String getIssue() { return issue; } }
1,725
26.83871
160
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/AuthorsRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.issues; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/authors">Further information about this action online (including a response example)</a> * @since 5.1 */ @Generated("sonar-ws-generator") public class AuthorsRequest { private String project; private String ps; private String q; /** * Example value: "my_project" */ public AuthorsRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } /** * Example value: "20" */ public AuthorsRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Example value: "luke" */ public AuthorsRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } }
1,833
24.123288
161
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/BulkChangeRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.issues; import java.util.List; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/bulk_change">Further information about this action online (including a response example)</a> * @since 3.7 */ @Generated("sonar-ws-generator") public class BulkChangeRequest { private String addTags; private List<String> assign; private List<String> comment; private String doTransition; private List<String> issues; private String removeTags; private String sendNotifications; private List<String> setSeverity; private List<String> setType; /** * Example value: "security,java8" */ public BulkChangeRequest setAddTags(String addTags) { this.addTags = addTags; return this; } public String getAddTags() { return addTags; } /** * Example value: "john.smith" */ public BulkChangeRequest setAssign(List<String> assign) { this.assign = assign; return this; } public List<String> getAssign() { return assign; } /** * Example value: "Here is my comment" */ public BulkChangeRequest setComment(List<String> comment) { this.comment = comment; return this; } public List<String> getComment() { return comment; } /** * Example value: "reopen" * Possible values: * <ul> * <li>"confirm"</li> * <li>"unconfirm"</li> * <li>"reopen"</li> * <li>"resolve"</li> * <li>"falsepositive"</li> * <li>"wontfix"</li> * <li>"close"</li> * </ul> */ public BulkChangeRequest setDoTransition(String doTransition) { this.doTransition = doTransition; return this; } public String getDoTransition() { return doTransition; } /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy,AU-TpxcA-iU5OvuD2FLz" */ public BulkChangeRequest setIssues(List<String> issues) { this.issues = issues; return this; } public List<String> getIssues() { return issues; } /** * Example value: "security,java8" */ public BulkChangeRequest setRemoveTags(String removeTags) { this.removeTags = removeTags; return this; } public String getRemoveTags() { return removeTags; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public BulkChangeRequest setSendNotifications(String sendNotifications) { this.sendNotifications = sendNotifications; return this; } public String getSendNotifications() { return sendNotifications; } /** * Example value: "BLOCKER" * Possible values: * <ul> * <li>"INFO"</li> * <li>"MINOR"</li> * <li>"MAJOR"</li> * <li>"CRITICAL"</li> * <li>"BLOCKER"</li> * </ul> */ public BulkChangeRequest setSetSeverity(List<String> setSeverity) { this.setSeverity = setSeverity; return this; } public List<String> getSetSeverity() { return setSeverity; } /** * Example value: "BUG" * Possible values: * <ul> * <li>"CODE_SMELL"</li> * <li>"BUG"</li> * <li>"VULNERABILITY"</li> * </ul> */ public BulkChangeRequest setSetType(List<String> setType) { this.setType = setType; return this; } public List<String> getSetType() { return setType; } }
4,283
22.409836
165
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/ChangelogRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.issues; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/changelog">Further information about this action online (including a response example)</a> * @since 4.1 */ @Generated("sonar-ws-generator") public class ChangelogRequest { private String issue; /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public ChangelogRequest setIssue(String issue) { this.issue = issue; return this; } public String getIssue() { return issue; } }
1,502
30.3125
163
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/ComponentTagsRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.issues; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/component_tags">Further information about this action online (including a response example)</a> * @since 5.1 */ @Generated("sonar-ws-generator") public class ComponentTagsRequest { private String componentUuid; private String createdAfter; private String ps; /** * This is a mandatory parameter. * Example value: "7d8749e8-3070-4903-9188-bdd82933bb92" */ public ComponentTagsRequest setComponentUuid(String componentUuid) { this.componentUuid = componentUuid; return this; } public String getComponentUuid() { return componentUuid; } /** * Example value: "2017-10-19 or 2017-10-19T13:00:00+0200" */ public ComponentTagsRequest setCreatedAfter(String createdAfter) { this.createdAfter = createdAfter; return this; } public String getCreatedAfter() { return createdAfter; } /** * Example value: "25" */ public ComponentTagsRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } }
2,079
27.108108
168
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/DeleteCommentRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.issues; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/delete_comment">Further information about this action online (including a response example)</a> * @since 3.6 */ @Generated("sonar-ws-generator") public class DeleteCommentRequest { private String comment; /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public DeleteCommentRequest setComment(String comment) { this.comment = comment; return this; } public String getComment() { return comment; } }
1,529
30.875
168
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/DoTransitionRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.issues; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/do_transition">Further information about this action online (including a response example)</a> * @since 3.6 */ @Generated("sonar-ws-generator") public class DoTransitionRequest { private String issue; private String transition; /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public DoTransitionRequest setIssue(String issue) { this.issue = issue; return this; } public String getIssue() { return issue; } /** * This is a mandatory parameter. * Possible values: * <ul> * <li>"confirm"</li> * <li>"unconfirm"</li> * <li>"reopen"</li> * <li>"resolve"</li> * <li>"falsepositive"</li> * <li>"wontfix"</li> * <li>"close"</li> * </ul> */ public DoTransitionRequest setTransition(String transition) { this.transition = transition; return this; } public String getTransition() { return transition; } }
2,001
27.197183
167
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/EditCommentRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.issues; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/edit_comment">Further information about this action online (including a response example)</a> * @since 3.6 */ @Generated("sonar-ws-generator") public class EditCommentRequest { private String comment; private String text; /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public EditCommentRequest setComment(String comment) { this.comment = comment; return this; } public String getComment() { return comment; } /** * This is a mandatory parameter. * Example value: "Won't fix because it doesn't apply to the context" */ public EditCommentRequest setText(String text) { this.text = text; return this; } public String getText() { return text; } }
1,811
28.225806
166
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/IssuesService.java
/* * SonarQube * Copyright (C) 2009-2023 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.issues; import java.io.InputStream; import java.util.stream.Collectors; import javax.annotation.Generated; import org.sonarqube.ws.Issues.AddCommentResponse; import org.sonarqube.ws.Issues.AssignResponse; import org.sonarqube.ws.Issues.AuthorsResponse; import org.sonarqube.ws.Issues.BulkChangeWsResponse; import org.sonarqube.ws.Issues.ChangelogWsResponse; import org.sonarqube.ws.Issues.DeleteCommentResponse; import org.sonarqube.ws.Issues.DoTransitionResponse; import org.sonarqube.ws.Issues.SearchWsResponse; import org.sonarqube.ws.Issues.SetSeverityResponse; import org.sonarqube.ws.Issues.SetTagsResponse; import org.sonarqube.ws.Issues.SetTypeResponse; import org.sonarqube.ws.Issues.TagsResponse; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.client.BaseService; import org.sonarqube.ws.client.GetRequest; import org.sonarqube.ws.client.PostRequest; import org.sonarqube.ws.client.WsConnector; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class IssuesService extends BaseService { public IssuesService(WsConnector wsConnector) { super(wsConnector, "api/issues"); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/add_comment">Further information about this action online (including a response example)</a> * @since 3.6 */ public AddCommentResponse addComment(AddCommentRequest request) { return call( new PostRequest(path("add_comment")) .setParam("issue", request.getIssue()) .setParam("text", request.getText()), AddCommentResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/assign">Further information about this action online (including a response example)</a> * @since 3.6 */ public AssignResponse assign(AssignRequest request) { return call( new PostRequest(path("assign")) .setParam("assignee", request.getAssignee()) .setParam("issue", request.getIssue()), AssignResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/authors">Further information about this action online (including a response example)</a> * @since 5.1 */ public AuthorsResponse authors(AuthorsRequest request) { return call( new GetRequest(path("authors")) .setParam("project", request.getProject()) .setParam("ps", request.getPs()) .setParam("q", request.getQ()), AuthorsResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/bulk_change">Further information about this action online (including a response example)</a> * @since 3.7 */ public BulkChangeWsResponse bulkChange(BulkChangeRequest request) { return call( new PostRequest(path("bulk_change")) .setParam("add_tags", request.getAddTags()) .setParam("assign", request.getAssign() == null ? null : request.getAssign().stream().collect(Collectors.joining(","))) .setParam("comment", request.getComment() == null ? null : request.getComment().stream().collect(Collectors.joining(","))) .setParam("do_transition", request.getDoTransition()) .setParam("issues", request.getIssues() == null ? null : request.getIssues().stream().collect(Collectors.joining(","))) .setParam("remove_tags", request.getRemoveTags()) .setParam("sendNotifications", request.getSendNotifications()) .setParam("set_severity", request.getSetSeverity() == null ? null : request.getSetSeverity().stream().collect(Collectors.joining(","))) .setParam("set_type", request.getSetType() == null ? null : request.getSetType().stream().collect(Collectors.joining(","))), BulkChangeWsResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/changelog">Further information about this action online (including a response example)</a> * @since 4.1 */ public ChangelogWsResponse changelog(ChangelogRequest request) { return call( new GetRequest(path("changelog")) .setParam("issue", request.getIssue()), ChangelogWsResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/component_tags">Further information about this action online (including a response example)</a> * @since 5.1 */ public String componentTags(ComponentTagsRequest request) { return call( new GetRequest(path("component_tags")) .setParam("componentUuid", request.getComponentUuid()) .setParam("createdAfter", request.getCreatedAfter()) .setParam("ps", request.getPs()) .setMediaType(MediaTypes.JSON)).content(); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/delete_comment">Further information about this action online (including a response example)</a> * @since 3.6 */ public DeleteCommentResponse deleteComment(DeleteCommentRequest request) { return call( new PostRequest(path("delete_comment")) .setParam("comment", request.getComment()), DeleteCommentResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/do_transition">Further information about this action online (including a response example)</a> * @since 3.6 */ public DoTransitionResponse doTransition(DoTransitionRequest request) { return call( new PostRequest(path("do_transition")) .setParam("issue", request.getIssue()) .setParam("transition", request.getTransition()), DoTransitionResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/edit_comment">Further information about this action online (including a response example)</a> * @since 3.6 */ public String editComment(EditCommentRequest request) { return call( new PostRequest(path("edit_comment")) .setParam("comment", request.getComment()) .setParam("text", request.getText()) .setMediaType(MediaTypes.JSON)).content(); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/reindex">Further information about this action online (including a response example)</a> * @since 9.8 */ public void reindex() { call( new PostRequest(path("reindex")) .setMediaType(MediaTypes.JSON)).content(); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/search">Further information about this action online (including a response example)</a> * @since 3.6 */ public SearchWsResponse search(SearchRequest request) { return call( new GetRequest(path("search")) .setParam("additionalFields", request.getAdditionalFields() == null ? null : request.getAdditionalFields().stream().collect(Collectors.joining(","))) .setParam("asc", request.getAsc()) .setParam("assigned", request.getAssigned()) .setParam("assignees", request.getAssignees() == null ? null : request.getAssignees().stream().collect(Collectors.joining(","))) .setParam("author", request.getAuthor()) .setParam("branch", request.getBranch()) .setParam("componentKeys", request.getComponentKeys() == null ? null : request.getComponentKeys().stream().collect(Collectors.joining(","))) .setParam("createdAfter", request.getCreatedAfter()) .setParam("createdAt", request.getCreatedAt()) .setParam("createdBefore", request.getCreatedBefore()) .setParam("createdInLast", request.getCreatedInLast()) .setParam("cwe", request.getCwe() == null ? null : request.getCwe().stream().collect(Collectors.joining(","))) .setParam("directories", request.getDirectories() == null ? null : request.getDirectories().stream().collect(Collectors.joining(","))) .setParam("facets", request.getFacets() == null ? null : request.getFacets().stream().collect(Collectors.joining(","))) .setParam("fileUuids", request.getFileUuids() == null ? null : request.getFileUuids().stream().collect(Collectors.joining(","))) .setParam("issues", request.getIssues() == null ? null : request.getIssues().stream().collect(Collectors.joining(","))) .setParam("languages", request.getLanguages() == null ? null : request.getLanguages().stream().collect(Collectors.joining(","))) .setParam("onComponentOnly", request.getOnComponentOnly()) .setParam("owaspTop10", request.getOwaspTop10() == null ? null : request.getOwaspTop10().stream().collect(Collectors.joining(","))) .setParam("p", request.getP()) .setParam("projects", request.getProjects() == null ? null : request.getProjects().stream().collect(Collectors.joining(","))) .setParam("ps", request.getPs()) .setParam("pullRequest", request.getPullRequest()) .setParam("resolutions", request.getResolutions() == null ? null : request.getResolutions().stream().collect(Collectors.joining(","))) .setParam("resolved", request.getResolved()) .setParam("rules", request.getRules() == null ? null : request.getRules().stream().collect(Collectors.joining(","))) .setParam("s", request.getS()) .setParam("sansTop25", request.getSansTop25() == null ? null : request.getSansTop25().stream().collect(Collectors.joining(","))) .setParam("sonarsourceSecurity", request.getSonarsourceSecurity() == null ? null : request.getSonarsourceSecurity().stream().collect(Collectors.joining(","))) .setParam("severities", request.getSeverities() == null ? null : request.getSeverities().stream().collect(Collectors.joining(","))) .setParam("inNewCodePeriod", request.isInNewCodePeriod()) .setParam("statuses", request.getStatuses() == null ? null : request.getStatuses().stream().collect(Collectors.joining(","))) .setParam("tags", request.getTags() == null ? null : request.getTags().stream().collect(Collectors.joining(","))) .setParam("types", request.getTypes() == null ? null : request.getTypes().stream().collect(Collectors.joining(","))), SearchWsResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/set_severity">Further information about this action online (including a response example)</a> * @since 3.6 */ public SetSeverityResponse setSeverity(SetSeverityRequest request) { return call( new PostRequest(path("set_severity")) .setParam("issue", request.getIssue()) .setParam("severity", request.getSeverity()), SetSeverityResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/set_tags">Further information about this action online (including a response example)</a> * @since 5.1 */ public SetTagsResponse setTags(SetTagsRequest request) { return call( new PostRequest(path("set_tags")) .setParam("issue", request.getIssue()) .setParam("tags", request.getTags() == null ? null : request.getTags().stream().collect(Collectors.joining(","))), SetTagsResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/set_type">Further information about this action online (including a response example)</a> * @since 5.5 */ public SetTypeResponse setType(SetTypeRequest request) { return call( new PostRequest(path("set_type")) .setParam("issue", request.getIssue()) .setParam("type", request.getType()), SetTypeResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/tags">Further information about this action online (including a response example)</a> * @since 5.1 */ public TagsResponse tags(TagsRequest request) { return call( new GetRequest(path("tags")) .setParam("project", request.getProject()) .setParam("ps", request.getPs()) .setParam("q", request.getQ()), TagsResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/api/issues/pull">Further information about this action online (including a response example)</a> * @since 9.5 */ public InputStream pull(PullRequest request) { return call( new GetRequest(path("pull")) .setParam("projectKey", request.getProjectKey()) .setParam("branchName", request.getBranchName()) .setParam("languages", request.getLanguages()) .setParam("ruleRepositories", request.getRuleRepositories()) .setParam("resolvedOnly", request.getResolvedOnly()) .setParam("changedSince", request.getChangedSince()) ).contentStream(); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/api/issues/pull_taint">Further information about this action online (including a response example)</a> * @since 9.5 */ public InputStream pullTaint(PullRequest request) { return call( new GetRequest(path("pull_taint")) .setParam("projectKey", request.getProjectKey()) .setParam("branchName", request.getBranchName()) .setParam("languages", request.getLanguages()) .setParam("changedSince", request.getChangedSince()) ).contentStream(); } }
15,512
43.071023
170
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/PullRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.issues; public class PullRequest { private String projectKey; private String branchName; private String languages; private String ruleRepositories; private String resolvedOnly; private String changedSince; public String getProjectKey() { return projectKey; } public PullRequest setProjectKey(String projectKey) { this.projectKey = projectKey; return this; } public String getBranchName() { return branchName; } public PullRequest setBranchName(String branchName) { this.branchName = branchName; return this; } public String getLanguages() { return languages; } public PullRequest setLanguages(String languages) { this.languages = languages; return this; } public String getRuleRepositories() { return ruleRepositories; } public PullRequest setRuleRepositories(String ruleRepositories) { this.ruleRepositories = ruleRepositories; return this; } public String getResolvedOnly() { return resolvedOnly; } public PullRequest setResolvedOnly(String resolvedOnly) { this.resolvedOnly = resolvedOnly; return this; } public String getChangedSince() { return changedSince; } public PullRequest setChangedSince(String changedSince) { this.changedSince = changedSince; return this; } }
2,195
24.835294
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/SearchRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.issues; import java.util.List; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/search">Further information about this action online (including a response example)</a> * @since 3.6 */ @Generated("sonar-ws-generator") public class SearchRequest { private List<String> additionalFields; private String asc; private String assigned; private List<String> assignees; private List<String> author; private String branch; private List<String> componentKeys; private String createdAfter; private String createdAt; private String createdBefore; private String createdInLast; private List<String> cwe; private List<String> directories; private String facetMode; private List<String> facets; private List<String> fileUuids; private List<String> issues; private List<String> languages; private String onComponentOnly; private List<String> owaspTop10; private String p; private List<String> projects; private String ps; private String pullRequest; private List<String> resolutions; private String resolved; private List<String> rules; private String s; private List<String> sansTop25; private List<String> severities; private String inNewCodePeriod; private List<String> sonarsourceSecurity; private List<String> statuses; private List<String> tags; private List<String> types; /** * Possible values: * <ul> * <li>"_all"</li> * <li>"comments"</li> * <li>"languages"</li> * <li>"actionPlans"</li> * <li>"rules"</li> * <li>"transitions"</li> * <li>"actions"</li> * <li>"users"</li> * </ul> */ public SearchRequest setAdditionalFields(List<String> additionalFields) { this.additionalFields = additionalFields; return this; } public List<String> getAdditionalFields() { return additionalFields; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public SearchRequest setAsc(String asc) { this.asc = asc; return this; } public String getAsc() { return asc; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public SearchRequest setAssigned(String assigned) { this.assigned = assigned; return this; } public String getAssigned() { return assigned; } /** * Example value: "admin,usera,__me__" */ public SearchRequest setAssignees(List<String> assignees) { this.assignees = assignees; return this; } public List<String> getAssignees() { return assignees; } /** * Example value: "author=torvalds@linux-foundation.org&author=linux@fondation.org" */ public SearchRequest setAuthor(List<String> author) { this.author = author; return this; } public List<String> getAuthor() { return author; } /** * This is part of the internal API. * Example value: "feature/my_branch" */ public SearchRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * Example value: "my_project" */ public SearchRequest setComponentKeys(List<String> componentKeys) { this.componentKeys = componentKeys; return this; } public List<String> getComponentKeys() { return componentKeys; } /** * Example value: "2017-10-19 or 2017-10-19T13:00:00+0200" */ public SearchRequest setCreatedAfter(String createdAfter) { this.createdAfter = createdAfter; return this; } public String getCreatedAfter() { return createdAfter; } /** * Example value: "2017-10-19T13:00:00+0200" */ public SearchRequest setCreatedAt(String createdAt) { this.createdAt = createdAt; return this; } public String getCreatedAt() { return createdAt; } /** * Example value: "2017-10-19 or 2017-10-19T13:00:00+0200" */ public SearchRequest setCreatedBefore(String createdBefore) { this.createdBefore = createdBefore; return this; } public String getCreatedBefore() { return createdBefore; } /** * Example value: "1m2w (1 month 2 weeks)" */ public SearchRequest setCreatedInLast(String createdInLast) { this.createdInLast = createdInLast; return this; } public String getCreatedInLast() { return createdInLast; } /** * Example value: "12,125,unknown" */ public SearchRequest setCwe(List<String> cwe) { this.cwe = cwe; return this; } public List<String> getCwe() { return cwe; } /** * This is part of the internal API. * Example value: "src/main/java/org/sonar/server/" */ public SearchRequest setDirectories(List<String> directories) { this.directories = directories; return this; } public List<String> getDirectories() { return directories; } /** * Possible values: * <ul> * <li>"projects"</li> * <li>"fileUuids"</li> * <li>"assigned_to_me"</li> * <li>"severities"</li> * <li>"statuses"</li> * <li>"resolutions"</li> * <li>"actionPlans"</li> * <li>"rules"</li> * <li>"assignees"</li> * <li>"reporters"</li> * <li>"authors"</li> * <li>"author"</li> * <li>"directories"</li> * <li>"languages"</li> * <li>"tags"</li> * <li>"types"</li> * <li>"owaspTop10"</li> * <li>"sansTop25"</li> * <li>"cwe"</li> * <li>"createdAt"</li> * <li>"sonarsourceSecurity"</li> * </ul> */ public SearchRequest setFacets(List<String> facets) { this.facets = facets; return this; } public List<String> getFacets() { return facets; } /** * This is part of the internal API. * Example value: "bdd82933-3070-4903-9188-7d8749e8bb92" */ public SearchRequest setFileUuids(List<String> fileUuids) { this.fileUuids = fileUuids; return this; } public List<String> getFileUuids() { return fileUuids; } /** * Example value: "5bccd6e8-f525-43a2-8d76-fcb13dde79ef" */ public SearchRequest setIssues(List<String> issues) { this.issues = issues; return this; } public List<String> getIssues() { return issues; } /** * Example value: "java,js" */ public SearchRequest setLanguages(List<String> languages) { this.languages = languages; return this; } public List<String> getLanguages() { return languages; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public SearchRequest setOnComponentOnly(String onComponentOnly) { this.onComponentOnly = onComponentOnly; return this; } public String getOnComponentOnly() { return onComponentOnly; } /** * Possible values: * <ul> * <li>"a1"</li> * <li>"a2"</li> * <li>"a3"</li> * <li>"a4"</li> * <li>"a5"</li> * <li>"a6"</li> * <li>"a7"</li> * <li>"a8"</li> * <li>"a9"</li> * <li>"a10"</li> * <li>"unknown"</li> * </ul> */ public SearchRequest setOwaspTop10(List<String> owaspTop10) { this.owaspTop10 = owaspTop10; return this; } public List<String> getOwaspTop10() { return owaspTop10; } /** * Example value: "42" */ public SearchRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * This is part of the internal API. * Example value: "my_project" */ public SearchRequest setProjects(List<String> projects) { this.projects = projects; return this; } public List<String> getProjects() { return projects; } /** * Example value: "20" */ public SearchRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * This is part of the internal API. * Example value: "5461" */ public SearchRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } /** * Example value: "FIXED,REMOVED" * Possible values: * <ul> * <li>"FALSE-POSITIVE"</li> * <li>"WONTFIX"</li> * <li>"FIXED"</li> * <li>"REMOVED"</li> * </ul> */ public SearchRequest setResolutions(List<String> resolutions) { this.resolutions = resolutions; return this; } public List<String> getResolutions() { return resolutions; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public SearchRequest setResolved(String resolved) { this.resolved = resolved; return this; } public String getResolved() { return resolved; } /** * Example value: "java:AvoidCycles" */ public SearchRequest setRules(List<String> rules) { this.rules = rules; return this; } public List<String> getRules() { return rules; } /** * Possible values: * <ul> * <li>"CREATION_DATE"</li> * <li>"UPDATE_DATE"</li> * <li>"CLOSE_DATE"</li> * <li>"ASSIGNEE"</li> * <li>"SEVERITY"</li> * <li>"STATUS"</li> * <li>"FILE_LINE"</li> * </ul> */ public SearchRequest setS(String s) { this.s = s; return this; } public String getS() { return s; } /** * Possible values: * <ul> * <li>"insecure-interaction"</li> * <li>"risky-resource"</li> * <li>"porous-defenses"</li> * </ul> */ public SearchRequest setSansTop25(List<String> sansTop25) { this.sansTop25 = sansTop25; return this; } public List<String> getSansTop25() { return sansTop25; } /** * Example value: "BLOCKER,CRITICAL" * Possible values: * <ul> * <li>"INFO"</li> * <li>"MINOR"</li> * <li>"MAJOR"</li> * <li>"CRITICAL"</li> * <li>"BLOCKER"</li> * </ul> */ public SearchRequest setSeverities(List<String> severities) { this.severities = severities; return this; } public List<String> getSeverities() { return severities; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public SearchRequest setInNewCodePeriod(String inNewCodePeriod) { this.inNewCodePeriod = inNewCodePeriod; return this; } public String isInNewCodePeriod() { return inNewCodePeriod; } /** * Possible values: * <ul> * <li>"sql-injection"</li> * <li>"command-injection"</li> * <li>"path-traversal-injection"</li> * <li>"ldap-injection"</li> * <li>"xpath-injection"</li> * <li>"expression-lang-injection"</li> * <li>"rce"</li> * <li>"dos"</li> * <li>"ssrf"</li> * <li>"csrf"</li> * <li>"xss"</li> * <li>"log-injection"</li> * <li>"http-response-splitting"</li> * <li>"open-redirect"</li> * <li>"xxe"</li> * <li>"object-injection"</li> * <li>"weak-cryptography"</li> * <li>"auth"</li> * <li>"insecure-conf"</li> * <li>"file-manipulation"</li> * </ul> */ public SearchRequest setSonarsourceSecurity(List<String> sonarsourceSecurity) { this.sonarsourceSecurity = sonarsourceSecurity; return this; } public List<String> getSonarsourceSecurity() { return sonarsourceSecurity; } /** * Example value: "OPEN,REOPENED" * Possible values: * <ul> * <li>"OPEN"</li> * <li>"CONFIRMED"</li> * <li>"REOPENED"</li> * <li>"RESOLVED"</li> * <li>"CLOSED"</li> * </ul> */ public SearchRequest setStatuses(List<String> statuses) { this.statuses = statuses; return this; } public List<String> getStatuses() { return statuses; } /** * Example value: "security,convention" */ public SearchRequest setTags(List<String> tags) { this.tags = tags; return this; } public List<String> getTags() { return tags; } /** * Example value: "CODE_SMELL,BUG" * Possible values: * <ul> * <li>"CODE_SMELL"</li> * <li>"BUG"</li> * <li>"VULNERABILITY"</li> * <li>"SECURITY_HOTSPOT"</li> * </ul> */ public SearchRequest setTypes(List<String> types) { this.types = types; return this; } public List<String> getTypes() { return types; } }
13,423
20.4784
160
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/SetSeverityRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.issues; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/set_severity">Further information about this action online (including a response example)</a> * @since 3.6 */ @Generated("sonar-ws-generator") public class SetSeverityRequest { private String issue; private String severity; /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public SetSeverityRequest setIssue(String issue) { this.issue = issue; return this; } public String getIssue() { return issue; } /** * This is a mandatory parameter. * Possible values: * <ul> * <li>"INFO"</li> * <li>"MINOR"</li> * <li>"MAJOR"</li> * <li>"CRITICAL"</li> * <li>"BLOCKER"</li> * </ul> */ public SetSeverityRequest setSeverity(String severity) { this.severity = severity; return this; } public String getSeverity() { return severity; } }
1,920
26.84058
166
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/SetTagsRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.issues; import java.util.List; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/set_tags">Further information about this action online (including a response example)</a> * @since 5.1 */ @Generated("sonar-ws-generator") public class SetTagsRequest { private String issue; private List<String> tags; /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public SetTagsRequest setIssue(String issue) { this.issue = issue; return this; } public String getIssue() { return issue; } /** * Example value: "security,cwe,misra-c" */ public SetTagsRequest setTags(List<String> tags) { this.tags = tags; return this; } public List<String> getTags() { return tags; } }
1,757
27.354839
162
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/SetTypeRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.issues; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/set_type">Further information about this action online (including a response example)</a> * @since 5.5 */ @Generated("sonar-ws-generator") public class SetTypeRequest { private String issue; private String type; /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public SetTypeRequest setIssue(String issue) { this.issue = issue; return this; } public String getIssue() { return issue; } /** * This is a mandatory parameter. * Possible values: * <ul> * <li>"CODE_SMELL"</li> * <li>"BUG"</li> * <li>"VULNERABILITY"</li> * </ul> */ public SetTypeRequest setType(String type) { this.type = type; return this; } public String getType() { return type; } }
1,835
26.402985
162
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/TagsRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.issues; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/tags">Further information about this action online (including a response example)</a> * @since 5.1 */ @Generated("sonar-ws-generator") public class TagsRequest { private String project; private String ps; private String q; /** * Example value: "my_project" */ public TagsRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } /** * Example value: "20" */ public TagsRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Example value: "misra" */ public TagsRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } }
1,819
23.931507
158
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/package-info.java
/* * SonarQube * Copyright (C) 2009-2023 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. */ @ParametersAreNonnullByDefault @Generated("sonar-ws-generator") package org.sonarqube.ws.client.issues; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,039
37.518519
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/l10n/IndexRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.l10n; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/l10n/index">Further information about this action online (including a response example)</a> * @since 4.4 */ @Generated("sonar-ws-generator") public class IndexRequest { private String locale; private String ts; /** * Example value: "fr-CH" */ public IndexRequest setLocale(String locale) { this.locale = locale; return this; } public String getLocale() { return locale; } /** * Example value: "2014-06-04T09:31:42+0000" */ public IndexRequest setTs(String ts) { this.ts = ts; return this; } public String getTs() { return ts; } }
1,649
26.5
157
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/l10n/L10nService.java
/* * SonarQube * Copyright (C) 2009-2023 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.l10n; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.client.BaseService; import org.sonarqube.ws.client.GetRequest; import org.sonarqube.ws.client.WsConnector; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/l10n">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class L10nService extends BaseService { public L10nService(WsConnector wsConnector) { super(wsConnector, "api/l10n"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/l10n/index">Further information about this action online (including a response example)</a> * @since 4.4 */ public String index(IndexRequest request) { return call( new GetRequest(path("index")) .setParam("locale", request.getLocale()) .setParam("ts", request.getTs()) .setMediaType(MediaTypes.JSON) ).content(); } }
1,902
34.240741
159
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/l10n/package-info.java
/* * SonarQube * Copyright (C) 2009-2023 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. */ @ParametersAreNonnullByDefault @Generated("sonar-ws-generator") package org.sonarqube.ws.client.l10n; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,037
37.444444
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/languages/LanguagesService.java
/* * SonarQube * Copyright (C) 2009-2023 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.languages; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.client.BaseService; import org.sonarqube.ws.client.GetRequest; import org.sonarqube.ws.client.WsConnector; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/languages">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class LanguagesService extends BaseService { public LanguagesService(WsConnector wsConnector) { super(wsConnector, "api/languages"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/languages/list">Further information about this action online (including a response example)</a> * @since 5.1 */ public String list(ListRequest request) { return call( new GetRequest(path("list")) .setParam("ps", request.getPs()) .setParam("q", request.getQ()) .setMediaType(MediaTypes.JSON) ).content(); } }
1,918
34.537037
163
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/languages/ListRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.languages; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/languages/list">Further information about this action online (including a response example)</a> * @since 5.1 */ @Generated("sonar-ws-generator") public class ListRequest { private String ps; private String q; /** * Example value: "25" */ public ListRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Example value: "java" */ public ListRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } }
1,597
25.633333
161
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/languages/package-info.java
/* * SonarQube * Copyright (C) 2009-2023 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. */ @ParametersAreNonnullByDefault @Generated("sonar-ws-generator") package org.sonarqube.ws.client.languages; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,042
37.62963
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/measures/ComponentRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.measures; import java.util.List; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/measures/component">Further information about this action online (including a response example)</a> * @since 5.4 */ @Generated("sonar-ws-generator") public class ComponentRequest { private List<String> additionalFields; private String branch; private String component; private List<String> metricKeys; private String pullRequest; /** * Example value: "periods,metrics" * Possible values: * <ul> * <li>"metrics"</li> * <li>"periods"</li> * </ul> */ public ComponentRequest setAdditionalFields(List<String> additionalFields) { this.additionalFields = additionalFields; return this; } public List<String> getAdditionalFields() { return additionalFields; } /** * This is part of the internal API. * Example value: "feature/my_branch" */ public ComponentRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * Example value: "my_project" */ public ComponentRequest setComponent(String component) { this.component = component; return this; } public String getComponent() { return component; } /** * This is a mandatory parameter. * Example value: "ncloc,complexity,violations" */ public ComponentRequest setMetricKeys(List<String> metricKeys) { this.metricKeys = metricKeys; return this; } public List<String> getMetricKeys() { return metricKeys; } /** * This is part of the internal API. * Example value: "5461" */ public ComponentRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } }
2,812
25.046296
165
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/measures/ComponentTreeRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.measures; import java.util.List; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/measures/component_tree">Further information about this action online (including a response example)</a> * @since 5.4 */ @Generated("sonar-ws-generator") public class ComponentTreeRequest { private List<String> additionalFields; private String asc; private String branch; private String component; private List<String> metricKeys; private String metricPeriodSort; private String metricSort; private String metricSortFilter; private String p; private String ps; private String pullRequest; private String q; private List<String> qualifiers; private List<String> s; private String strategy; /** * Example value: "periods,metrics" * Possible values: * <ul> * <li>"metrics"</li> * <li>"periods"</li> * </ul> */ public ComponentTreeRequest setAdditionalFields(List<String> additionalFields) { this.additionalFields = additionalFields; return this; } public List<String> getAdditionalFields() { return additionalFields; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public ComponentTreeRequest setAsc(String asc) { this.asc = asc; return this; } public String getAsc() { return asc; } /** * This is part of the internal API. * Example value: "feature/my_branch" */ public ComponentTreeRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * Example value: "my_project" */ public ComponentTreeRequest setComponent(String component) { this.component = component; return this; } public String getComponent() { return component; } /** * This is a mandatory parameter. * Example value: "ncloc,complexity,violations" */ public ComponentTreeRequest setMetricKeys(List<String> metricKeys) { this.metricKeys = metricKeys; return this; } public List<String> getMetricKeys() { return metricKeys; } /** * Possible values: * <ul> * <li>"1"</li> * </ul> */ public ComponentTreeRequest setMetricPeriodSort(String metricPeriodSort) { this.metricPeriodSort = metricPeriodSort; return this; } public String getMetricPeriodSort() { return metricPeriodSort; } /** * Example value: "ncloc" */ public ComponentTreeRequest setMetricSort(String metricSort) { this.metricSort = metricSort; return this; } public String getMetricSort() { return metricSort; } /** * Possible values: * <ul> * <li>"all"</li> * <li>"withMeasuresOnly"</li> * </ul> */ public ComponentTreeRequest setMetricSortFilter(String metricSortFilter) { this.metricSortFilter = metricSortFilter; return this; } public String getMetricSortFilter() { return metricSortFilter; } /** * Example value: "42" */ public ComponentTreeRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "20" */ public ComponentTreeRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * This is part of the internal API. * Example value: "5461" */ public ComponentTreeRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } /** * Example value: "FILE_NAM" */ public ComponentTreeRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * Possible values: * <ul> * <li>"DIR"</li> * <li>"FIL"</li> * <li>"TRK"</li> * <li>"UTS"</li> * </ul> */ public ComponentTreeRequest setQualifiers(List<String> qualifiers) { this.qualifiers = qualifiers; return this; } public List<String> getQualifiers() { return qualifiers; } /** * Example value: "name,path" * Possible values: * <ul> * <li>"metric"</li> * <li>"metricPeriod"</li> * <li>"name"</li> * <li>"path"</li> * <li>"qualifier"</li> * </ul> */ public ComponentTreeRequest setS(List<String> s) { this.s = s; return this; } public List<String> getS() { return s; } /** * Possible values: * <ul> * <li>"all"</li> * <li>"children"</li> * <li>"leaves"</li> * </ul> */ public ComponentTreeRequest setStrategy(String strategy) { this.strategy = strategy; return this; } public String getStrategy() { return strategy; } }
5,751
20.303704
170
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/measures/MeasuresService.java
/* * SonarQube * Copyright (C) 2009-2023 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.measures; import java.util.stream.Collectors; import javax.annotation.Generated; import org.sonarqube.ws.client.BaseService; import org.sonarqube.ws.client.GetRequest; import org.sonarqube.ws.client.WsConnector; import org.sonarqube.ws.Measures.ComponentWsResponse; import org.sonarqube.ws.Measures.ComponentTreeWsResponse; import org.sonarqube.ws.Measures.SearchWsResponse; import org.sonarqube.ws.Measures.SearchHistoryResponse; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/measures">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class MeasuresService extends BaseService { public MeasuresService(WsConnector wsConnector) { super(wsConnector, "api/measures"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/measures/component">Further information about this action online (including a response example)</a> * @since 5.4 */ public ComponentWsResponse component(ComponentRequest request) { return call( new GetRequest(path("component")) .setParam("additionalFields", request.getAdditionalFields() == null ? null : request.getAdditionalFields().stream().collect(Collectors.joining(","))) .setParam("branch", request.getBranch()) .setParam("component", request.getComponent()) .setParam("metricKeys", request.getMetricKeys() == null ? null : request.getMetricKeys().stream().collect(Collectors.joining(","))) .setParam("pullRequest", request.getPullRequest()), ComponentWsResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/measures/component_tree">Further information about this action online (including a response example)</a> * @since 5.4 */ public ComponentTreeWsResponse componentTree(ComponentTreeRequest request) { return call( new GetRequest(path("component_tree")) .setParam("additionalFields", request.getAdditionalFields() == null ? null : request.getAdditionalFields().stream().collect(Collectors.joining(","))) .setParam("asc", request.getAsc()) .setParam("branch", request.getBranch()) .setParam("component", request.getComponent()) .setParam("metricKeys", request.getMetricKeys() == null ? null : request.getMetricKeys().stream().collect(Collectors.joining(","))) .setParam("metricPeriodSort", request.getMetricPeriodSort()) .setParam("metricSort", request.getMetricSort()) .setParam("metricSortFilter", request.getMetricSortFilter()) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("pullRequest", request.getPullRequest()) .setParam("q", request.getQ()) .setParam("qualifiers", request.getQualifiers() == null ? null : request.getQualifiers().stream().collect(Collectors.joining(","))) .setParam("s", request.getS() == null ? null : request.getS().stream().collect(Collectors.joining(","))) .setParam("strategy", request.getStrategy()), ComponentTreeWsResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/measures/search">Further information about this action online (including a response example)</a> * @since 6.2 */ public SearchWsResponse search(SearchRequest request) { return call( new GetRequest(path("search")) .setParam("metricKeys", request.getMetricKeys() == null ? null : request.getMetricKeys().stream().collect(Collectors.joining(","))) .setParam("projectKeys", request.getProjectKeys() == null ? null : request.getProjectKeys().stream().collect(Collectors.joining(","))), SearchWsResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/measures/search_history">Further information about this action online (including a response example)</a> * @since 6.3 */ public SearchHistoryResponse searchHistory(SearchHistoryRequest request) { return call( new GetRequest(path("search_history")) .setParam("branch", request.getBranch()) .setParam("component", request.getComponent()) .setParam("from", request.getFrom()) .setParam("metrics", request.getMetrics() == null ? null : request.getMetrics().stream().collect(Collectors.joining(","))) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("pullRequest", request.getPullRequest()) .setParam("to", request.getTo()), SearchHistoryResponse.parser()); } }
5,727
45.193548
172
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/measures/SearchHistoryRequest.java
/* * SonarQube * Copyright (C) 2009-2023 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.measures; import java.util.List; import javax.annotation.Generated; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/measures/search_history">Further information about this action online (including a response example)</a> * @since 6.3 */ @Generated("sonar-ws-generator") public class SearchHistoryRequest { private String branch; private String component; private String from; private List<String> metrics; private String p; private String ps; private String pullRequest; private String to; /** * This is part of the internal API. * Example value: "feature/my_branch" */ public SearchHistoryRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * This is a mandatory parameter. * Example value: "my_project" */ public SearchHistoryRequest setComponent(String component) { this.component = component; return this; } public String getComponent() { return component; } /** * Example value: "2017-10-19 or 2017-10-19T13:00:00+0200" */ public SearchHistoryRequest setFrom(String from) { this.from = from; return this; } public String getFrom() { return from; } /** * This is a mandatory parameter. * Example value: "ncloc,coverage,new_violations" */ public SearchHistoryRequest setMetrics(List<String> metrics) { this.metrics = metrics; return this; } public List<String> getMetrics() { return metrics; } /** * Example value: "42" */ public SearchHistoryRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "20" */ public SearchHistoryRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * This is part of the internal API. * Example value: "5461" */ public SearchHistoryRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } /** * Example value: "2017-10-19 or 2017-10-19T13:00:00+0200" */ public SearchHistoryRequest setTo(String to) { this.to = to; return this; } public String getTo() { return to; } }
3,292
22.027972
170
java