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/measures/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.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">Further information about this action online (including a response example)</a> * @since 6.2 */ @Generated("sonar-ws-generator") public class SearchRequest { private List<String> metricKeys; private List<String> projectKeys; /** * This is a mandatory parameter. * Example value: "ncloc,complexity,violations" */ public SearchRequest setMetricKeys(List<String> metricKeys) { this.metricKeys = metricKeys; return this; } public List<String> getMetricKeys() { return metricKeys; } /** * This is a mandatory parameter. * Example value: "my_project,another_project" */ public SearchRequest setProjectKeys(List<String> projectKeys) { this.projectKeys = projectKeys; return this; } public List<String> getProjectKeys() { return projectKeys; } }
1,907
29.285714
162
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/measures/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.measures; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,041
37.592593
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/MetricsService.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.metrics; 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/metrics">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class MetricsService extends BaseService { public MetricsService(WsConnector wsConnector) { super(wsConnector, "api/metrics"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/metrics/search">Further information about this action online (including a response example)</a> * @since 5.2 */ public String search(SearchRequest request) { return call( new GetRequest(path("search")) .setParam("f", request.getF() == null ? null : request.getF().stream().collect(Collectors.joining(","))) .setParam("isCustom", request.getIsCustom()) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .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/metrics/types">Further information about this action online (including a response example)</a> * @since 5.2 */ public String types() { return call( new GetRequest(path("types")) .setMediaType(MediaTypes.JSON) ).content(); } }
2,522
34.041667
163
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/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.metrics; 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/metrics/search">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class SearchRequest { private List<String> f; private String isCustom; private String p; private String ps; /** * Possible values: * <ul> * <li>"name"</li> * <li>"description"</li> * <li>"domain"</li> * <li>"direction"</li> * <li>"qualitative"</li> * <li>"hidden"</li> * <li>"custom"</li> * <li>"decimalScale"</li> * </ul> */ public SearchRequest setF(List<String> f) { this.f = f; return this; } public List<String> getF() { return f; } /** * Example value: "true" */ public SearchRequest setIsCustom(String isCustom) { this.isCustom = isCustom; return this; } public String getIsCustom() { return isCustom; } /** * 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; } }
2,284
22.556701
161
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/metrics/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.metrics; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,040
37.555556
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/monitoring/MonitoringService.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.monitoring; import javax.annotation.Generated; 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/monitoring">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class MonitoringService extends BaseService { private String bearerToken; public MonitoringService(WsConnector wsConnector) { super(wsConnector, "api/monitoring"); } /** * * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/monitoring/metrics">Further information about this action online (including a response example)</a> * @since 9.3 * @return */ public String metrics(String mediaType) { GetRequest request = new GetRequest(path("metrics")).setMediaType(mediaType); if (bearerToken != null && !bearerToken.isEmpty()) { request.setHeader("Authorization", "Bearer " + bearerToken); } return call(request).content(); } public MonitoringService withBearerToken(String bearerToken) { this.bearerToken = bearerToken; return this; } }
2,077
34.220339
167
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/navigation/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.navigation; 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/navigation/component">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class ComponentRequest { private String branch; private String component; private String pullRequest; /** * 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 part of the internal API. * Example value: "5461" */ public ComponentRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } }
2,056
26.426667
167
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/navigation/NavigationService.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.navigation; 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/navigation">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class NavigationService extends BaseService { public NavigationService(WsConnector wsConnector) { super(wsConnector, "api/navigation"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/navigation/component">Further information about this action online (including a response example)</a> * @since 5.2 */ public String component(ComponentRequest request) { return call( new GetRequest(path("component")) .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/navigation/global">Further information about this action online (including a response example)</a> * @since 5.2 */ public String global() { return call( new GetRequest(path("global")) .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/navigation/settings">Further information about this action online (including a response example)</a> * @since 5.2 */ public String settings() { return call( new GetRequest(path("settings")) .setMediaType(MediaTypes.JSON) ).content(); } }
2,855
33.409639
169
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/navigation/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.navigation; 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/newcodeperiods/NewCodePeriodsService.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.newcodeperiods; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.NewCodePeriods; 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/new_code_periods">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class NewCodePeriodsService extends BaseService { public NewCodePeriodsService(WsConnector wsConnector) { super(wsConnector, "api/new_code_periods"); } /** * This is part of the internal API. * This is a POST request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/new_code_periods/set">Further information about this action online (including a response example)</a> * @since 8.0 */ public void set(SetRequest request) { call( new PostRequest(path("set")) .setParam("branch", request.getBranch()) .setParam("project", request.getProject()) .setParam("type", request.getType()) .setParam("value", request.getValue()) .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/new_code_periods/show">Further information about this action online (including a response example)</a> * @since 8.0 */ public NewCodePeriods.ShowWSResponse show(ShowRequest request) { return call( new GetRequest(path("show")) .setParam("branch", request.getBranch()) .setParam("project", request.getProject()) .setMediaType(MediaTypes.JSON), NewCodePeriods.ShowWSResponse.parser()); } /** * This is part of the internal API. * This is a POST request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/new_code_periods/unset">Further information about this action online (including a response example)</a> * @since 8.0 */ public void unset(UnsetRequest request) { call( new PostRequest(path("unset")) .setParam("branch", request.getBranch()) .setParam("project", request.getProject()) .setMediaType(MediaTypes.JSON) ).content(); } }
3,244
35.055556
171
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/newcodeperiods/SetRequest.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.newcodeperiods; 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/new_code_periods/set">Further information about this action online (including a response example)</a> * @since 8.0 */ @Generated("sonar-ws-generator") public class SetRequest { private String branch; private String project; private String type; private String value; /** * */ public SetRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * */ public SetRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } /** * This is a mandatory parameter. */ public SetRequest setType(String type) { this.type = type; return this; } public String getType() { return type; } /** * */ public SetRequest setValue(String value) { this.value = value; return this; } public String getValue() { return value; } }
2,028
22.321839
167
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/newcodeperiods/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.newcodeperiods; 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/new_code_periods/show">Further information about this action online (including a response example)</a> * @since 8.0 */ @Generated("sonar-ws-generator") public class ShowRequest { private String branch; private String project; /** * */ public ShowRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * */ public ShowRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } }
1,640
25.901639
168
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/newcodeperiods/UnsetRequest.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.newcodeperiods; 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/new_code_periods/unset">Further information about this action online (including a response example)</a> * @since 8.0 */ @Generated("sonar-ws-generator") public class UnsetRequest { private String branch; private String project; /** * */ public UnsetRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * */ public UnsetRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } }
1,644
25.967213
169
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/newcodeperiods/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.newcodeperiods; import javax.annotation.Generated; import javax.annotation.ParametersAreNonnullByDefault;
1,047
37.814815
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/notifications/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.notifications; 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/notifications/add">Further information about this action online (including a response example)</a> * @since 6.3 */ @Generated("sonar-ws-generator") public class AddRequest { private String channel; private String login; private String project; private String type; /** * Possible values: * <ul> * <li>"EmailNotificationChannel"</li> * </ul> */ public AddRequest setChannel(String channel) { this.channel = channel; return this; } public String getChannel() { return channel; } /** */ public AddRequest setLogin(String login) { this.login = login; return this; } public String getLogin() { return login; } /** * Example value: "my_project" */ public AddRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } /** * This is a mandatory parameter. * Example value: "SQ-MyNewIssues" */ public AddRequest setType(String type) { this.type = type; return this; } public String getType() { return type; } }
2,169
23.382022
164
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/notifications/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.notifications; 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/notifications/list">Further information about this action online (including a response example)</a> * @since 6.3 */ @Generated("sonar-ws-generator") public class ListRequest { private String login; /** */ public ListRequest setLogin(String login) { this.login = login; return this; } public String getLogin() { return login; } }
1,422
29.934783
165
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/notifications/NotificationsService.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.notifications; 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.Notifications.ListResponse; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/notifications">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class NotificationsService extends BaseService { public NotificationsService(WsConnector wsConnector) { super(wsConnector, "api/notifications"); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/notifications/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("channel", request.getChannel()) .setParam("login", request.getLogin()) .setParam("project", request.getProject()) .setParam("type", request.getType()) .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/notifications/list">Further information about this action online (including a response example)</a> * @since 6.3 */ public ListResponse list(ListRequest request) { return call( new GetRequest(path("list")) .setParam("login", request.getLogin()), ListResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/notifications/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("channel", request.getChannel()) .setParam("login", request.getLogin()) .setParam("project", request.getProject()) .setParam("type", request.getType()) .setMediaType(MediaTypes.JSON) ).content(); } }
3,216
34.744444
169
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/notifications/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.notifications; 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/notifications/remove">Further information about this action online (including a response example)</a> * @since 6.3 */ @Generated("sonar-ws-generator") public class RemoveRequest { private String channel; private String login; private String project; private String type; /** * Possible values: * <ul> * <li>"EmailNotificationChannel"</li> * </ul> */ public RemoveRequest setChannel(String channel) { this.channel = channel; return this; } public String getChannel() { return channel; } /** */ public RemoveRequest setLogin(String login) { this.login = login; return this; } public String getLogin() { return login; } /** * Example value: "my_project" */ public RemoveRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } /** * This is a mandatory parameter. * Example value: "SQ-MyNewIssues" */ public RemoveRequest setType(String type) { this.type = type; return this; } public String getType() { return type; } }
2,187
23.58427
167
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/notifications/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.notifications; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,046
37.777778
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permission/PermissionsWsParameters.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.permission; public class PermissionsWsParameters { public static final String CONTROLLER = "api/permissions"; public static final String PARAM_PERMISSION = "permission"; public static final String PARAM_GROUP_NAME = "groupName"; public static final String PARAM_PROJECT_ID = "projectId"; public static final String PARAM_PROJECT_KEY = "projectKey"; public static final String PARAM_USER_LOGIN = "login"; public static final String PARAM_TEMPLATE_ID = "templateId"; public static final String PARAM_TEMPLATE_NAME = "templateName"; public static final String PARAM_ID = "id"; public static final String PARAM_NAME = "name"; public static final String PARAM_DESCRIPTION = "description"; public static final String PARAM_PROJECT_KEY_PATTERN = "projectKeyPattern"; public static final String PARAM_QUALIFIER = "qualifier"; private PermissionsWsParameters() { // static utils only } }
1,792
40.697674
77
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permission/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.permission; import javax.annotation.ParametersAreNonnullByDefault;
975
38.04
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/AddGroupRequest.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.permissions; 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/permissions/add_group">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class AddGroupRequest { private String groupName; private String permission; private String projectId; private String projectKey; /** * Example value: "sonar-administrators" */ public AddGroupRequest setGroupName(String groupName) { this.groupName = groupName; return this; } public String getGroupName() { return groupName; } /** * This is a mandatory parameter. */ public AddGroupRequest setPermission(String permission) { this.permission = permission; return this; } public String getPermission() { return permission; } /** * Example value: "ce4c03d6-430f-40a9-b777-ad877c00aa4d" */ public AddGroupRequest setProjectId(String projectId) { this.projectId = projectId; return this; } public String getProjectId() { return projectId; } /** * Example value: "my_project" */ public AddGroupRequest setProjectKey(String projectKey) { this.projectKey = projectKey; return this; } public String getProjectKey() { return projectKey; } }
2,280
25.523256
168
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/AddGroupToTemplateRequest.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.permissions; 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/permissions/add_group_to_template">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class AddGroupToTemplateRequest { private String groupName; private String permission; private String templateId; private String templateName; /** * Example value: "sonar-administrators" */ public AddGroupToTemplateRequest setGroupName(String groupName) { this.groupName = groupName; return this; } public String getGroupName() { return groupName; } /** * This is a mandatory parameter. * Possible values: * <ul> * <li>"admin"</li> * <li>"codeviewer"</li> * <li>"issueadmin"</li> * <li>"scan"</li> * <li>"user"</li> * </ul> */ public AddGroupToTemplateRequest setPermission(String permission) { this.permission = permission; return this; } public String getPermission() { return permission; } /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public AddGroupToTemplateRequest setTemplateId(String templateId) { this.templateId = templateId; return this; } public String getTemplateId() { return templateId; } /** * Example value: "Default Permission Template for Projects" */ public AddGroupToTemplateRequest setTemplateName(String templateName) { this.templateName = templateName; return this; } public String getTemplateName() { return templateName; } }
2,548
26.117021
180
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/AddProjectCreatorToTemplateRequest.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.permissions; 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/permissions/add_project_creator_to_template">Further information about this action online (including a response example)</a> * @since 6.0 */ @Generated("sonar-ws-generator") public class AddProjectCreatorToTemplateRequest { private String permission; private String templateId; private String templateName; /** * This is a mandatory parameter. * Possible values: * <ul> * <li>"admin"</li> * <li>"codeviewer"</li> * <li>"issueadmin"</li> * <li>"scan"</li> * <li>"user"</li> * </ul> */ public AddProjectCreatorToTemplateRequest setPermission(String permission) { this.permission = permission; return this; } public String getPermission() { return permission; } /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public AddProjectCreatorToTemplateRequest setTemplateId(String templateId) { this.templateId = templateId; return this; } public String getTemplateId() { return templateId; } /** * Example value: "Default Permission Template for Projects" */ public AddProjectCreatorToTemplateRequest setTemplateName(String templateName) { this.templateName = templateName; return this; } public String getTemplateName() { return templateName; } }
2,329
27.765432
190
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/AddUserRequest.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.permissions; 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/permissions/add_user">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class AddUserRequest { private String login; private String permission; private String projectId; private String projectKey; /** * This is a mandatory parameter. * Example value: "g.hopper" */ public AddUserRequest setLogin(String login) { this.login = login; return this; } public String getLogin() { return login; } /** * This is a mandatory parameter. */ public AddUserRequest setPermission(String permission) { this.permission = permission; return this; } public String getPermission() { return permission; } /** * Example value: "ce4c03d6-430f-40a9-b777-ad877c00aa4d" */ public AddUserRequest setProjectId(String projectId) { this.projectId = projectId; return this; } public String getProjectId() { return projectId; } /** * Example value: "my_project" */ public AddUserRequest setProjectKey(String projectKey) { this.projectKey = projectKey; return this; } public String getProjectKey() { return projectKey; } }
2,270
25.103448
167
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/AddUserToTemplateRequest.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.permissions; 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/permissions/add_user_to_template">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class AddUserToTemplateRequest { private String login; private String permission; private String templateId; private String templateName; /** * This is a mandatory parameter. * Example value: "g.hopper" */ public AddUserToTemplateRequest setLogin(String login) { this.login = login; return this; } public String getLogin() { return login; } /** * This is a mandatory parameter. * Possible values: * <ul> * <li>"admin"</li> * <li>"codeviewer"</li> * <li>"issueadmin"</li> * <li>"scan"</li> * <li>"user"</li> * </ul> */ public AddUserToTemplateRequest setPermission(String permission) { this.permission = permission; return this; } public String getPermission() { return permission; } /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public AddUserToTemplateRequest setTemplateId(String templateId) { this.templateId = templateId; return this; } public String getTemplateId() { return templateId; } /** * Example value: "Default Permission Template for Projects" */ public AddUserToTemplateRequest setTemplateName(String templateName) { this.templateName = templateName; return this; } public String getTemplateName() { return templateName; } }
2,538
25.726316
179
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/ApplyTemplateRequest.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.permissions; 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/permissions/apply_template">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class ApplyTemplateRequest { private String projectId; private String projectKey; private String templateId; private String templateName; /** * Example value: "ce4c03d6-430f-40a9-b777-ad877c00aa4d" */ public ApplyTemplateRequest setProjectId(String projectId) { this.projectId = projectId; return this; } public String getProjectId() { return projectId; } /** * Example value: "my_project" */ public ApplyTemplateRequest setProjectKey(String projectKey) { this.projectKey = projectKey; return this; } public String getProjectKey() { return projectKey; } /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public ApplyTemplateRequest setTemplateId(String templateId) { this.templateId = templateId; return this; } public String getTemplateId() { return templateId; } /** * Example value: "Default Permission Template for Projects" */ public ApplyTemplateRequest setTemplateName(String templateName) { this.templateName = templateName; return this; } public String getTemplateName() { return templateName; } }
2,358
26.430233
173
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/BulkApplyTemplateRequest.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.permissions; 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/permissions/bulk_apply_template">Further information about this action online (including a response example)</a> * @since 5.5 */ @Generated("sonar-ws-generator") public class BulkApplyTemplateRequest { private String analyzedBefore; private String onProvisionedOnly; private List<String> projects; private String q; private List<String> qualifiers; private String templateId; private String templateName; private String visibility; /** * Example value: "2017-10-19 or 2017-10-19T13:00:00+0200" */ public BulkApplyTemplateRequest setAnalyzedBefore(String analyzedBefore) { this.analyzedBefore = analyzedBefore; return this; } public String getAnalyzedBefore() { return analyzedBefore; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public BulkApplyTemplateRequest setOnProvisionedOnly(String onProvisionedOnly) { this.onProvisionedOnly = onProvisionedOnly; return this; } public String getOnProvisionedOnly() { return onProvisionedOnly; } /** * Example value: "my_project,another_project" */ public BulkApplyTemplateRequest setProjects(List<String> projects) { this.projects = projects; return this; } public List<String> getProjects() { return projects; } /** * Example value: "apac" */ public BulkApplyTemplateRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * Possible values: * <ul> * <li>"TRK"</li> * </ul> */ public BulkApplyTemplateRequest setQualifiers(List<String> qualifiers) { this.qualifiers = qualifiers; return this; } public List<String> getQualifiers() { return qualifiers; } /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public BulkApplyTemplateRequest setTemplateId(String templateId) { this.templateId = templateId; return this; } public String getTemplateId() { return templateId; } /** * Example value: "Default Permission Template for Projects" */ public BulkApplyTemplateRequest setTemplateName(String templateName) { this.templateName = templateName; return this; } public String getTemplateName() { return templateName; } /** * This is part of the internal API. * Possible values: * <ul> * <li>"private"</li> * <li>"public"</li> * </ul> */ public BulkApplyTemplateRequest setVisibility(String visibility) { this.visibility = visibility; return this; } public String getVisibility() { return visibility; } }
3,737
23.431373
178
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/CreateTemplateRequest.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.permissions; 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/permissions/create_template">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class CreateTemplateRequest { private String description; private String name; private String projectKeyPattern; /** * Example value: "Permissions for all projects related to the financial service" */ public CreateTemplateRequest setDescription(String description) { this.description = description; return this; } public String getDescription() { return description; } /** * This is a mandatory parameter. * Example value: "Financial Service Permissions" */ public CreateTemplateRequest setName(String name) { this.name = name; return this; } public String getName() { return name; } /** * Example value: ".*\\.finance\\..*" */ public CreateTemplateRequest setProjectKeyPattern(String projectKeyPattern) { this.projectKeyPattern = projectKeyPattern; return this; } public String getProjectKeyPattern() { return projectKeyPattern; } }
2,160
28.202703
174
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/DeleteTemplateRequest.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.permissions; 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/permissions/delete_template">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class DeleteTemplateRequest { private String templateId; private String templateName; /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public DeleteTemplateRequest setTemplateId(String templateId) { this.templateId = templateId; return this; } public String getTemplateId() { return templateId; } /** * Example value: "Default Permission Template for Projects" */ public DeleteTemplateRequest setTemplateName(String templateName) { this.templateName = templateName; return this; } public String getTemplateName() { return templateName; } }
1,829
29.5
174
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/GroupsRequest.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.permissions; 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/permissions/groups">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class GroupsRequest { private String p; private String permission; private String projectId; private String projectKey; private String ps; private String q; /** * Example value: "42" */ public GroupsRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** */ public GroupsRequest setPermission(String permission) { this.permission = permission; return this; } public String getPermission() { return permission; } /** * Example value: "ce4c03d6-430f-40a9-b777-ad877c00aa4d" */ public GroupsRequest setProjectId(String projectId) { this.projectId = projectId; return this; } public String getProjectId() { return projectId; } /** * Example value: "my_project" */ public GroupsRequest setProjectKey(String projectKey) { this.projectKey = projectKey; return this; } public String getProjectKey() { return projectKey; } /** * Example value: "20" */ public GroupsRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Example value: "sonar" */ public GroupsRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } }
2,525
21.756757
165
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/PermissionsService.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.permissions; import java.util.stream.Collectors; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.Permissions.CreateTemplateWsResponse; import org.sonarqube.ws.Permissions.SearchTemplatesWsResponse; import org.sonarqube.ws.Permissions.UpdateTemplateWsResponse; import org.sonarqube.ws.Permissions.UsersWsResponse; import org.sonarqube.ws.Permissions.WsGroupsResponse; import org.sonarqube.ws.Permissions.WsTemplateGroupsResponse; 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/permissions">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class PermissionsService extends BaseService { public PermissionsService(WsConnector wsConnector) { super(wsConnector, "api/permissions"); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/permissions/add_group">Further information about this action online (including a response example)</a> * @since 5.2 */ public void addGroup(AddGroupRequest request) { call( new PostRequest(path("add_group")) .setParam("groupName", request.getGroupName()) .setParam("permission", request.getPermission()) .setParam("projectId", request.getProjectId()) .setParam("projectKey", request.getProjectKey()) .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/permissions/add_group_to_template">Further information about this action online (including a response example)</a> * @since 5.2 */ public void addGroupToTemplate(AddGroupToTemplateRequest request) { call( new PostRequest(path("add_group_to_template")) .setParam("groupName", request.getGroupName()) .setParam("permission", request.getPermission()) .setParam("templateId", request.getTemplateId()) .setParam("templateName", request.getTemplateName()) .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/permissions/add_project_creator_to_template">Further information about this action online (including a response example)</a> * @since 6.0 */ public void addProjectCreatorToTemplate(AddProjectCreatorToTemplateRequest request) { call( new PostRequest(path("add_project_creator_to_template")) .setParam("permission", request.getPermission()) .setParam("templateId", request.getTemplateId()) .setParam("templateName", request.getTemplateName()) .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/permissions/add_user">Further information about this action online (including a response example)</a> * @since 5.2 */ public void addUser(AddUserRequest request) { call( new PostRequest(path("add_user")) .setParam("login", request.getLogin()) .setParam("permission", request.getPermission()) .setParam("projectId", request.getProjectId()) .setParam("projectKey", request.getProjectKey()) .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/permissions/add_user_to_template">Further information about this action online (including a response example)</a> * @since 5.2 */ public void addUserToTemplate(AddUserToTemplateRequest request) { call( new PostRequest(path("add_user_to_template")) .setParam("login", request.getLogin()) .setParam("permission", request.getPermission()) .setParam("templateId", request.getTemplateId()) .setParam("templateName", request.getTemplateName()) .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/permissions/apply_template">Further information about this action online (including a response example)</a> * @since 5.2 */ public void applyTemplate(ApplyTemplateRequest request) { call( new PostRequest(path("apply_template")) .setParam("projectId", request.getProjectId()) .setParam("projectKey", request.getProjectKey()) .setParam("templateId", request.getTemplateId()) .setParam("templateName", request.getTemplateName()) .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/permissions/bulk_apply_template">Further information about this action online (including a response example)</a> * @since 5.5 */ public void bulkApplyTemplate(BulkApplyTemplateRequest request) { call( new PostRequest(path("bulk_apply_template")) .setParam("analyzedBefore", request.getAnalyzedBefore()) .setParam("onProvisionedOnly", request.getOnProvisionedOnly()) .setParam("projects", request.getProjects() == null ? null : request.getProjects().stream().collect(Collectors.joining(","))) .setParam("q", request.getQ()) .setParam("qualifiers", request.getQualifiers() == null ? null : request.getQualifiers().stream().collect(Collectors.joining(","))) .setParam("templateId", request.getTemplateId()) .setParam("templateName", request.getTemplateName()) .setParam("visibility", request.getVisibility()) .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/permissions/create_template">Further information about this action online (including a response example)</a> * @since 5.2 */ public CreateTemplateWsResponse createTemplate(CreateTemplateRequest request) { return call( new PostRequest(path("create_template")) .setParam("description", request.getDescription()) .setParam("name", request.getName()) .setParam("projectKeyPattern", request.getProjectKeyPattern()), CreateTemplateWsResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/permissions/delete_template">Further information about this action online (including a response example)</a> * @since 5.2 */ public void deleteTemplate(DeleteTemplateRequest request) { call( new PostRequest(path("delete_template")) .setParam("templateId", request.getTemplateId()) .setParam("templateName", request.getTemplateName()) .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/permissions/groups">Further information about this action online (including a response example)</a> * @since 5.2 */ public WsGroupsResponse groups(GroupsRequest request) { return call( new GetRequest(path("groups")) .setParam("p", request.getP()) .setParam("permission", request.getPermission()) .setParam("projectId", request.getProjectId()) .setParam("projectKey", request.getProjectKey()) .setParam("ps", request.getPs()) .setParam("q", request.getQ()), WsGroupsResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/permissions/remove_group">Further information about this action online (including a response example)</a> * @since 5.2 */ public void removeGroup(RemoveGroupRequest request) { call( new PostRequest(path("remove_group")) .setParam("groupName", request.getGroupName()) .setParam("permission", request.getPermission()) .setParam("projectId", request.getProjectId()) .setParam("projectKey", request.getProjectKey()) .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/permissions/remove_group_from_template">Further information about this action online (including a response example)</a> * @since 5.2 */ public void removeGroupFromTemplate(RemoveGroupFromTemplateRequest request) { call( new PostRequest(path("remove_group_from_template")) .setParam("groupName", request.getGroupName()) .setParam("permission", request.getPermission()) .setParam("templateId", request.getTemplateId()) .setParam("templateName", request.getTemplateName()) .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/permissions/remove_project_creator_from_template">Further information about this action online (including a response example)</a> * @since 6.0 */ public void removeProjectCreatorFromTemplate(RemoveProjectCreatorFromTemplateRequest request) { call( new PostRequest(path("remove_project_creator_from_template")) .setParam("permission", request.getPermission()) .setParam("templateId", request.getTemplateId()) .setParam("templateName", request.getTemplateName()) .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/permissions/remove_user">Further information about this action online (including a response example)</a> * @since 5.2 */ public void removeUser(RemoveUserRequest request) { call( new PostRequest(path("remove_user")) .setParam("login", request.getLogin()) .setParam("permission", request.getPermission()) .setParam("projectId", request.getProjectId()) .setParam("projectKey", request.getProjectKey()) .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/permissions/remove_user_from_template">Further information about this action online (including a response example)</a> * @since 5.2 */ public void removeUserFromTemplate(RemoveUserFromTemplateRequest request) { call( new PostRequest(path("remove_user_from_template")) .setParam("login", request.getLogin()) .setParam("permission", request.getPermission()) .setParam("templateId", request.getTemplateId()) .setParam("templateName", request.getTemplateName()) .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/permissions/search_templates">Further information about this action online (including a response example)</a> * @since 5.2 */ public SearchTemplatesWsResponse searchTemplates(SearchTemplatesRequest request) { return call( new GetRequest(path("search_templates")) .setParam("q", request.getQ()), SearchTemplatesWsResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/permissions/set_default_template">Further information about this action online (including a response example)</a> * @since 5.2 */ public void setDefaultTemplate(SetDefaultTemplateRequest request) { call( new PostRequest(path("set_default_template")) .setParam("qualifier", request.getQualifier()) .setParam("templateId", request.getTemplateId()) .setParam("templateName", request.getTemplateName()) .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/permissions/template_groups">Further information about this action online (including a response example)</a> * @since 5.2 */ public WsTemplateGroupsResponse templateGroups(TemplateGroupsRequest request) { return call( new GetRequest(path("template_groups")) .setParam("p", request.getP()) .setParam("permission", request.getPermission()) .setParam("ps", request.getPs()) .setParam("q", request.getQ()) .setParam("templateId", request.getTemplateId()) .setParam("templateName", request.getTemplateName()), WsTemplateGroupsResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/permissions/template_users">Further information about this action online (including a response example)</a> * @since 5.2 */ public String templateUsers(TemplateUsersRequest request) { return call( new GetRequest(path("template_users")) .setParam("p", request.getP()) .setParam("permission", request.getPermission()) .setParam("ps", request.getPs()) .setParam("q", request.getQ()) .setParam("templateId", request.getTemplateId()) .setParam("templateName", request.getTemplateName()) .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/permissions/update_template">Further information about this action online (including a response example)</a> * @since 5.2 */ public UpdateTemplateWsResponse updateTemplate(UpdateTemplateRequest request) { return call( new PostRequest(path("update_template")) .setParam("description", request.getDescription()) .setParam("id", request.getId()) .setParam("name", request.getName()) .setParam("projectKeyPattern", request.getProjectKeyPattern()), UpdateTemplateWsResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/permissions/users">Further information about this action online (including a response example)</a> * @since 5.2 */ public UsersWsResponse users(UsersRequest request) { return call( new GetRequest(path("users")) .setParam("p", request.getP()) .setParam("permission", request.getPermission()) .setParam("projectId", request.getProjectId()) .setParam("projectKey", request.getProjectKey()) .setParam("ps", request.getPs()) .setParam("q", request.getQ()), UsersWsResponse.parser()); } }
16,557
38.330166
197
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/RemoveGroupFromTemplateRequest.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.permissions; 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/permissions/remove_group_from_template">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class RemoveGroupFromTemplateRequest { private String groupName; private String permission; private String templateId; private String templateName; /** * Example value: "sonar-administrators" */ public RemoveGroupFromTemplateRequest setGroupName(String groupName) { this.groupName = groupName; return this; } public String getGroupName() { return groupName; } /** * This is a mandatory parameter. * Possible values: * <ul> * <li>"admin"</li> * <li>"codeviewer"</li> * <li>"issueadmin"</li> * <li>"scan"</li> * <li>"user"</li> * </ul> */ public RemoveGroupFromTemplateRequest setPermission(String permission) { this.permission = permission; return this; } public String getPermission() { return permission; } /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public RemoveGroupFromTemplateRequest setTemplateId(String templateId) { this.templateId = templateId; return this; } public String getTemplateId() { return templateId; } /** * Example value: "Default Permission Template for Projects" */ public RemoveGroupFromTemplateRequest setTemplateName(String templateName) { this.templateName = templateName; return this; } public String getTemplateName() { return templateName; } }
2,577
26.72043
185
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/RemoveGroupRequest.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.permissions; 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/permissions/remove_group">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class RemoveGroupRequest { private String groupName; private String permission; private String projectId; private String projectKey; /** * Example value: "sonar-administrators" */ public RemoveGroupRequest setGroupName(String groupName) { this.groupName = groupName; return this; } public String getGroupName() { return groupName; } /** * This is a mandatory parameter. */ public RemoveGroupRequest setPermission(String permission) { this.permission = permission; return this; } public String getPermission() { return permission; } /** * Example value: "ce4c03d6-430f-40a9-b777-ad877c00aa4d" */ public RemoveGroupRequest setProjectId(String projectId) { this.projectId = projectId; return this; } public String getProjectId() { return projectId; } /** * Example value: "my_project" */ public RemoveGroupRequest setProjectKey(String projectKey) { this.projectKey = projectKey; return this; } public String getProjectKey() { return projectKey; } }
2,298
25.732558
171
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/RemoveProjectCreatorFromTemplateRequest.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.permissions; 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/permissions/remove_project_creator_from_template">Further information about this action online (including a response example)</a> * @since 6.0 */ @Generated("sonar-ws-generator") public class RemoveProjectCreatorFromTemplateRequest { private String permission; private String templateId; private String templateName; /** * This is a mandatory parameter. * Possible values: * <ul> * <li>"admin"</li> * <li>"codeviewer"</li> * <li>"issueadmin"</li> * <li>"scan"</li> * <li>"user"</li> * </ul> */ public RemoveProjectCreatorFromTemplateRequest setPermission(String permission) { this.permission = permission; return this; } public String getPermission() { return permission; } /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public RemoveProjectCreatorFromTemplateRequest setTemplateId(String templateId) { this.templateId = templateId; return this; } public String getTemplateId() { return templateId; } /** * Example value: "Default Permission Template for Projects" */ public RemoveProjectCreatorFromTemplateRequest setTemplateName(String templateName) { this.templateName = templateName; return this; } public String getTemplateName() { return templateName; } }
2,354
28.074074
195
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/RemoveUserFromTemplateRequest.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.permissions; 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/permissions/remove_user_from_template">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class RemoveUserFromTemplateRequest { private String login; private String permission; private String templateId; private String templateName; /** * This is a mandatory parameter. * Example value: "g.hopper" */ public RemoveUserFromTemplateRequest setLogin(String login) { this.login = login; return this; } public String getLogin() { return login; } /** * This is a mandatory parameter. * Possible values: * <ul> * <li>"admin"</li> * <li>"codeviewer"</li> * <li>"issueadmin"</li> * <li>"scan"</li> * <li>"user"</li> * </ul> */ public RemoveUserFromTemplateRequest setPermission(String permission) { this.permission = permission; return this; } public String getPermission() { return permission; } /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public RemoveUserFromTemplateRequest setTemplateId(String templateId) { this.templateId = templateId; return this; } public String getTemplateId() { return templateId; } /** * Example value: "Default Permission Template for Projects" */ public RemoveUserFromTemplateRequest setTemplateName(String templateName) { this.templateName = templateName; return this; } public String getTemplateName() { return templateName; } }
2,568
26.042105
184
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/RemoveUserRequest.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.permissions; 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/permissions/remove_user">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class RemoveUserRequest { private String login; private String permission; private String projectId; private String projectKey; /** * This is a mandatory parameter. * Example value: "g.hopper" */ public RemoveUserRequest setLogin(String login) { this.login = login; return this; } public String getLogin() { return login; } /** * This is a mandatory parameter. */ public RemoveUserRequest setPermission(String permission) { this.permission = permission; return this; } public String getPermission() { return permission; } /** * Example value: "ce4c03d6-430f-40a9-b777-ad877c00aa4d" */ public RemoveUserRequest setProjectId(String projectId) { this.projectId = projectId; return this; } public String getProjectId() { return projectId; } /** * Example value: "my_project" */ public RemoveUserRequest setProjectKey(String projectKey) { this.projectKey = projectKey; return this; } public String getProjectKey() { return projectKey; } }
2,288
25.310345
170
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/SearchProjectPermissionsRequest.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.permissions; 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/permissions/search_project_permissions">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class SearchProjectPermissionsRequest { private String p; private String projectId; private String projectKey; private String ps; private String q; private String qualifier; /** * Example value: "42" */ public SearchProjectPermissionsRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "ce4c03d6-430f-40a9-b777-ad877c00aa4d" */ public SearchProjectPermissionsRequest setProjectId(String projectId) { this.projectId = projectId; return this; } public String getProjectId() { return projectId; } /** * Example value: "my_project" */ public SearchProjectPermissionsRequest setProjectKey(String projectKey) { this.projectKey = projectKey; return this; } public String getProjectKey() { return projectKey; } /** * Example value: "20" */ public SearchProjectPermissionsRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Example value: "apac" */ public SearchProjectPermissionsRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * Possible values: * <ul> * <li>"TRK"</li> * </ul> */ public SearchProjectPermissionsRequest setQualifier(String qualifier) { this.qualifier = qualifier; return this; } public String getQualifier() { return qualifier; } }
2,728
22.730435
185
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/SearchTemplatesRequest.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.permissions; 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/permissions/search_templates">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class SearchTemplatesRequest { private String q; /** * Example value: "defau" */ public SearchTemplatesRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } }
1,452
29.914894
175
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/SetDefaultTemplateRequest.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.permissions; 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/permissions/set_default_template">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class SetDefaultTemplateRequest { private String qualifier; private String templateId; private String templateName; /** * Possible values: * <ul> * <li>"TRK"</li> * </ul> */ public SetDefaultTemplateRequest setQualifier(String qualifier) { this.qualifier = qualifier; return this; } public String getQualifier() { return qualifier; } /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public SetDefaultTemplateRequest setTemplateId(String templateId) { this.templateId = templateId; return this; } public String getTemplateId() { return templateId; } /** * Example value: "Default Permission Template for Projects" */ public SetDefaultTemplateRequest setTemplateName(String templateName) { this.templateName = templateName; return this; } public String getTemplateName() { return templateName; } }
2,133
27.078947
179
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/TemplateGroupsRequest.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.permissions; 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/permissions/template_groups">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class TemplateGroupsRequest { private String p; private String permission; private String ps; private String q; private String templateId; private String templateName; /** * Example value: "42" */ public TemplateGroupsRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Possible values: * <ul> * <li>"admin"</li> * <li>"codeviewer"</li> * <li>"issueadmin"</li> * <li>"scan"</li> * <li>"user"</li> * </ul> */ public TemplateGroupsRequest setPermission(String permission) { this.permission = permission; return this; } public String getPermission() { return permission; } /** * Example value: "20" */ public TemplateGroupsRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Example value: "eri" */ public TemplateGroupsRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public TemplateGroupsRequest setTemplateId(String templateId) { this.templateId = templateId; return this; } public String getTemplateId() { return templateId; } /** * Example value: "Default Permission Template for Projects" */ public TemplateGroupsRequest setTemplateName(String templateName) { this.templateName = templateName; return this; } public String getTemplateName() { return templateName; } }
2,794
22.487395
174
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/TemplateUsersRequest.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.permissions; 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/permissions/template_users">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class TemplateUsersRequest { private String p; private String permission; private String ps; private String q; private String templateId; private String templateName; /** * Example value: "42" */ public TemplateUsersRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Possible values: * <ul> * <li>"admin"</li> * <li>"codeviewer"</li> * <li>"issueadmin"</li> * <li>"scan"</li> * <li>"user"</li> * </ul> */ public TemplateUsersRequest setPermission(String permission) { this.permission = permission; return this; } public String getPermission() { return permission; } /** * Example value: "20" */ public TemplateUsersRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Example value: "eri" */ public TemplateUsersRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public TemplateUsersRequest setTemplateId(String templateId) { this.templateId = templateId; return this; } public String getTemplateId() { return templateId; } /** * Example value: "Default Permission Template for Projects" */ public TemplateUsersRequest setTemplateName(String templateName) { this.templateName = templateName; return this; } public String getTemplateName() { return templateName; } }
2,786
22.420168
173
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/UpdateTemplateRequest.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.permissions; 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/permissions/update_template">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class UpdateTemplateRequest { private String description; private String id; private String name; private String projectKeyPattern; /** * Example value: "Permissions for all projects related to the financial service" */ public UpdateTemplateRequest setDescription(String description) { this.description = description; return this; } public String getDescription() { return description; } /** * This is a mandatory parameter. * Example value: "af8cb8cc-1e78-4c4e-8c00-ee8e814009a5" */ public UpdateTemplateRequest setId(String id) { this.id = id; return this; } public String getId() { return id; } /** * Example value: "Financial Service Permissions" */ public UpdateTemplateRequest setName(String name) { this.name = name; return this; } public String getName() { return name; } /** * Example value: ".*\\.finance\\..*" */ public UpdateTemplateRequest setProjectKeyPattern(String projectKeyPattern) { this.projectKeyPattern = projectKeyPattern; return this; } public String getProjectKeyPattern() { return projectKeyPattern; } }
2,388
26.45977
174
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/UsersRequest.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.permissions; 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/permissions/users">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class UsersRequest { private String p; private String permission; private String projectId; private String projectKey; private String ps; private String q; /** * Example value: "42" */ public UsersRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** */ public UsersRequest setPermission(String permission) { this.permission = permission; return this; } public String getPermission() { return permission; } /** * Example value: "ce4c03d6-430f-40a9-b777-ad877c00aa4d" */ public UsersRequest setProjectId(String projectId) { this.projectId = projectId; return this; } public String getProjectId() { return projectId; } /** * Example value: "my_project" */ public UsersRequest setProjectKey(String projectKey) { this.projectKey = projectKey; return this; } public String getProjectKey() { return projectKey; } /** * Example value: "20" */ public UsersRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Example value: "eri" */ public UsersRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } }
2,515
21.666667
164
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/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.permissions; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,044
37.703704
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/plugins/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.plugins; 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/plugins/download">Further information about this action online (including a response example)</a> * @since 7.2 */ @Generated("sonar-ws-generator") public class DownloadRequest { private String plugin; /** * This is a mandatory parameter. * Example value: "cobol" */ public DownloadRequest setPlugin(String plugin) { this.plugin = plugin; return this; } public String getPlugin() { return plugin; } }
1,492
30.765957
163
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/plugins/InstallRequest.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.plugins; 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/plugins/install">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class InstallRequest { private String key; /** * This is a mandatory parameter. */ public InstallRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } }
1,441
29.680851
162
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/plugins/InstalledRequest.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.plugins; 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/plugins/installed">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class InstalledRequest { private List<String> f; /** * Possible values: * <ul> * <li>"category"</li> * </ul> */ public InstalledRequest setF(List<String> f) { this.f = f; return this; } public List<String> getF() { return f; } }
1,508
28.588235
164
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/plugins/PluginsService.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.plugins; 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/plugins">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class PluginsService extends BaseService { public PluginsService(WsConnector wsConnector) { super(wsConnector, "api/plugins"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/plugins/available">Further information about this action online (including a response example)</a> * @since 5.2 */ public String available() { return call( new GetRequest(path("available")) .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/plugins/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 POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/plugins/install">Further information about this action online (including a response example)</a> * @since 5.2 */ public void install(InstallRequest request) { call( new PostRequest(path("install")) .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/api/plugins/installed">Further information about this action online (including a response example)</a> * @since 5.2 */ public String installed(InstalledRequest request) { return call( new GetRequest(path("installed")) .setParam("f", request.getF() == null ? null : request.getF().stream().collect(Collectors.joining(","))) .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/plugins/pending">Further information about this action online (including a response example)</a> * @since 5.2 */ public String pending() { return call( new GetRequest(path("pending")) .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/plugins/uninstall">Further information about this action online (including a response example)</a> * @since 5.2 */ public void uninstall(UninstallRequest request) { call( new PostRequest(path("uninstall")) .setParam("key", request.getKey()) .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/plugins/update">Further information about this action online (including a response example)</a> * @since 5.2 */ public void update(UpdateRequest request) { call( new PostRequest(path("update")) .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/api/plugins/updates">Further information about this action online (including a response example)</a> * @since 5.2 */ public String updates() { return call( new GetRequest(path("updates")) .setMediaType(MediaTypes.JSON) ).content(); } }
5,101
31.705128
167
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/plugins/UninstallRequest.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.plugins; 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/plugins/uninstall">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class UninstallRequest { private String key; /** * This is a mandatory parameter. */ public UninstallRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } }
1,447
29.808511
164
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/plugins/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.plugins; 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/plugins/update">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class UpdateRequest { private String key; /** * This is a mandatory parameter. */ public UpdateRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } }
1,438
29.617021
161
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/plugins/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.plugins; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,040
37.555556
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/project/ProjectsWsParameters.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.project; public class ProjectsWsParameters { public static final int MAX_PAGE_SIZE = 500; public static final String CONTROLLER = "api/projects"; public static final String ACTION_CREATE = "create"; public static final String ACTION_SEARCH = "search"; public static final String ACTION_UPDATE_KEY = "update_key"; public static final String ACTION_UPDATE_VISIBILITY = "update_visibility"; public static final String PARAM_PROJECT = "project"; public static final String PARAM_PROJECT_ID = "projectId"; public static final String PARAM_NAME = "name"; public static final String PARAM_MAIN_BRANCH = "mainBranch"; public static final String PARAM_BRANCH = "branch"; public static final String PARAM_QUALIFIERS = "qualifiers"; public static final String PARAM_FROM = "from"; public static final String PARAM_TO = "to"; public static final String PARAM_DRY_RUN = "dryRun"; public static final String PARAM_VISIBILITY = "visibility"; public static final String PARAM_ANALYZED_BEFORE = "analyzedBefore"; public static final String PARAM_ON_PROVISIONED_ONLY = "onProvisionedOnly"; public static final String PARAM_PROJECT_IDS = "projectIds"; public static final String PARAM_PROJECTS = "projects"; public static final String PARAM_ALM_ID = "almId"; public static final String PARAM_ALM_REPOSITORY_ID = "almRepoId"; public static final String PARAM_NEW_CODE_DEFINITION_VALUE = "newCodeDefinitionValue"; public static final String PARAM_NEW_CODE_DEFINITION_TYPE = "newCodeDefinitionType"; public static final String FILTER_LANGUAGES = "languages"; public static final String FILTER_TAGS = "tags"; public static final String FILTER_QUALIFIER = "qualifier"; private ProjectsWsParameters() { // static utils only } }
2,648
42.42623
88
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/project/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.project; import javax.annotation.ParametersAreNonnullByDefault;
972
37.92
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectanalyses/CreateEventRequest.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.projectanalyses; 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/project_analyses/create_event">Further information about this action online (including a response example)</a> * @since 6.3 */ @Generated("sonar-ws-generator") public class CreateEventRequest { private String analysis; private String category; private String name; /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public CreateEventRequest setAnalysis(String analysis) { this.analysis = analysis; return this; } public String getAnalysis() { return analysis; } /** * Possible values: * <ul> * <li>"VERSION"</li> * <li>"OTHER"</li> * </ul> */ public CreateEventRequest setCategory(String category) { this.category = category; return this; } public String getCategory() { return category; } /** * This is a mandatory parameter. * Example value: "5.6" */ public CreateEventRequest setName(String name) { this.name = name; return this; } public String getName() { return name; } }
2,092
25.493671
176
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectanalyses/DeleteEventRequest.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.projectanalyses; 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/project_analyses/delete_event">Further information about this action online (including a response example)</a> * @since 6.3 */ @Generated("sonar-ws-generator") public class DeleteEventRequest { private String event; /** * This is a mandatory parameter. * Example value: "AU-TpxcA-iU5OvuD2FLz" */ public DeleteEventRequest setEvent(String event) { this.event = event; return this; } public String getEvent() { return event; } }
1,528
30.854167
176
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectanalyses/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.projectanalyses; 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/project_analyses/delete">Further information about this action online (including a response example)</a> * @since 6.3 */ @Generated("sonar-ws-generator") public class DeleteRequest { private String analysis; /** * This is a mandatory parameter. * Example value: "AU-TpxcA-iU5OvuD2FL1" */ public DeleteRequest setAnalysis(String analysis) { this.analysis = analysis; return this; } public String getAnalysis() { return analysis; } }
1,533
30.958333
170
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectanalyses/ProjectAnalysesService.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.projectanalyses; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.ProjectAnalyses.CreateEventResponse; import org.sonarqube.ws.ProjectAnalyses.SearchResponse; import org.sonarqube.ws.ProjectAnalyses.UpdateEventResponse; 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/project_analyses">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class ProjectAnalysesService extends BaseService { public ProjectAnalysesService(WsConnector wsConnector) { super(wsConnector, "api/project_analyses"); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/project_analyses/create_event">Further information about this action online (including a response example)</a> * @since 6.3 */ public CreateEventResponse createEvent(CreateEventRequest request) { return call( new PostRequest(path("create_event")) .setParam("analysis", request.getAnalysis()) .setParam("category", request.getCategory()) .setParam("name", request.getName()), CreateEventResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/project_analyses/delete">Further information about this action online (including a response example)</a> * @since 6.3 */ public void delete(DeleteRequest request) { call( new PostRequest(path("delete")) .setParam("analysis", request.getAnalysis()) .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/project_analyses/delete_event">Further information about this action online (including a response example)</a> * @since 6.3 */ public void deleteEvent(DeleteEventRequest request) { call( new PostRequest(path("delete_event")) .setParam("event", request.getEvent()) .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/project_analyses/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("branch", request.getBranch()) .setParam("category", request.getCategory()) .setParam("from", request.getFrom()) .setParam("p", request.getP()) .setParam("project", request.getProject()) .setParam("ps", request.getPs()) .setParam("pullRequest", request.getPullRequest()) .setParam("to", request.getTo()), SearchResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/project_analyses/update_event">Further information about this action online (including a response example)</a> * @since 6.3 */ public UpdateEventResponse updateEvent(UpdateEventRequest request) { return call( new PostRequest(path("update_event")) .setParam("event", request.getEvent()) .setParam("name", request.getName()), UpdateEventResponse.parser()); } }
4,592
36.341463
178
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectanalyses/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.projectanalyses; 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/project_analyses/search">Further information about this action online (including a response example)</a> * @since 6.3 */ @Generated("sonar-ws-generator") public class SearchRequest { private String branch; private String category; private String from; private String p; private String project; private String ps; private String pullRequest; private String to; /** * 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: "OTHER" * Possible values: * <ul> * <li>"VERSION"</li> * <li>"OTHER"</li> * <li>"QUALITY_PROFILE"</li> * <li>"QUALITY_GATE"</li> * </ul> */ public SearchRequest setCategory(String category) { this.category = category; return this; } public String getCategory() { return category; } /** * Example value: "2013-05-01" */ public SearchRequest setFrom(String from) { this.from = from; return this; } public String getFrom() { return from; } /** * Example value: "42" */ public SearchRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * This is a mandatory parameter. * Example value: "my_project" */ public SearchRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } /** * 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: "2017-10-19 or 2017-10-19T13:00:00+0200" */ public SearchRequest setTo(String to) { this.to = to; return this; } public String getTo() { return to; } }
3,258
21.02027
170
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectanalyses/UpdateEventRequest.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.projectanalyses; 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/project_analyses/update_event">Further information about this action online (including a response example)</a> * @since 6.3 */ @Generated("sonar-ws-generator") public class UpdateEventRequest { private String event; private String name; /** * This is a mandatory parameter. * Example value: "AU-TpxcA-iU5OvuD2FL5" */ public UpdateEventRequest setEvent(String event) { this.event = event; return this; } public String getEvent() { return event; } /** * Example value: "5.6" */ public UpdateEventRequest setName(String name) { this.name = name; return this; } public String getName() { return name; } }
1,734
27.442623
176
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectanalyses/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.projectanalyses; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,048
37.851852
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectbadges/MeasureRequest.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.projectbadges; 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/project_badges/measure">Further information about this action online (including a response example)</a> * @since 7.1 */ @Generated("sonar-ws-generator") public class MeasureRequest { private String branch; private String metric; private String project; private String token; /** * Example value: "feature/my_branch" */ public MeasureRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * This is a mandatory parameter. * Possible values: * <ul> * <li>"bugs"</li> * <li>"code_smells"</li> * <li>"coverage"</li> * <li>"duplicated_lines_density"</li> * <li>"ncloc"</li> * <li>"sqale_rating"</li> * <li>"alert_status"</li> * <li>"reliability_rating"</li> * <li>"security_rating"</li> * <li>"sqale_index"</li> * <li>"vulnerabilities"</li> * </ul> */ public MeasureRequest setMetric(String metric) { this.metric = metric; return this; } public String getMetric() { return metric; } /** * This is a mandatory parameter. * Example value: "my_project" */ public MeasureRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } /** * Tthis an optional parameter. */ public MeasureRequest setToken(String token) { this.token = token; return this; } public String getToken() { return token; } }
2,575
24.50495
169
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectbadges/ProjectBadgesService.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.projectbadges; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.ProjectBadgeToken.TokenWsResponse; 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.client.WsResponse; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/project_badges">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class ProjectBadgesService extends BaseService { public ProjectBadgesService(WsConnector wsConnector) { super(wsConnector, "api/project_badges"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/project_badges/measure">Further information about this action online (including a response example)</a> * @since 7.1 */ public String measure(MeasureRequest request) { return call( new GetRequest(path("measure")) .setParam("branch", request.getBranch()) .setParam("metric", request.getMetric()) .setParam("project", request.getProject()) .setParam("token", request.getToken()) .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/project_badges/quality_gate">Further information about this action online (including a response example)</a> * @since 7.1 */ public String qualityGate(QualityGateRequest request) { return call( new GetRequest(path("quality_gate")) .setParam("branch", request.getBranch()) .setParam("project", request.getProject()) .setParam("token", request.getToken()) .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/project_badges/token">Further information about this action online (including a response example)</a> * @since 9.2 * @return */ public TokenWsResponse token(TokenRequest request) { return call( new GetRequest(path("token")) .setParam("project", request.getProject()) .setMediaType(MediaTypes.JSON), TokenWsResponse.parser() ); } public WsResponse renewToken(RenewTokenRequest request) { return call( new PostRequest(path("renew_token")) .setParam("project", request.getProject()) .setMediaType(MediaTypes.JSON) ); } }
3,573
33.699029
176
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectbadges/QualityGateRequest.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.projectbadges; 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/project_badges/quality_gate">Further information about this action online (including a response example)</a> * @since 7.1 */ @Generated("sonar-ws-generator") public class QualityGateRequest { private String branch; private String project; private String token; /** * Example value: "feature/my_branch" */ public QualityGateRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * This is a mandatory parameter. * Example value: "my_project" */ public QualityGateRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } /** * This is aan optional parameter. */ public QualityGateRequest setToken(String token) { this.token = token; return this; } public String getToken() { return token; } }
1,986
25.851351
174
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectbadges/RenewTokenRequest.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.projectbadges; 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/project_badges/renew_token">Further information about this action online (including a response example)</a> * @since 9.2 */ @Generated("sonar-ws-generator") public class RenewTokenRequest { private String project; /** * This is a mandatory parameter. * Example value: "my_project" */ public RenewTokenRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } }
1,525
30.791667
173
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectbadges/TokenRequest.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.projectbadges; import javax.annotation.Generated; /** * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/project_badges/token">Further information about this action online (including a response example)</a> * @since 9.2 */ @Generated("sonar-ws-generator") public class TokenRequest { private String project; /** * This is a mandatory parameter. * Example value: "my_project" */ public TokenRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } }
1,508
30.4375
167
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectbadges/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.projectbadges; import javax.annotation.Generated; import javax.annotation.ParametersAreNonnullByDefault;
1,046
37.777778
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectbranches/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.projectbranches; 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/project_branches/delete">Further information about this action online (including a response example)</a> * @since 6.6 */ @Generated("sonar-ws-generator") public class DeleteRequest { private String branch; private String project; /** * This is a mandatory parameter. * Example value: "branch1" */ public DeleteRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * This is a mandatory parameter. * Example value: "my_project" */ public DeleteRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } }
1,771
27.580645
170
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectbranches/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.projectbranches; 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/project_branches/list">Further information about this action online (including a response example)</a> * @since 6.6 */ @Generated("sonar-ws-generator") public class ListRequest { private String project; /** * This is a mandatory parameter. * Example value: "my_project" */ public ListRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } }
1,510
30.479167
168
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectbranches/ProjectBranchesService.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.projectbranches; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.ProjectBranches.ListWsResponse; 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/project_branches">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class ProjectBranchesService extends BaseService { public ProjectBranchesService(WsConnector wsConnector) { super(wsConnector, "api/project_branches"); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/project_branches/delete">Further information about this action online (including a response example)</a> * @since 6.6 */ public void delete(DeleteRequest request) { call( new PostRequest(path("delete")) .setParam("branch", request.getBranch()) .setParam("project", request.getProject()) .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/project_branches/list">Further information about this action online (including a response example)</a> * @since 6.6 */ public ListWsResponse list(ListRequest request) { return call( new GetRequest(path("list")) .setParam("project", request.getProject()), ListWsResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/project_branches/rename">Further information about this action online (including a response example)</a> * @since 6.6 */ public void rename(RenameRequest request) { call( new PostRequest(path("rename")) .setParam("name", request.getName()) .setParam("project", request.getProject()) .setMediaType(MediaTypes.JSON)).content(); } public void setAutomaticDeletionProtection(SetAutomaticDeletionProtectionRequest request) { call( new PostRequest(path("set_automatic_deletion_protection")) .setParam("project", request.getProject()) .setParam("branch", request.getBranch()) .setParam("value", request.getValue()) .setMediaType(MediaTypes.JSON)).content(); } }
3,427
35.860215
172
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectbranches/RenameRequest.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.projectbranches; 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/project_branches/rename">Further information about this action online (including a response example)</a> * @since 6.6 */ @Generated("sonar-ws-generator") public class RenameRequest { private String name; private String project; /** * This is a mandatory parameter. * Example value: "branch1" */ public RenameRequest setName(String name) { this.name = name; return this; } public String getName() { return name; } /** * This is a mandatory parameter. * Example value: "my_project" */ public RenameRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } }
1,757
27.354839
170
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectbranches/SetAutomaticDeletionProtectionRequest.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.projectbranches; 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/project_branches/set_automatic_deletion_protection">Further information about this action online (including a response example)</a> * @since 8.1 */ @Generated("sonar-ws-generator") public class SetAutomaticDeletionProtectionRequest { private String branch; private String project; private String value; /** * This is a mandatory parameter. * Example value: "feature/my_branch" */ public SetAutomaticDeletionProtectionRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * This is a mandatory parameter. * Example value: "my_project" */ public SetAutomaticDeletionProtectionRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } /** * This is a mandatory parameter. * Example value: "true" * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public SetAutomaticDeletionProtectionRequest setValue(String value) { this.value = value; return this; } public String getValue() { return value; } }
2,282
26.506024
197
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectbranches/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.projectbranches; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,048
37.851852
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectdump/ExportRequest.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.projectdump; 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/project_dump/export">Further information about this action online (including a response example)</a> * @since 1.0 */ @Generated("sonar-ws-generator") public class ExportRequest { private String key; /** * This is a mandatory parameter. * Example value: "my_project" */ public ExportRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } }
1,480
29.854167
166
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectdump/ImportRequest.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.projectdump; 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/project_dump/import">Further information about this action online (including a response example)</a> * @since 1.0 */ @Generated("sonar-ws-generator") public class ImportRequest { private String key; /** * This is a mandatory parameter. * Example value: "my_project" */ public ImportRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } }
1,480
29.854167
166
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectdump/ProjectDumpService.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.projectdump; 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/project_dump">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class ProjectDumpService extends BaseService { public ProjectDumpService(WsConnector wsConnector) { super(wsConnector, "api/project_dump"); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/project_dump/export">Further information about this action online (including a response example)</a> * @since 1.0 */ public String export(ExportRequest request) { return call( new PostRequest(path("export")) .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/api/project_dump/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("id", request.getId()) .setParam("key", request.getKey()) .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/project_dump/import">Further information about this action online (including a response example)</a> * @since 1.0 */ public String Import(ImportRequest request) { return call( new PostRequest(path("import")) .setParam("key", request.getKey()) .setMediaType(MediaTypes.JSON) ).content(); } }
2,945
33.658824
168
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectdump/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.projectdump; 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/project_dump/status">Further information about this action online (including a response example)</a> * @since 1.0 */ @Generated("sonar-ws-generator") public class StatusRequest { private String id; private String key; /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public StatusRequest setId(String id) { this.id = id; return this; } public String getId() { return id; } /** * Example value: "my_project" */ public StatusRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } }
1,648
26.483333
166
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectdump/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.projectdump; import javax.annotation.Generated; import javax.annotation.ParametersAreNonnullByDefault;
1,044
37.703704
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectlinks/CreateRequest.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.projectlinks; 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/project_links/create">Further information about this action online (including a response example)</a> * @since 6.1 */ @Generated("sonar-ws-generator") public class CreateRequest { private String name; private String projectId; private String projectKey; private String url; /** * This is a mandatory parameter. * Example value: "Custom" */ public CreateRequest setName(String name) { this.name = name; return this; } public String getName() { return name; } /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public CreateRequest setProjectId(String projectId) { this.projectId = projectId; return this; } public String getProjectId() { return projectId; } /** * Example value: "my_project" */ public CreateRequest setProjectKey(String projectKey) { this.projectKey = projectKey; return this; } public String getProjectKey() { return projectKey; } /** * This is a mandatory parameter. * Example value: "http://example.com" */ public CreateRequest setUrl(String url) { this.url = url; return this; } public String getUrl() { return url; } }
2,233
24.386364
167
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectlinks/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.projectlinks; 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/project_links/delete">Further information about this action online (including a response example)</a> * @since 6.1 */ @Generated("sonar-ws-generator") public class DeleteRequest { private String id; /** * This is a mandatory parameter. * Example value: "17" */ public DeleteRequest setId(String id) { this.id = id; return this; } public String getId() { return id; } }
1,467
29.583333
167
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectlinks/ProjectLinksService.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.projectlinks; 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.ProjectLinks.CreateWsResponse; import org.sonarqube.ws.ProjectLinks.SearchWsResponse; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/project_links">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class ProjectLinksService extends BaseService { public ProjectLinksService(WsConnector wsConnector) { super(wsConnector, "api/project_links"); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/project_links/create">Further information about this action online (including a response example)</a> * @since 6.1 */ public CreateWsResponse create(CreateRequest request) { return call( new PostRequest(path("create")) .setParam("name", request.getName()) .setParam("projectId", request.getProjectId()) .setParam("projectKey", request.getProjectKey()) .setParam("url", request.getUrl()), CreateWsResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/project_links/delete">Further information about this action online (including a response example)</a> * @since 6.1 */ public void delete(DeleteRequest request) { call( new PostRequest(path("delete")) .setParam("id", request.getId()) .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/project_links/search">Further information about this action online (including a response example)</a> * @since 6.1 */ public SearchWsResponse search(SearchRequest request) { return call( new GetRequest(path("search")) .setParam("projectId", request.getProjectId()) .setParam("projectKey", request.getProjectKey()), SearchWsResponse.parser()); } }
3,213
35.522727
169
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectlinks/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.projectlinks; 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/project_links/search">Further information about this action online (including a response example)</a> * @since 6.1 */ @Generated("sonar-ws-generator") public class SearchRequest { private String projectId; private String projectKey; /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public SearchRequest setProjectId(String projectId) { this.projectId = projectId; return this; } public String getProjectId() { return projectId; } /** * Example value: "my_project" */ public SearchRequest setProjectKey(String projectKey) { this.projectKey = projectKey; return this; } public String getProjectKey() { return projectKey; } }
1,748
28.15
167
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectlinks/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.projectlinks; 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/projectpullrequests/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.projectpullrequests; 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/project_pull_requests/delete">Further information about this action online (including a response example)</a> * @since 7.1 */ @Generated("sonar-ws-generator") public class DeleteRequest { private String project; private String pullRequest; /** * This is a mandatory parameter. * Example value: "my_project" */ public DeleteRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } /** * This is a mandatory parameter. * Example value: "1543" */ public DeleteRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } }
1,812
28.241935
175
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectpullrequests/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.projectpullrequests; 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/project_pull_requests/list">Further information about this action online (including a response example)</a> * @since 7.1 */ @Generated("sonar-ws-generator") public class ListRequest { private String project; /** * This is a mandatory parameter. * Example value: "my_project" */ public ListRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } }
1,519
30.666667
173
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectpullrequests/ProjectPullRequestsService.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.projectpullrequests; 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.ProjectPullRequests.ListWsResponse; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/project_pull_requests">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class ProjectPullRequestsService extends BaseService { public ProjectPullRequestsService(WsConnector wsConnector) { super(wsConnector, "api/project_pull_requests"); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/project_pull_requests/delete">Further information about this action online (including a response example)</a> * @since 7.1 */ public void delete(DeleteRequest request) { call( new PostRequest(path("delete")) .setParam("project", request.getProject()) .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/project_pull_requests/list">Further information about this action online (including a response example)</a> * @since 7.1 */ public ListWsResponse list(ListRequest request) { return call( new GetRequest(path("list")) .setParam("project", request.getProject()), ListWsResponse.parser()); } }
2,588
35.985714
177
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projectpullrequests/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.projectpullrequests; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,051
39.461538
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/BulkDeleteRequest.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.projects; 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/projects/bulk_delete">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class BulkDeleteRequest { private String analyzedBefore; private String onProvisionedOnly; private List<String> projects; private String q; private List<String> qualifiers; private String visibility; /** * Example value: "2017-10-19 or 2017-10-19T13:00:00+0200" */ public BulkDeleteRequest setAnalyzedBefore(String analyzedBefore) { this.analyzedBefore = analyzedBefore; return this; } public String getAnalyzedBefore() { return analyzedBefore; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public BulkDeleteRequest setOnProvisionedOnly(String onProvisionedOnly) { this.onProvisionedOnly = onProvisionedOnly; return this; } public String getOnProvisionedOnly() { return onProvisionedOnly; } /** * Example value: "my_project,another_project" */ public BulkDeleteRequest setProjects(List<String> projects) { this.projects = projects; return this; } public List<String> getProjects() { return projects; } /** * Example value: "sonar" */ public BulkDeleteRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * Possible values: * <ul> * <li>"TRK"</li> * <li>"VW"</li> * <li>"APP"</li> * </ul> */ public BulkDeleteRequest setQualifiers(List<String> qualifiers) { this.qualifiers = qualifiers; return this; } public List<String> getQualifiers() { return qualifiers; } /** * This is part of the internal API. * Possible values: * <ul> * <li>"private"</li> * <li>"public"</li> * </ul> */ public BulkDeleteRequest setVisibility(String visibility) { this.visibility = visibility; return this; } public String getVisibility() { return visibility; } }
3,142
23.364341
167
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/CreateRequest.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.projects; 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/projects/create">Further information about this action online (including a response example)</a> * @since 4.0 */ @Generated("sonar-ws-generator") public class CreateRequest { private String branch; private String name; private String project; private String visibility; /** * Example value: "branch-5.0" */ public CreateRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * This is a mandatory parameter. * Example value: "SonarQube" */ public CreateRequest setName(String name) { this.name = name; return this; } public String getName() { return name; } /** * This is a mandatory parameter. * Example value: "my_project" */ public CreateRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } /** * This is part of the internal API. * Possible values: * <ul> * <li>"private"</li> * <li>"public"</li> * </ul> */ public CreateRequest setVisibility(String visibility) { this.visibility = visibility; return this; } public String getVisibility() { return visibility; } }
2,316
23.913978
162
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/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.projects; 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/projects/delete">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class DeleteRequest { private String project; /** * Example value: "my_project" */ public DeleteRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } }
1,466
29.5625
162
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ExportFindingsRequest.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.projects; import javax.annotation.Generated; import javax.annotation.Nullable; /** * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/projects/export_findings">Further information about this action online (including a response example)</a> * @since 9.1 */ @Generated("sonar-ws-generator") public class ExportFindingsRequest { private String projectKey; private String branchKey; public ExportFindingsRequest(String projectKey, @Nullable String branchKey) { this.projectKey = projectKey; this.branchKey = branchKey; } /** * Example value: "42" */ public ExportFindingsRequest setProjectKey(String projectKey) { this.projectKey = projectKey; return this; } public String getProjectKey() { return projectKey; } /** * Example value: "sonar" */ public ExportFindingsRequest setBranchKey(String branchKey) { this.branchKey = branchKey; return this; } public String getBranchKey() { return branchKey; } }
1,935
27.895522
171
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.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.projects; import java.util.stream.Collectors; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.Projects.CreateWsResponse; import org.sonarqube.ws.Projects.SearchMyProjectsWsResponse; import org.sonarqube.ws.Projects.SearchWsResponse; 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.client.WsResponse; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/projects">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class ProjectsService extends BaseService { public ProjectsService(WsConnector wsConnector) { super(wsConnector, "api/projects"); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/projects/bulk_delete">Further information about this action online (including a response example)</a> * @since 5.2 */ public void bulkDelete(BulkDeleteRequest request) { call( new PostRequest(path("bulk_delete")) .setParam("analyzedBefore", request.getAnalyzedBefore()) .setParam("onProvisionedOnly", request.getOnProvisionedOnly()) .setParam("projects", request.getProjects() == null ? null : request.getProjects().stream().collect(Collectors.joining(","))) .setParam("q", request.getQ()) .setParam("qualifiers", request.getQualifiers() == null ? null : request.getQualifiers().stream().collect(Collectors.joining(","))) .setParam("visibility", request.getVisibility()) .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/projects/create">Further information about this action online (including a response example)</a> * @since 4.0 */ public CreateWsResponse create(CreateRequest request) { return call( new PostRequest(path("create")) .setParam("branch", request.getBranch()) .setParam("name", request.getName()) .setParam("project", request.getProject()) .setParam("visibility", request.getVisibility()), CreateWsResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/projects/delete">Further information about this action online (including a response example)</a> * @since 5.2 */ public void delete(DeleteRequest request) { call( new PostRequest(path("delete")) .setParam("project", request.getProject()) .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/projects/license_usage">Further information about this action online (including a response example)</a> * @since 9.4 */ public WsResponse licenseUsage() { GetRequest getRequest = new GetRequest(path("license_usage")) .setMediaType(MediaTypes.JSON); return call(getRequest); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/projects/search">Further information about this action online (including a response example)</a> * @since 6.3 */ public SearchWsResponse search(SearchRequest request) { return call( new GetRequest(path("search")) .setParam("analyzedBefore", request.getAnalyzedBefore()) .setParam("onProvisionedOnly", request.getOnProvisionedOnly()) .setParam("p", request.getP()) .setParam("projects", request.getProjects() == null ? null : request.getProjects().stream().collect(Collectors.joining(","))) .setParam("ps", request.getPs()) .setParam("q", request.getQ()) .setParam("qualifiers", request.getQualifiers() == null ? null : request.getQualifiers().stream().collect(Collectors.joining(","))) .setParam("visibility", request.getVisibility()), SearchWsResponse.parser()); } /** * * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/projects/export_findings">Further information about this action online (including a response example)</a> * @since 9.1 */ public WsResponse exportFindings(ExportFindingsRequest request) { GetRequest getRequest = new GetRequest(path("export_findings")) .setParam("project", request.getProjectKey()); if (request.getBranchKey() != null) { getRequest.setParam("branch", request.getBranchKey()); } return call(getRequest); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/projects/search_my_projects">Further information about this action online (including a response example)</a> * @since 6.0 */ public SearchMyProjectsWsResponse searchMyProjects(SearchMyProjectsRequest request) { return call( new GetRequest(path("search_my_projects")) .setParam("p", request.getP()) .setParam("ps", request.getPs()), SearchMyProjectsWsResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/projects/update_key">Further information about this action online (including a response example)</a> * @since 6.1 */ public void updateKey(UpdateKeyRequest request) { call( new PostRequest(path("update_key")) .setParam("from", request.getFrom()) .setParam("to", request.getTo()) .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/projects/update_visibility">Further information about this action online (including a response example)</a> * @since 6.4 */ public void updateVisibility(UpdateVisibilityRequest request) { call( new PostRequest(path("update_visibility")) .setParam("project", request.getProject()) .setParam("visibility", request.getVisibility()) .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/projects/update_default_visibility">Further information about this action online (including a response example)</a> * @since 6.4 */ public void updateDefaultVisibility(UpdateDefaultVisibilityRequest request) { call( new PostRequest(path("update_default_visibility")) .setParam("projectVisibility", request.getProjectVisibility()) .setMediaType(MediaTypes.JSON) ).content(); } }
7,976
37.536232
183
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/SearchMyProjectsRequest.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.projects; 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/projects/search_my_projects">Further information about this action online (including a response example)</a> * @since 6.0 */ @Generated("sonar-ws-generator") public class SearchMyProjectsRequest { private String p; private String ps; /** * Example value: "42" */ public SearchMyProjectsRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "20" */ public SearchMyProjectsRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } }
1,643
26.4
174
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/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.projects; 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/projects/search">Further information about this action online (including a response example)</a> * @since 6.3 */ @Generated("sonar-ws-generator") public class SearchRequest { private String analyzedBefore; private String onProvisionedOnly; private String p; private List<String> projects; private String ps; private String q; private List<String> qualifiers; private String visibility; /** * Example value: "2017-10-19 or 2017-10-19T13:00:00+0200" */ public SearchRequest setAnalyzedBefore(String analyzedBefore) { this.analyzedBefore = analyzedBefore; return this; } public String getAnalyzedBefore() { return analyzedBefore; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public SearchRequest setOnProvisionedOnly(String onProvisionedOnly) { this.onProvisionedOnly = onProvisionedOnly; return this; } public String getOnProvisionedOnly() { return onProvisionedOnly; } /** * Example value: "42" */ public SearchRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "my_project,another_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; } /** * Example value: "sonar" */ public SearchRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * Possible values: * <ul> * <li>"TRK"</li> * <li>"VW"</li> * <li>"APP"</li> * </ul> */ public SearchRequest setQualifiers(List<String> qualifiers) { this.qualifiers = qualifiers; return this; } public List<String> getQualifiers() { return qualifiers; } /** * This is part of the internal API. * Possible values: * <ul> * <li>"private"</li> * <li>"public"</li> * </ul> */ public SearchRequest setVisibility(String visibility) { this.visibility = visibility; return this; } public String getVisibility() { return visibility; } }
3,474
21.419355
162
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/UpdateDefaultVisibilityRequest.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.projects; 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/projects/update_default_visibility">Further information about this action online (including a response example)</a> * @since 6.4 */ @Generated("sonar-ws-generator") public class UpdateDefaultVisibilityRequest { private String projectVisibility; /** * This is a mandatory parameter. * Possible values: * <ul> * <li>"private"</li> * <li>"public"</li> * </ul> */ public UpdateDefaultVisibilityRequest setProjectVisibility(String projectVisibility) { this.projectVisibility = projectVisibility; return this; } public String getProjectVisibility() { return projectVisibility; } }
1,685
31.423077
181
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/UpdateKeyRequest.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.projects; 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/projects/update_key">Further information about this action online (including a response example)</a> * @since 6.1 */ @Generated("sonar-ws-generator") public class UpdateKeyRequest { private String from; private String to; /** * Example value: "my_old_project" */ public UpdateKeyRequest setFrom(String from) { this.from = from; return this; } public String getFrom() { return from; } /** * This is a mandatory parameter. * Example value: "my_new_project" */ public UpdateKeyRequest setTo(String to) { this.to = to; return this; } public String getTo() { return to; } }
1,695
26.803279
166
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/UpdateVisibilityRequest.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.projects; 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/projects/update_visibility">Further information about this action online (including a response example)</a> * @since 6.4 */ @Generated("sonar-ws-generator") public class UpdateVisibilityRequest { private String project; private String visibility; /** * This is a mandatory parameter. * Example value: "my_project" */ public UpdateVisibilityRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } /** * This is a mandatory parameter. * Possible values: * <ul> * <li>"private"</li> * <li>"public"</li> * </ul> */ public UpdateVisibilityRequest setVisibility(String visibility) { this.visibility = visibility; return this; } public String getVisibility() { return visibility; } }
1,889
27.636364
173
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/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.projects; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,041
37.592593
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projecttags/ProjectTagsService.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.projecttags; 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; import org.sonarqube.ws.ProjectTags.SearchResponse; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/project_tags">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class ProjectTagsService extends BaseService { public ProjectTagsService(WsConnector wsConnector) { super(wsConnector, "api/project_tags"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/project_tags/search">Further information about this action online (including a response example)</a> * @since 6.4 */ public SearchResponse search(SearchRequest request) { return call( new GetRequest(path("search")) .setParam("ps", request.getPs()) .setParam("q", request.getQ()), SearchResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/project_tags/set">Further information about this action online (including a response example)</a> * @since 6.4 */ public void set(SetRequest request) { call( new PostRequest(path("set")) .setParam("project", request.getProject()) .setParam("tags", request.getTags() == null ? null : request.getTags().stream().collect(Collectors.joining(","))) .setMediaType(MediaTypes.JSON) ).content(); } }
2,644
35.736111
168
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projecttags/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.projecttags; 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/project_tags/search">Further information about this action online (including a response example)</a> * @since 6.4 */ @Generated("sonar-ws-generator") public class SearchRequest { private String ps; private String q; /** * Example value: "20" */ public SearchRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Example value: "off" */ public SearchRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } }
1,609
25.833333
166
java