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/projecttags/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.projecttags; 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/project_tags/set">Further information about this action online (including a response example)</a> * @since 6.4 */ @Generated("sonar-ws-generator") public class SetRequest { private String project; private List<String> tags; /** * This is a mandatory parameter. * Example value: "my_project" */ public SetRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } /** * This is a mandatory parameter. * Example value: "finance, offshore" */ public SetRequest setTags(List<String> tags) { this.tags = tags; return this; } public List<String> getTags() { return tags; } }
1,788
27.396825
163
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/projecttags/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.projecttags; 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/push/SonarLintServerPushService.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.push; import org.sonarqube.ws.client.BaseService; import org.sonarqube.ws.client.GetRequest; import org.sonarqube.ws.client.WsConnector; import org.sonarqube.ws.client.WsResponse; public class SonarLintServerPushService extends BaseService { public SonarLintServerPushService(WsConnector wsConnector) { super(wsConnector, "api/push"); } public WsResponse connect(String projectKeys, String languages) { return call( new GetRequest(path("sonarlint_events")) .setParam("projectKeys", projectKeys) .setParam("languages", languages) .setHeader("accept", "text/event-stream")); } }
1,501
36.55
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/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.qualitygates; 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/qualitygates/add_group">Further information about this action online (including a response example)</a> * @since 9.2 */ @Generated("sonar-ws-generator") public class AddGroupRequest { private String group; private String qualityGate; /** * This is a mandatory parameter. * Example value: "sonar-administrators" */ public AddGroupRequest setGroup(String group) { this.group = group; return this; } public String getGroup() { return group; } /** * This is a mandatory parameter. * Example value: "SonarSource Way" */ public AddGroupRequest setQualityGate(String qualityGate) { this.qualityGate = qualityGate; return this; } public String getQualityGate() { return qualityGate; } }
1,812
28.241935
169
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/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.qualitygates; 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/qualitygates/add_user">Further information about this action online (including a response example)</a> * @since 9.2 */ @Generated("sonar-ws-generator") public class AddUserRequest { private String login; private String qualityGate; /** * This is a mandatory parameter. * Example value: "john.doe" */ public AddUserRequest setLogin(String login) { this.login = login; return this; } public String getLogin() { return login; } /** * This is a mandatory parameter. * Example value: "SonarSource Way" */ public AddUserRequest setQualityGate(String qualityGate) { this.qualityGate = qualityGate; return this; } public String getQualityGate() { return qualityGate; } }
1,796
27.983871
168
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/ApplicationStatusRequest.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.qualitygates; 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/qualitygates/application_status">Further information about this action online (including a response example)</a> * @since 2.0 */ @Generated("sonar-ws-generator") public class ApplicationStatusRequest { private String application; private String branch; /** * Example value: "my_application" */ public ApplicationStatusRequest setApplication(String application) { this.application = application; return this; } public String getApplication() { return application; } public String getBranch() { return branch; } public ApplicationStatusRequest setBranch(String branch) { this.branch = branch; return this; } }
1,726
29.298246
178
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/CopyRequest.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.qualitygates; 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/qualitygates/copy">Further information about this action online (including a response example)</a> * @since 4.3 */ @Generated("sonar-ws-generator") public class CopyRequest { private String sourceName; private String name; public String getSourceName() { return sourceName; } public CopyRequest setSourceName(String sourceName) { this.sourceName = sourceName; return this; } /** * This is a mandatory parameter. * Example value: "My Quality Gate" */ public CopyRequest setName(String name) { this.name = name; return this; } public String getName() { return name; } }
1,691
27.677966
164
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/CreateConditionRequest.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.qualitygates; 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/qualitygates/create_condition">Further information about this action online (including a response example)</a> * @since 4.3 */ @Generated("sonar-ws-generator") public class CreateConditionRequest { private String error; private String gateName; private String metric; private String op; /** * Example value: "10" */ public CreateConditionRequest setError(String error) { this.error = error; return this; } public String getError() { return error; } /** * This is a mandatory parameter. * Example value: "1" */ public CreateConditionRequest setGateName(String gateName) { this.gateName = gateName; return this; } public String getGateName() { return gateName; } /** * This is a mandatory parameter. * Example value: "blocker_violations" */ public CreateConditionRequest setMetric(String metric) { this.metric = metric; return this; } public String getMetric() { return metric; } /** * Example value: "LT" * Possible values: * <ul> * <li>"LT"</li> * <li>"GT"</li> * </ul> */ public CreateConditionRequest setOp(String op) { this.op = op; return this; } public String getOp() { return op; } }
2,306
23.806452
176
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/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.qualitygates; 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/qualitygates/create">Further information about this action online (including a response example)</a> * @since 4.3 */ @Generated("sonar-ws-generator") public class CreateRequest { private String name; /** * This is a mandatory parameter. * Example value: "My Quality Gate" */ public CreateRequest setName(String name) { this.name = name; return this; } public String getName() { return name; } }
1,494
29.510204
166
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/DeleteConditionRequest.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.qualitygates; 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/qualitygates/delete_condition">Further information about this action online (including a response example)</a> * @since 4.3 */ @Generated("sonar-ws-generator") public class DeleteConditionRequest { private String id; /** * This is a mandatory parameter. * Example value: "2" */ public DeleteConditionRequest setId(String id) { this.id = id; return this; } public String getId() { return id; } }
1,494
29.510204
176
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/DeselectRequest.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.qualitygates; 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/qualitygates/deselect">Further information about this action online (including a response example)</a> * @since 4.3 */ @Generated("sonar-ws-generator") public class DeselectRequest { private String projectKey; /** * Example value: "my_project" */ public DeselectRequest setProjectKey(String projectKey) { this.projectKey = projectKey; return this; } public String getProjectKey() { return projectKey; } }
1,500
30.93617
168
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/DestroyRequest.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.qualitygates; 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/qualitygates/destroy">Further information about this action online (including a response example)</a> * @since 4.3 */ @Generated("sonar-ws-generator") public class DestroyRequest { private String name; public String getName() { return name; } public DestroyRequest setName(String name) { this.name = name; return this; } }
1,410
31.068182
167
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/GetByProjectRequest.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.qualitygates; 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/qualitygates/get_by_project">Further information about this action online (including a response example)</a> * @since 6.1 */ @Generated("sonar-ws-generator") public class GetByProjectRequest { private String project; /** * This is a mandatory parameter. * Example value: "my_project" */ public GetByProjectRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } }
1,529
30.875
174
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/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.qualitygates; 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/qualitygates/list">Further information about this action online (including a response example)</a> * @since 4.3 */ @Generated("sonar-ws-generator") public class ListRequest { }
1,240
35.5
164
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/ProjectStatusRequest.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.qualitygates; 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/qualitygates/project_status">Further information about this action online (including a response example)</a> * @since 5.3 */ @Generated("sonar-ws-generator") public class ProjectStatusRequest { private String analysisId; private String projectId; private String projectKey; private String branch; private String pullRequest; /** * Example value: "AU-TpxcA-iU5OvuD2FL1" */ public ProjectStatusRequest setAnalysisId(String analysisId) { this.analysisId = analysisId; return this; } public String getAnalysisId() { return analysisId; } /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public ProjectStatusRequest setProjectId(String projectId) { this.projectId = projectId; return this; } public String getProjectId() { return projectId; } /** * Example value: "my_project" */ public ProjectStatusRequest setProjectKey(String projectKey) { this.projectKey = projectKey; return this; } public String getProjectKey() { return projectKey; } public String getBranch() { return branch; } public ProjectStatusRequest setBranch(String branch) { this.branch = branch; return this; } public String getPullRequest() { return pullRequest; } public ProjectStatusRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } }
2,446
25.311828
174
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/QualityGatesServiceCreateResponseJsonParser.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.qualitygates; import com.google.gson.Gson; import com.google.gson.JsonObject; import com.google.protobuf.ByteString; import com.google.protobuf.CodedInputStream; import com.google.protobuf.ExtensionRegistryLite; import com.google.protobuf.InvalidProtocolBufferException; import com.google.protobuf.Parser; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.nio.ByteBuffer; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import org.sonarqube.ws.Qualitygates; public class QualityGatesServiceCreateResponseJsonParser implements Parser<Qualitygates.CreateResponse> { @Override public Qualitygates.CreateResponse parseFrom(CodedInputStream input) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parsePartialFrom(CodedInputStream input) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parsePartialFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parseFrom(ByteBuffer data) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parseFrom(ByteString data) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parsePartialFrom(ByteString data) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parsePartialFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parseFrom(byte[] data, int off, int len) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parseFrom(byte[] data, int off, int len, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parseFrom(byte[] data) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parsePartialFrom(byte[] data, int off, int len) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parsePartialFrom(byte[] data, int off, int len, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parsePartialFrom(byte[] data) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parsePartialFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parseFrom(InputStream input) throws InvalidProtocolBufferException { Qualitygates.CreateResponse.Builder builder = Qualitygates.CreateResponse.newBuilder(); String json = readInputStream(input); JsonObject jobj = new Gson().fromJson(json, JsonObject.class); builder.setName(jobj.get("name").getAsString()); return builder.build(); } private String readInputStream(InputStream input) { StringBuilder textBuilder = new StringBuilder(); try (Reader reader = new BufferedReader(new InputStreamReader(input, Charset.forName(StandardCharsets.UTF_8.name())))) { int c = 0; while ((c = reader.read()) != -1) { textBuilder.append((char) c); } } catch (IOException e) { throw new IllegalArgumentException(e); } return textBuilder.toString(); } @Override public Qualitygates.CreateResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parsePartialFrom(InputStream input) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parsePartialFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parseDelimitedFrom(InputStream input) throws InvalidProtocolBufferException { return parseFrom(input); } @Override public Qualitygates.CreateResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parsePartialDelimitedFrom(InputStream input) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } @Override public Qualitygates.CreateResponse parsePartialDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException { throw new IllegalStateException("not implemented"); } }
7,572
39.281915
165
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/QualitygatesService.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.qualitygates; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.Qualitygates; import org.sonarqube.ws.Qualitygates.CreateConditionResponse; import org.sonarqube.ws.Qualitygates.CreateResponse; import org.sonarqube.ws.Qualitygates.GetByProjectResponse; import org.sonarqube.ws.Qualitygates.ListWsResponse; import org.sonarqube.ws.Qualitygates.ProjectStatusResponse; import org.sonarqube.ws.Qualitygates.SearchResponse; import org.sonarqube.ws.Qualitygates.ShowWsResponse; import org.sonarqube.ws.Qualitygates.UpdateConditionResponse; 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/qualitygates">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class QualitygatesService extends BaseService { public QualitygatesService(WsConnector wsConnector) { super(wsConnector, "api/qualitygates"); } /** * This is part of the internal API. * This is a POST request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualitygates/copy">Further information about this action online (including a response example)</a> * @since 4.3 */ public void copy(CopyRequest request) { call( new PostRequest(path("copy")) .setParam("sourceName", request.getSourceName()) .setParam("name", request.getName()) .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/qualitygates/create">Further information about this action online (including a response example)</a> * @since 4.3 */ public CreateResponse create(CreateRequest request) { return call( new PostRequest(path("create")) .setParam("name", request.getName()), CreateResponse.parser()); } /** * Use this for to use a JSON payload, useful to parse the quality gate as Long or String */ public CreateResponse createJson(CreateRequest request) { return call( new PostRequest(path("create")) .setParam("name", request.getName()), new QualityGatesServiceCreateResponseJsonParser(), MediaTypes.JSON); } /** * This is part of the internal API. * This is a POST request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualitygates/create_condition">Further information about this action online (including a response example)</a> * @since 4.3 */ public CreateConditionResponse createCondition(CreateConditionRequest request) { return call( new PostRequest(path("create_condition")) .setParam("error", request.getError()) .setParam("gateName", request.getGateName()) .setParam("metric", request.getMetric()) .setParam("op", request.getOp()), CreateConditionResponse.parser()); } /** * This is part of the internal API. * This is a POST request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualitygates/delete_condition">Further information about this action online (including a response example)</a> * @since 4.3 */ public void deleteCondition(DeleteConditionRequest request) { call( new PostRequest(path("delete_condition")) .setParam("id", request.getId()) .setMediaType(MediaTypes.JSON)).content(); } /** * This is part of the internal API. * This is a POST request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualitygates/deselect">Further information about this action online (including a response example)</a> * @since 4.3 */ public void deselect(DeselectRequest request) { call( new PostRequest(path("deselect")) .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/qualitygates/destroy">Further information about this action online (including a response example)</a> * @since 4.3 */ public void destroy(DestroyRequest request) { call( new PostRequest(path("destroy")) .setParam("name", request.getName()) .setMediaType(MediaTypes.JSON)).content(); } /** * This is part of the internal API. * This is a GET request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualitygates/get_by_project">Further information about this action online (including a response example)</a> * @since 6.1 */ public GetByProjectResponse getByProject(GetByProjectRequest request) { return call( new GetRequest(path("get_by_project")) .setParam("project", request.getProject()), GetByProjectResponse.parser()); } /** * This is part of the internal API. * This is a GET request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualitygates/list">Further information about this action online (including a response example)</a> * @since 4.3 */ public ListWsResponse list(ListRequest request) { return call( new GetRequest(path("list")), ListWsResponse.parser()); } /** * This is part of the internal API. * This is a GET request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualitygates/project_status">Further information about this action online (including a response example)</a> * @since 5.3 */ public ProjectStatusResponse projectStatus(ProjectStatusRequest request) { return call( new GetRequest(path("project_status")) .setParam("analysisId", request.getAnalysisId()) .setParam("projectId", request.getProjectId()) .setParam("projectKey", request.getProjectKey()) .setParam("branch", request.getBranch()) .setParam("pullRequest", request.getPullRequest()), ProjectStatusResponse.parser()); } /** * This is part of the internal API. * This is a GET request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualitygates/application_status">Further information about this action online (including a response example)</a> * @since 2.0 */ public void applicationStatus(ApplicationStatusRequest request) { call( new GetRequest(path("application_status")) .setParam("application", request.getApplication()) .setParam("branch", request.getBranch())); } /** * This is part of the internal API. * This is a POST request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualitygates/rename">Further information about this action online (including a response example)</a> * @since 4.3 */ public void rename(RenameRequest request) { call( new PostRequest(path("rename")) .setParam("id", request.getId()) .setParam("name", request.getName()) .setMediaType(MediaTypes.JSON)).content(); } /** * This is part of the internal API. * This is a GET request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualitygates/search">Further information about this action online (including a response example)</a> * @since 4.3 */ public SearchResponse search(SearchRequest request) { return call( new GetRequest(path("search")) .setParam("gateName", request.getGateName()) .setParam("page", request.getPage()) .setParam("pageSize", request.getPageSize()) .setParam("query", request.getQuery()) .setParam("selected", request.getSelected()), 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/qualitygates/select">Further information about this action online (including a response example)</a> * @since 4.3 */ public void select(SelectRequest request) { call( new PostRequest(path("select")) .setParam("gateName", request.getGateName()) .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/qualitygates/set_as_default">Further information about this action online (including a response example)</a> * @since 4.3 */ public void setAsDefault(SetAsDefaultRequest request) { call( new PostRequest(path("set_as_default")) .setParam("name", request.getName()) .setMediaType(MediaTypes.JSON)).content(); } /** * This is part of the internal API. * This is a GET request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualitygates/show">Further information about this action online (including a response example)</a> * @since 4.3 */ public ShowWsResponse show(ShowRequest request) { return call( new GetRequest(path("show")) .setParam("name", request.getName()), 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/qualitygates/update_condition">Further information about this action online (including a response example)</a> * @since 4.3 */ public void updateCondition(UpdateConditionRequest request) { call( new PostRequest(path("update_condition")) .setParam("error", request.getError()) .setParam("id", request.getId()) .setParam("metric", request.getMetric()) .setParam("op", request.getOp()), UpdateConditionResponse.parser()); } /** * This is part of the internal API. * This is a POST request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualitygates/add_user">Further information about this action online (including a response example)</a> * @since 9.2 */ public void addUser(AddUserRequest request) { call( new PostRequest(path("add_user")) .setParam("login", request.getLogin()) .setParam("gateName", request.getQualityGate()) .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/qualitygates/search_users">Further information about this action online (including a response example)</a> * @since 9.2 */ public Qualitygates.SearchUsersResponse searchUsers(SearchUsersRequest request) { return call( new GetRequest(path("search_users")) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("q", request.getQ()) .setParam("gateName", request.getQualityGate()) .setParam("selected", request.getSelected()), Qualitygates.SearchUsersResponse.parser()); } /** * This is part of the internal API. * This is a POST request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualitygates/remove_user">Further information about this action online (including a response example)</a> * @since 9.2 */ public void removeUser(RemoveUserRequest request) { call( new PostRequest(path("remove_user")) .setParam("login", request.getLogin()) .setParam("gateName", request.getQualityGate()) .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/qualitygates/add_group">Further information about this action online (including a response example)</a> * @since 9.2 */ public void addGroup(AddGroupRequest request) { call( new PostRequest(path("add_group")) .setParam("groupName", request.getGroup()) .setParam("gateName", request.getQualityGate()) .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/qualitygates/search_groups">Further information about this action online (including a response example)</a> * @since 9.2 */ public Qualitygates.SearchGroupsResponse searchGroups(SearchGroupsRequest request) { return call( new GetRequest(path("search_groups")) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("q", request.getQ()) .setParam("gateName", request.getQualityGate()) .setParam("selected", request.getSelected()), Qualitygates.SearchGroupsResponse.parser()); } /** * This is part of the internal API. * This is a POST request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualitygates/remove_group">Further information about this action online (including a response example)</a> * @since 9.2 */ public void removeGroup(RemoveGroupRequest request) { call( new PostRequest(path("remove_group")) .setParam("groupName", request.getGroup()) .setParam("gateName", request.getQualityGate()) .setMediaType(MediaTypes.JSON) ).content(); } }
14,452
35.31407
180
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/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.qualitygates; 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/qualitygate/remove_group">Further information about this action online (including a response example)</a> * @since 9.2 */ @Generated("sonar-ws-generator") public class RemoveGroupRequest { private String group; private String qualityGate; /** * This is a mandatory parameter. * Example value: "sonar-administrators" */ public RemoveGroupRequest setGroup(String group) { this.group = group; return this; } public String getGroup() { return group; } /** * This is a mandatory parameter. * Example value: "SonarSource Way" */ public RemoveGroupRequest setQualityGate(String qualityGate) { this.qualityGate = qualityGate; return this; } public String getQualityGate() { return qualityGate; } }
1,823
28.419355
171
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/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.qualitygates; 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/qualitygates/remove_user">Further information about this action online (including a response example)</a> * @since 9.2 */ @Generated("sonar-ws-generator") public class RemoveUserRequest { private String login; private String qualityGate; /** * This is a mandatory parameter. * Example value: "john.doe" */ public RemoveUserRequest setLogin(String login) { this.login = login; return this; } public String getLogin() { return login; } /** * This is a mandatory parameter. * Example value: "Recommended quality gate" */ public RemoveUserRequest setQualityGate(String qualityGate) { this.qualityGate = qualityGate; return this; } public String getQualityGate() { return qualityGate; } }
1,817
28.322581
171
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/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.qualitygates; 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/qualitygates/rename">Further information about this action online (including a response example)</a> * @since 4.3 */ @Generated("sonar-ws-generator") public class RenameRequest { private String id; private String name; /** * This is a mandatory parameter. * Example value: "1" */ public RenameRequest setId(String id) { this.id = id; return this; } public String getId() { return id; } /** * This is a mandatory parameter. * Example value: "My Quality Gate" */ public RenameRequest setName(String name) { this.name = name; return this; } public String getName() { return name; } }
1,714
26.66129
166
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/SearchGroupsRequest.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.qualitygates; 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/qualitygates/search_groups">Further information about this action online (including a response example)</a> * @since 9.2 */ @Generated("sonar-ws-generator") public class SearchGroupsRequest { private String p; private String ps; private String q; private String qualityGate; private String selected; /** * Example value: "42" */ public SearchGroupsRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "20" */ public SearchGroupsRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Example value: "sonar" */ public SearchGroupsRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * This is a mandatory parameter. * Example value: "SonarSource Way" */ public SearchGroupsRequest setQualityGate(String qualityGate) { this.qualityGate = qualityGate; return this; } public String getQualityGate() { return qualityGate; } /** * Possible values: * <ul> * <li>"all"</li> * <li>"deselected"</li> * <li>"selected"</li> * </ul> */ public SearchGroupsRequest setSelected(String selected) { this.selected = selected; return this; } public String getSelected() { return selected; } }
2,456
22.4
173
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/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.qualitygates; 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/qualitygates/search">Further information about this action online (including a response example)</a> * @since 4.3 */ @Generated("sonar-ws-generator") public class SearchRequest { private String gateName; private String page; private String pageSize; private String query; private String selected; /** * This is a mandatory parameter. * Example value: "1" */ public SearchRequest setGateName(String gateName) { this.gateName = gateName; return this; } public String getGateName() { return gateName; } /** * Example value: "2" */ public SearchRequest setPage(String page) { this.page = page; return this; } public String getPage() { return page; } /** * Example value: "10" */ public SearchRequest setPageSize(String pageSize) { this.pageSize = pageSize; return this; } public String getPageSize() { return pageSize; } /** * Example value: "abc" */ public SearchRequest setQuery(String query) { this.query = query; return this; } public String getQuery() { return query; } /** * Possible values: * <ul> * <li>"all"</li> * <li>"deselected"</li> * <li>"selected"</li> * </ul> */ public SearchRequest setSelected(String selected) { this.selected = selected; return this; } public String getSelected() { return selected; } }
2,466
22.495238
166
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/SearchUsersRequest.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.qualitygates; 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/qualitygates/search_users">Further information about this action online (including a response example)</a> * @since 9.2 */ @Generated("sonar-ws-generator") public class SearchUsersRequest { private String p; private String ps; private String q; private String qualityGate; private String selected; /** * Example value: "42" */ public SearchUsersRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "20" */ public SearchUsersRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Example value: "freddy" */ public SearchUsersRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * This is a mandatory parameter. * Example value: "Recommended quality gate" */ public SearchUsersRequest setQualityGate(String qualityGate) { this.qualityGate = qualityGate; return this; } public String getQualityGate() { return qualityGate; } /** * Possible values: * <ul> * <li>"all"</li> * <li>"deselected"</li> * <li>"selected"</li> * </ul> */ public SearchUsersRequest setSelected(String selected) { this.selected = selected; return this; } public String getSelected() { return selected; } }
2,459
22.428571
172
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/SelectRequest.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.qualitygates; 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/qualitygates/select">Further information about this action online (including a response example)</a> * @since 4.3 */ @Generated("sonar-ws-generator") public class SelectRequest { private String gateName; private String projectKey; /** * This is a mandatory parameter. * Example value: "1" */ public SelectRequest setGateName(String gateName) { this.gateName = gateName; return this; } public String getGateName() { return gateName; } /** * Example value: "my_project" */ public SelectRequest setProjectKey(String projectKey) { this.projectKey = projectKey; return this; } public String getProjectKey() { return projectKey; } }
1,757
27.819672
166
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/SetAsDefaultRequest.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.qualitygates; 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/qualitygates/set_as_default">Further information about this action online (including a response example)</a> * @since 4.3 */ @Generated("sonar-ws-generator") public class SetAsDefaultRequest { private String name; public String getName() { return name; } public SetAsDefaultRequest setName(String name) { this.name = name; return this; } }
1,427
31.454545
174
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/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.qualitygates; 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/qualitygates/show">Further information about this action online (including a response example)</a> * @since 4.3 */ @Generated("sonar-ws-generator") public class ShowRequest { private String name; /** * Example value: "My Quality Gate" */ public ShowRequest setName(String name) { this.name = name; return this; } public String getName() { return name; } }
1,452
29.270833
164
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/UpdateConditionRequest.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.qualitygates; 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/qualitygates/update_condition">Further information about this action online (including a response example)</a> * @since 4.3 */ @Generated("sonar-ws-generator") public class UpdateConditionRequest { private String error; private String id; private String metric; private String op; /** * Example value: "10" */ public UpdateConditionRequest setError(String error) { this.error = error; return this; } public String getError() { return error; } /** * This is a mandatory parameter. * Example value: "10" */ public UpdateConditionRequest setId(String id) { this.id = id; return this; } public String getId() { return id; } /** * This is a mandatory parameter. * Example value: "blocker_violations" */ public UpdateConditionRequest setMetric(String metric) { this.metric = metric; return this; } public String getMetric() { return metric; } /** * Example value: "LT" * Possible values: * <ul> * <li>"LT"</li> * <li>"GT"</li> * </ul> */ public UpdateConditionRequest setOp(String op) { this.op = op; return this; } public String getOp() { return op; } }
2,266
23.117021
176
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/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.qualitygates; 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/qualityprofile/QualityProfileWsParameters.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.qualityprofile; public class QualityProfileWsParameters { public static final String CONTROLLER_QUALITY_PROFILES = "api/qualityprofiles"; public interface RestoreActionParameters { String PARAM_BACKUP = "backup"; } public static final String ACTION_ACTIVATE_RULE = "activate_rule"; public static final String ACTION_ACTIVATE_RULES = "activate_rules"; public static final String ACTION_ADD_PROJECT = "add_project"; public static final String ACTION_ADD_GROUP = "add_group"; public static final String ACTION_ADD_USER = "add_user"; public static final String ACTION_CHANGE_PARENT = "change_parent"; public static final String ACTION_COPY = "copy"; public static final String ACTION_CREATE = "create"; public static final String ACTION_DEACTIVATE_RULE = "deactivate_rule"; public static final String ACTION_DEACTIVATE_RULES = "deactivate_rules"; public static final String ACTION_DELETE = "delete"; public static final String ACTION_REMOVE_PROJECT = "remove_project"; public static final String ACTION_REMOVE_GROUP = "remove_group"; public static final String ACTION_REMOVE_USER = "remove_user"; public static final String ACTION_SEARCH = "search"; public static final String ACTION_SEARCH_USERS = "search_users"; public static final String ACTION_SEARCH_GROUPS = "search_groups"; public static final String ACTION_SHOW = "show"; public static final String ACTION_SET_DEFAULT = "set_default"; public static final String PARAM_COMPARE_TO_SONAR_WAY = "compareToSonarWay"; public static final String PARAM_DEFAULTS = "defaults"; public static final String PARAM_FROM_KEY = "fromKey"; public static final String PARAM_GROUP = "group"; public static final String PARAM_LANGUAGE = "language"; public static final String PARAM_LOGIN = "login"; public static final String PARAM_NAME = "name"; public static final String PARAM_PARAMS = "params"; public static final String PARAM_PARENT_QUALITY_PROFILE = "parentQualityProfile"; public static final String PARAM_KEY = "key"; public static final String PARAM_QUALITY_PROFILE = "qualityProfile"; public static final String PARAM_PROJECT = "project"; public static final String PARAM_PROJECT_KEY = "projectKey"; public static final String PARAM_QUERY = "q"; public static final String PARAM_RESET = "reset"; public static final String PARAM_RULE = "rule"; public static final String PARAM_SEVERITY = "severity"; public static final String PARAM_SINCE = "since"; public static final String PARAM_TARGET_KEY = "targetKey"; public static final String PARAM_TARGET_SEVERITY = "targetSeverity"; public static final String PARAM_TO = "to"; public static final String PARAM_TO_NAME = "toName"; private QualityProfileWsParameters() { // Only static stuff } }
3,667
46.025641
83
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofile/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.qualityprofile; import javax.annotation.ParametersAreNonnullByDefault;
979
38.2
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/ActivateRuleRequest.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.qualityprofiles; 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/qualityprofiles/activate_rule">Further information about this action online (including a response example)</a> * @since 4.4 */ @Generated("sonar-ws-generator") public class ActivateRuleRequest { private String key; private List<String> params; private String reset; private String rule; private String severity; /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public ActivateRuleRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } /** * Example value: "params=key1=v1;key2=v2" */ public ActivateRuleRequest setParams(List<String> params) { this.params = params; return this; } public List<String> getParams() { return params; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public ActivateRuleRequest setReset(String reset) { this.reset = reset; return this; } public String getReset() { return reset; } /** * This is a mandatory parameter. * Example value: "java:AvoidCycles" */ public ActivateRuleRequest setRule(String rule) { this.rule = rule; return this; } public String getRule() { return rule; } /** * Possible values: * <ul> * <li>"INFO"</li> * <li>"MINOR"</li> * <li>"MAJOR"</li> * <li>"CRITICAL"</li> * <li>"BLOCKER"</li> * </ul> */ public ActivateRuleRequest setSeverity(String severity) { this.severity = severity; return this; } public String getSeverity() { return severity; } }
2,750
22.921739
176
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/ActivateRulesRequest.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.qualityprofiles; 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/qualityprofiles/activate_rules">Further information about this action online (including a response example)</a> * @since 4.4 */ @Generated("sonar-ws-generator") public class ActivateRulesRequest { private String activation; private List<String> activeSeverities; private String asc; private String availableSince; private String compareToProfile; private List<String> cwe; private List<String> inheritance; private String isTemplate; private List<String> languages; private List<String> owaspTop10; private String q; private String qprofile; private List<String> repositories; private String ruleKey; private String s; private List<String> sansTop25; private List<String> severities; private List<String> sonarsourceSecurity; private List<String> statuses; private List<String> tags; private String targetKey; private String targetSeverity; private String templateKey; private List<String> types; /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public ActivateRulesRequest setActivation(String activation) { this.activation = activation; return this; } public String getActivation() { return activation; } /** * Example value: "CRITICAL,BLOCKER" * Possible values: * <ul> * <li>"INFO"</li> * <li>"MINOR"</li> * <li>"MAJOR"</li> * <li>"CRITICAL"</li> * <li>"BLOCKER"</li> * </ul> */ public ActivateRulesRequest setActiveSeverities(List<String> activeSeverities) { this.activeSeverities = activeSeverities; return this; } public List<String> getActiveSeverities() { return activeSeverities; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public ActivateRulesRequest setAsc(String asc) { this.asc = asc; return this; } public String getAsc() { return asc; } /** * Example value: "2014-06-22" */ public ActivateRulesRequest setAvailableSince(String availableSince) { this.availableSince = availableSince; return this; } public String getAvailableSince() { return availableSince; } /** * This is part of the internal API. * Example value: "AU-TpxcA-iU5OvuD2FLz" */ public ActivateRulesRequest setCompareToProfile(String compareToProfile) { this.compareToProfile = compareToProfile; return this; } public String getCompareToProfile() { return compareToProfile; } /** * Example value: "12,125,unknown" */ public ActivateRulesRequest setCwe(List<String> cwe) { this.cwe = cwe; return this; } public List<String> getCwe() { return cwe; } /** * Example value: "INHERITED,OVERRIDES" * Possible values: * <ul> * <li>"NONE"</li> * <li>"INHERITED"</li> * <li>"OVERRIDES"</li> * </ul> */ public ActivateRulesRequest setInheritance(List<String> inheritance) { this.inheritance = inheritance; return this; } public List<String> getInheritance() { return inheritance; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public ActivateRulesRequest setIsTemplate(String isTemplate) { this.isTemplate = isTemplate; return this; } public String getIsTemplate() { return isTemplate; } /** * Example value: "java,js" */ public ActivateRulesRequest setLanguages(List<String> languages) { this.languages = languages; return this; } public List<String> getLanguages() { return languages; } /** * Possible values: * <ul> * <li>"a1"</li> * <li>"a2"</li> * <li>"a3"</li> * <li>"a4"</li> * <li>"a5"</li> * <li>"a6"</li> * <li>"a7"</li> * <li>"a8"</li> * <li>"a9"</li> * <li>"a10"</li> * </ul> */ public ActivateRulesRequest setOwaspTop10(List<String> owaspTop10) { this.owaspTop10 = owaspTop10; return this; } public List<String> getOwaspTop10() { return owaspTop10; } /** * Example value: "xpath" */ public ActivateRulesRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public ActivateRulesRequest setQprofile(String qprofile) { this.qprofile = qprofile; return this; } public String getQprofile() { return qprofile; } /** * Example value: "checkstyle,findbugs" */ public ActivateRulesRequest setRepositories(List<String> repositories) { this.repositories = repositories; return this; } public List<String> getRepositories() { return repositories; } /** * Example value: "java:S001" */ public ActivateRulesRequest setRuleKey(String ruleKey) { this.ruleKey = ruleKey; return this; } public String getRuleKey() { return ruleKey; } /** * Example value: "name" * Possible values: * <ul> * <li>"name"</li> * <li>"updatedAt"</li> * <li>"createdAt"</li> * <li>"key"</li> * </ul> */ public ActivateRulesRequest setS(String s) { this.s = s; return this; } public String getS() { return s; } /** * Possible values: * <ul> * <li>"insecure-interaction"</li> * <li>"risky-resource"</li> * <li>"porous-defenses"</li> * </ul> */ public ActivateRulesRequest setSansTop25(List<String> sansTop25) { this.sansTop25 = sansTop25; return this; } public List<String> getSansTop25() { return sansTop25; } /** * Example value: "CRITICAL,BLOCKER" * Possible values: * <ul> * <li>"INFO"</li> * <li>"MINOR"</li> * <li>"MAJOR"</li> * <li>"CRITICAL"</li> * <li>"BLOCKER"</li> * </ul> */ public ActivateRulesRequest setSeverities(List<String> severities) { this.severities = severities; return this; } public List<String> getSeverities() { return severities; } /** * Example value: "sql-injection,command-injection,others" * Possible values: * <ul> * <li>"sql-injection"</li> * <li>"command-injection"</li> * <li>"path-traversal-injection"</li> * <li>"ldap-injection"</li> * <li>"xpath-injection"</li> * <li>"rce"</li> * <li>"dos"</li> * <li>"ssrf"</li> * <li>"csrf"</li> * <li>"xss"</li> * <li>"log-injection"</li> * <li>"http-response-splitting"</li> * <li>"open-redirect"</li> * <li>"xxe"</li> * <li>"object-injection"</li> * <li>"weak-cryptography"</li> * <li>"auth"</li> * <li>"insecure-conf"</li> * <li>"file-manipulation"</li> * <li>"others"</li> * </ul> */ public ActivateRulesRequest setSonarsourceSecurity(List<String> sonarsourceSecurity) { this.sonarsourceSecurity = sonarsourceSecurity; return this; } public List<String> getSonarsourceSecurity() { return sonarsourceSecurity; } /** * Example value: "READY" * Possible values: * <ul> * <li>"BETA"</li> * <li>"DEPRECATED"</li> * <li>"READY"</li> * <li>"REMOVED"</li> * </ul> */ public ActivateRulesRequest setStatuses(List<String> statuses) { this.statuses = statuses; return this; } public List<String> getStatuses() { return statuses; } /** * Example value: "security,java8" */ public ActivateRulesRequest setTags(List<String> tags) { this.tags = tags; return this; } public List<String> getTags() { return tags; } /** * This is a mandatory parameter. * Example value: "AU-TpxcA-iU5OvuD2FL0" */ public ActivateRulesRequest setTargetKey(String targetKey) { this.targetKey = targetKey; return this; } public String getTargetKey() { return targetKey; } /** * Possible values: * <ul> * <li>"INFO"</li> * <li>"MINOR"</li> * <li>"MAJOR"</li> * <li>"CRITICAL"</li> * <li>"BLOCKER"</li> * </ul> */ public ActivateRulesRequest setTargetSeverity(String targetSeverity) { this.targetSeverity = targetSeverity; return this; } public String getTargetSeverity() { return targetSeverity; } /** * Example value: "java:S001" */ public ActivateRulesRequest setTemplateKey(String templateKey) { this.templateKey = templateKey; return this; } public String getTemplateKey() { return templateKey; } /** * Example value: "BUG" * Possible values: * <ul> * <li>"CODE_SMELL"</li> * <li>"BUG"</li> * <li>"VULNERABILITY"</li> * <li>"SECURITY_HOTSPOT"</li> * </ul> */ public ActivateRulesRequest setTypes(List<String> types) { this.types = types; return this; } public List<String> getTypes() { return types; } }
10,000
20.884026
177
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/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.qualityprofiles; 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/qualityprofiles/add_group">Further information about this action online (including a response example)</a> * @since 6.6 */ @Generated("sonar-ws-generator") public class AddGroupRequest { private String group; private String language; private String qualityProfile; /** * This is a mandatory parameter. * Example value: "sonar-administrators" */ public AddGroupRequest setGroup(String group) { this.group = group; return this; } public String getGroup() { return group; } /** * This is a mandatory parameter. */ public AddGroupRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return language; } /** * This is a mandatory parameter. * Example value: "Recommended quality profile" */ public AddGroupRequest setQualityProfile(String qualityProfile) { this.qualityProfile = qualityProfile; return this; } public String getQualityProfile() { return qualityProfile; } }
2,092
26.906667
172
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/AddProjectRequest.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.qualityprofiles; 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/qualityprofiles/add_project">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class AddProjectRequest { private String language; private String project; private String qualityProfile; /** * This is a mandatory parameter. */ public AddProjectRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return language; } /** * This is a mandatory parameter. * Example value: "my_project" */ public AddProjectRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } /** * This is a mandatory parameter. * Example value: "Sonar way" */ public AddProjectRequest setQualityProfile(String qualityProfile) { this.qualityProfile = qualityProfile; return this; } public String getQualityProfile() { return qualityProfile; } }
2,088
26.853333
174
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/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.qualityprofiles; 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/qualityprofiles/add_user">Further information about this action online (including a response example)</a> * @since 6.6 */ @Generated("sonar-ws-generator") public class AddUserRequest { private String language; private String login; private String qualityProfile; /** * This is a mandatory parameter. */ public AddUserRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return language; } /** * This is a mandatory parameter. * Example value: "john.doe" */ public AddUserRequest setLogin(String login) { this.login = login; return this; } public String getLogin() { return login; } /** * This is a mandatory parameter. * Example value: "Recommended quality profile" */ public AddUserRequest setQualityProfile(String qualityProfile) { this.qualityProfile = qualityProfile; return this; } public String getQualityProfile() { return qualityProfile; } }
2,075
26.68
171
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/BackupRequest.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.qualityprofiles; 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/qualityprofiles/backup">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class BackupRequest { private String language; private String qualityProfile; /** * This is a mandatory parameter. */ public BackupRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return language; } /** * This is a mandatory parameter. * Example value: "Sonar way" */ public BackupRequest setQualityProfile(String qualityProfile) { this.qualityProfile = qualityProfile; return this; } public String getQualityProfile() { return qualityProfile; } }
1,802
28.557377
169
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/ChangeParentRequest.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.qualityprofiles; 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/qualityprofiles/change_parent">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class ChangeParentRequest { private String language; private String parentQualityProfile; private String qualityProfile; /** * This is a mandatory parameter. */ public ChangeParentRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return language; } /** * Example value: "Sonar way" */ public ChangeParentRequest setParentQualityProfile(String parentQualityProfile) { this.parentQualityProfile = parentQualityProfile; return this; } public String getParentQualityProfile() { return parentQualityProfile; } /** * This is a mandatory parameter. * Example value: "Sonar way" */ public ChangeParentRequest setQualityProfile(String qualityProfile) { this.qualityProfile = qualityProfile; return this; } public String getQualityProfile() { return qualityProfile; } }
2,152
28.094595
176
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/ChangelogRequest.java
/* * SonarQube * Copyright (C) 2009-2023 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ package org.sonarqube.ws.client.qualityprofiles; 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/qualityprofiles/changelog">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class ChangelogRequest { private String language; private String p; private String ps; private String qualityProfile; private String since; private String to; /** * This is a mandatory parameter. */ public ChangelogRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return language; } /** * Example value: "42" */ public ChangelogRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "20" */ public ChangelogRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * This is a mandatory parameter. * Example value: "Sonar way" */ public ChangelogRequest setQualityProfile(String qualityProfile) { this.qualityProfile = qualityProfile; return this; } public String getQualityProfile() { return qualityProfile; } /** * Example value: "2017-10-19 or 2017-10-19T13:00:00+0200" */ public ChangelogRequest setSince(String since) { this.since = since; return this; } public String getSince() { return since; } /** * Example value: "2017-10-19 or 2017-10-19T13:00:00+0200" */ public ChangelogRequest setTo(String to) { this.to = to; return this; } public String getTo() { return to; } }
2,656
22.513274
172
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/CompareRequest.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.qualityprofiles; 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/qualityprofiles/compare">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class CompareRequest { private String leftKey; private String rightKey; /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public CompareRequest setLeftKey(String leftKey) { this.leftKey = leftKey; return this; } public String getLeftKey() { return leftKey; } /** * This is a mandatory parameter. * Example value: "AU-TpxcA-iU5OvuD2FLz" */ public CompareRequest setRightKey(String rightKey) { this.rightKey = rightKey; return this; } public String getRightKey() { return rightKey; } }
1,811
28.225806
170
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/CopyRequest.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.qualityprofiles; 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/qualityprofiles/copy">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class CopyRequest { private String fromKey; private String toName; /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public CopyRequest setFromKey(String fromKey) { this.fromKey = fromKey; return this; } public String getFromKey() { return fromKey; } /** * This is a mandatory parameter. * Example value: "My Sonar way" */ public CopyRequest setToName(String toName) { this.toName = toName; return this; } public String getToName() { return toName; } }
1,777
27.677419
167
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/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.qualityprofiles; 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/qualityprofiles/create">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class CreateRequest { private String language; private String name; /** * This is a mandatory parameter. * Example value: "js" */ public CreateRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return language; } /** * This is a mandatory parameter. * Example value: "My Sonar way" */ public CreateRequest setName(String name) { this.name = name; return this; } public String getName() { return name; } }
1,761
26.968254
169
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/DeactivateRuleRequest.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.qualityprofiles; 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/qualityprofiles/deactivate_rule">Further information about this action online (including a response example)</a> * @since 4.4 */ @Generated("sonar-ws-generator") public class DeactivateRuleRequest { private String key; private String rule; /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public DeactivateRuleRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } /** * This is a mandatory parameter. * Example value: "java:AvoidCycles" */ public DeactivateRuleRequest setRule(String rule) { this.rule = rule; return this; } public String getRule() { return rule; } }
1,780
27.725806
178
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/DeactivateRulesRequest.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.qualityprofiles; 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/qualityprofiles/deactivate_rules">Further information about this action online (including a response example)</a> * @since 4.4 */ @Generated("sonar-ws-generator") public class DeactivateRulesRequest { private String activation; private List<String> activeSeverities; private String asc; private String availableSince; private String compareToProfile; private List<String> cwe; private List<String> inheritance; private String isTemplate; private List<String> languages; private List<String> owaspTop10; private String q; private String qprofile; private List<String> repositories; private String ruleKey; private String s; private List<String> sansTop25; private List<String> severities; private List<String> sonarsourceSecurity; private List<String> statuses; private List<String> tags; private String targetKey; private String templateKey; private List<String> types; /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public DeactivateRulesRequest setActivation(String activation) { this.activation = activation; return this; } public String getActivation() { return activation; } /** * Example value: "CRITICAL,BLOCKER" * Possible values: * <ul> * <li>"INFO"</li> * <li>"MINOR"</li> * <li>"MAJOR"</li> * <li>"CRITICAL"</li> * <li>"BLOCKER"</li> * </ul> */ public DeactivateRulesRequest setActiveSeverities(List<String> activeSeverities) { this.activeSeverities = activeSeverities; return this; } public List<String> getActiveSeverities() { return activeSeverities; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public DeactivateRulesRequest setAsc(String asc) { this.asc = asc; return this; } public String getAsc() { return asc; } /** * Example value: "2014-06-22" */ public DeactivateRulesRequest setAvailableSince(String availableSince) { this.availableSince = availableSince; return this; } public String getAvailableSince() { return availableSince; } /** * This is part of the internal API. * Example value: "AU-TpxcA-iU5OvuD2FLz" */ public DeactivateRulesRequest setCompareToProfile(String compareToProfile) { this.compareToProfile = compareToProfile; return this; } public String getCompareToProfile() { return compareToProfile; } /** * Example value: "12,125,unknown" */ public DeactivateRulesRequest setCwe(List<String> cwe) { this.cwe = cwe; return this; } public List<String> getCwe() { return cwe; } /** * Example value: "INHERITED,OVERRIDES" * Possible values: * <ul> * <li>"NONE"</li> * <li>"INHERITED"</li> * <li>"OVERRIDES"</li> * </ul> */ public DeactivateRulesRequest setInheritance(List<String> inheritance) { this.inheritance = inheritance; return this; } public List<String> getInheritance() { return inheritance; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public DeactivateRulesRequest setIsTemplate(String isTemplate) { this.isTemplate = isTemplate; return this; } public String getIsTemplate() { return isTemplate; } /** * Example value: "java,js" */ public DeactivateRulesRequest setLanguages(List<String> languages) { this.languages = languages; return this; } public List<String> getLanguages() { return languages; } /** * Possible values: * <ul> * <li>"a1"</li> * <li>"a2"</li> * <li>"a3"</li> * <li>"a4"</li> * <li>"a5"</li> * <li>"a6"</li> * <li>"a7"</li> * <li>"a8"</li> * <li>"a9"</li> * <li>"a10"</li> * </ul> */ public DeactivateRulesRequest setOwaspTop10(List<String> owaspTop10) { this.owaspTop10 = owaspTop10; return this; } public List<String> getOwaspTop10() { return owaspTop10; } /** * Example value: "xpath" */ public DeactivateRulesRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public DeactivateRulesRequest setQprofile(String qprofile) { this.qprofile = qprofile; return this; } public String getQprofile() { return qprofile; } /** * Example value: "checkstyle,findbugs" */ public DeactivateRulesRequest setRepositories(List<String> repositories) { this.repositories = repositories; return this; } public List<String> getRepositories() { return repositories; } /** * Example value: "java:S001" */ public DeactivateRulesRequest setRuleKey(String ruleKey) { this.ruleKey = ruleKey; return this; } public String getRuleKey() { return ruleKey; } /** * Example value: "name" * Possible values: * <ul> * <li>"name"</li> * <li>"updatedAt"</li> * <li>"createdAt"</li> * <li>"key"</li> * </ul> */ public DeactivateRulesRequest setS(String s) { this.s = s; return this; } public String getS() { return s; } /** * Possible values: * <ul> * <li>"insecure-interaction"</li> * <li>"risky-resource"</li> * <li>"porous-defenses"</li> * </ul> */ public DeactivateRulesRequest setSansTop25(List<String> sansTop25) { this.sansTop25 = sansTop25; return this; } public List<String> getSansTop25() { return sansTop25; } /** * Example value: "CRITICAL,BLOCKER" * Possible values: * <ul> * <li>"INFO"</li> * <li>"MINOR"</li> * <li>"MAJOR"</li> * <li>"CRITICAL"</li> * <li>"BLOCKER"</li> * </ul> */ public DeactivateRulesRequest setSeverities(List<String> severities) { this.severities = severities; return this; } public List<String> getSeverities() { return severities; } /** * Example value: "sql-injection,command-injection,others" * Possible values: * <ul> * <li>"sql-injection"</li> * <li>"command-injection"</li> * <li>"path-traversal-injection"</li> * <li>"ldap-injection"</li> * <li>"xpath-injection"</li> * <li>"rce"</li> * <li>"dos"</li> * <li>"ssrf"</li> * <li>"csrf"</li> * <li>"xss"</li> * <li>"log-injection"</li> * <li>"http-response-splitting"</li> * <li>"open-redirect"</li> * <li>"xxe"</li> * <li>"object-injection"</li> * <li>"weak-cryptography"</li> * <li>"auth"</li> * <li>"insecure-conf"</li> * <li>"file-manipulation"</li> * <li>"others"</li> * </ul> */ public DeactivateRulesRequest setSonarsourceSecurity(List<String> sonarsourceSecurity) { this.sonarsourceSecurity = sonarsourceSecurity; return this; } public List<String> getSonarsourceSecurity() { return sonarsourceSecurity; } /** * Example value: "READY" * Possible values: * <ul> * <li>"BETA"</li> * <li>"DEPRECATED"</li> * <li>"READY"</li> * <li>"REMOVED"</li> * </ul> */ public DeactivateRulesRequest setStatuses(List<String> statuses) { this.statuses = statuses; return this; } public List<String> getStatuses() { return statuses; } /** * Example value: "security,java8" */ public DeactivateRulesRequest setTags(List<String> tags) { this.tags = tags; return this; } public List<String> getTags() { return tags; } /** * This is a mandatory parameter. * Example value: "AU-TpxcA-iU5OvuD2FL1" */ public DeactivateRulesRequest setTargetKey(String targetKey) { this.targetKey = targetKey; return this; } public String getTargetKey() { return targetKey; } /** * Example value: "java:S001" */ public DeactivateRulesRequest setTemplateKey(String templateKey) { this.templateKey = templateKey; return this; } public String getTemplateKey() { return templateKey; } /** * Example value: "BUG" * Possible values: * <ul> * <li>"CODE_SMELL"</li> * <li>"BUG"</li> * <li>"VULNERABILITY"</li> * <li>"SECURITY_HOTSPOT"</li> * </ul> */ public DeactivateRulesRequest setTypes(List<String> types) { this.types = types; return this; } public List<String> getTypes() { return types; } }
9,631
21.04119
179
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/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.qualityprofiles; 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/qualityprofiles/delete">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class DeleteRequest { private String language; private String qualityProfile; /** * This is a mandatory parameter. */ public DeleteRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return language; } /** * This is a mandatory parameter. * Example value: "Sonar way" */ public DeleteRequest setQualityProfile(String qualityProfile) { this.qualityProfile = qualityProfile; return this; } public String getQualityProfile() { return qualityProfile; } }
1,802
28.557377
169
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/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.qualityprofiles; 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/qualityprofiles/export">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class ExportRequest { private String language; private String qualityProfile; /** * This is a mandatory parameter. * Example value: "" */ public ExportRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return language; } /** * Example value: "My Sonar way" */ public ExportRequest setQualityProfile(String qualityProfile) { this.qualityProfile = qualityProfile; return this; } public String getQualityProfile() { return qualityProfile; } }
1,792
28.393443
169
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/InheritanceRequest.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.qualityprofiles; 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/qualityprofiles/inheritance">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class InheritanceRequest { private String language; private String qualityProfile; /** * This is a mandatory parameter. */ public InheritanceRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return language; } /** * This is a mandatory parameter. * Example value: "Sonar way" */ public InheritanceRequest setQualityProfile(String qualityProfile) { this.qualityProfile = qualityProfile; return this; } public String getQualityProfile() { return qualityProfile; } }
1,822
28.885246
174
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/ProjectsRequest.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.qualityprofiles; 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/qualityprofiles/projects">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class ProjectsRequest { private String key; private String p; private String ps; private String q; private String selected; /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public ProjectsRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } /** * Example value: "42" */ public ProjectsRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "20" */ public ProjectsRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Example value: "sonar" */ public ProjectsRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * Possible values: * <ul> * <li>"all"</li> * <li>"deselected"</li> * <li>"selected"</li> * </ul> */ public ProjectsRequest setSelected(String selected) { this.selected = selected; return this; } public String getSelected() { return selected; } }
2,382
21.695238
171
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/QualityprofilesService.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.qualityprofiles; import java.util.stream.Collectors; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.Qualityprofiles; import org.sonarqube.ws.Qualityprofiles.CopyWsResponse; import org.sonarqube.ws.Qualityprofiles.CreateWsResponse; import org.sonarqube.ws.Qualityprofiles.SearchGroupsResponse; import org.sonarqube.ws.Qualityprofiles.SearchUsersResponse; import org.sonarqube.ws.Qualityprofiles.SearchWsResponse; import org.sonarqube.ws.Qualityprofiles.ShowResponse; 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/qualityprofiles">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class QualityprofilesService extends BaseService { public QualityprofilesService(WsConnector wsConnector) { super(wsConnector, "api/qualityprofiles"); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualityprofiles/activate_rule">Further information about this action online (including a response example)</a> * @since 4.4 */ public void activateRule(ActivateRuleRequest request) { call( new PostRequest(path("activate_rule")) .setParam("key", request.getKey()) .setParam("params", request.getParams() == null ? null : request.getParams().stream().collect(Collectors.joining(","))) .setParam("reset", request.getReset()) .setParam("rule", request.getRule()) .setParam("severity", request.getSeverity()) .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/qualityprofiles/activate_rules">Further information about this action online (including a response example)</a> * @since 4.4 */ public void activateRules(ActivateRulesRequest request) { call( new PostRequest(path("activate_rules")) .setParam("activation", request.getActivation()) .setParam("active_severities", request.getActiveSeverities() == null ? null : request.getActiveSeverities().stream().collect(Collectors.joining(","))) .setParam("asc", request.getAsc()) .setParam("available_since", request.getAvailableSince()) .setParam("compareToProfile", request.getCompareToProfile()) .setParam("cwe", request.getCwe() == null ? null : request.getCwe().stream().collect(Collectors.joining(","))) .setParam("inheritance", request.getInheritance() == null ? null : request.getInheritance().stream().collect(Collectors.joining(","))) .setParam("is_template", request.getIsTemplate()) .setParam("languages", request.getLanguages() == null ? null : request.getLanguages().stream().collect(Collectors.joining(","))) .setParam("owaspTop10", request.getOwaspTop10() == null ? null : request.getOwaspTop10().stream().collect(Collectors.joining(","))) .setParam("q", request.getQ()) .setParam("qprofile", request.getQprofile()) .setParam("repositories", request.getRepositories() == null ? null : request.getRepositories().stream().collect(Collectors.joining(","))) .setParam("rule_key", request.getRuleKey()) .setParam("s", request.getS()) .setParam("sansTop25", request.getSansTop25() == null ? null : request.getSansTop25().stream().collect(Collectors.joining(","))) .setParam("severities", request.getSeverities() == null ? null : request.getSeverities().stream().collect(Collectors.joining(","))) .setParam("sonarsourceSecurity", request.getSonarsourceSecurity() == null ? null : request.getSonarsourceSecurity().stream().collect(Collectors.joining(","))) .setParam("statuses", request.getStatuses() == null ? null : request.getStatuses().stream().collect(Collectors.joining(","))) .setParam("tags", request.getTags() == null ? null : request.getTags().stream().collect(Collectors.joining(","))) .setParam("targetKey", request.getTargetKey()) .setParam("targetSeverity", request.getTargetSeverity()) .setParam("template_key", request.getTemplateKey()) .setParam("types", request.getTypes() == null ? null : request.getTypes().stream().collect(Collectors.joining(","))) .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/qualityprofiles/add_group">Further information about this action online (including a response example)</a> * @since 6.6 */ public void addGroup(AddGroupRequest request) { call( new PostRequest(path("add_group")) .setParam("group", request.getGroup()) .setParam("language", request.getLanguage()) .setParam("qualityProfile", request.getQualityProfile()) .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/qualityprofiles/add_project">Further information about this action online (including a response example)</a> * @since 5.2 */ public void addProject(AddProjectRequest request) { call( new PostRequest(path("add_project")) .setParam("language", request.getLanguage()) .setParam("project", request.getProject()) .setParam("qualityProfile", request.getQualityProfile()) .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/qualityprofiles/add_user">Further information about this action online (including a response example)</a> * @since 6.6 */ public void addUser(AddUserRequest request) { call( new PostRequest(path("add_user")) .setParam("language", request.getLanguage()) .setParam("login", request.getLogin()) .setParam("qualityProfile", request.getQualityProfile()) .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/qualityprofiles/backup">Further information about this action online (including a response example)</a> * @since 5.2 */ public String backup(BackupRequest request) { return call( new GetRequest(path("backup")) .setParam("language", request.getLanguage()) .setParam("qualityProfile", request.getQualityProfile()) .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/qualityprofiles/change_parent">Further information about this action online (including a response example)</a> * @since 5.2 */ public void changeParent(ChangeParentRequest request) { call( new PostRequest(path("change_parent")) .setParam("language", request.getLanguage()) .setParam("parentQualityProfile", request.getParentQualityProfile()) .setParam("qualityProfile", request.getQualityProfile()) .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/qualityprofiles/changelog">Further information about this action online (including a response example)</a> * @since 5.2 */ public String changelog(ChangelogRequest request) { return call( new GetRequest(path("changelog")) .setParam("language", request.getLanguage()) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("qualityProfile", request.getQualityProfile()) .setParam("since", request.getSince()) .setParam("to", request.getTo()) .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/qualityprofiles/compare">Further information about this action online (including a response example)</a> * @since 5.2 */ public String compare(CompareRequest request) { return call( new GetRequest(path("compare")) .setParam("leftKey", request.getLeftKey()) .setParam("rightKey", request.getRightKey()) .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/qualityprofiles/copy">Further information about this action online (including a response example)</a> * @since 5.2 */ public CopyWsResponse copy(CopyRequest request) { return call( new PostRequest(path("copy")) .setParam("fromKey", request.getFromKey()) .setParam("toName", request.getToName()), CopyWsResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualityprofiles/create">Further information about this action online (including a response example)</a> * @since 5.2 */ public CreateWsResponse create(CreateRequest request) { return call( new PostRequest(path("create")) .setParam("language", request.getLanguage()) .setParam("name", request.getName()), 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/qualityprofiles/deactivate_rule">Further information about this action online (including a response example)</a> * @since 4.4 */ public void deactivateRule(DeactivateRuleRequest request) { call( new PostRequest(path("deactivate_rule")) .setParam("key", request.getKey()) .setParam("rule", request.getRule()) .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/qualityprofiles/deactivate_rules">Further information about this action online (including a response example)</a> * @since 4.4 */ public void deactivateRules(DeactivateRulesRequest request) { call( new PostRequest(path("deactivate_rules")) .setParam("activation", request.getActivation()) .setParam("active_severities", request.getActiveSeverities() == null ? null : request.getActiveSeverities().stream().collect(Collectors.joining(","))) .setParam("asc", request.getAsc()) .setParam("available_since", request.getAvailableSince()) .setParam("compareToProfile", request.getCompareToProfile()) .setParam("cwe", request.getCwe() == null ? null : request.getCwe().stream().collect(Collectors.joining(","))) .setParam("inheritance", request.getInheritance() == null ? null : request.getInheritance().stream().collect(Collectors.joining(","))) .setParam("is_template", request.getIsTemplate()) .setParam("languages", request.getLanguages() == null ? null : request.getLanguages().stream().collect(Collectors.joining(","))) .setParam("owaspTop10", request.getOwaspTop10() == null ? null : request.getOwaspTop10().stream().collect(Collectors.joining(","))) .setParam("q", request.getQ()) .setParam("qprofile", request.getQprofile()) .setParam("repositories", request.getRepositories() == null ? null : request.getRepositories().stream().collect(Collectors.joining(","))) .setParam("rule_key", request.getRuleKey()) .setParam("s", request.getS()) .setParam("sansTop25", request.getSansTop25() == null ? null : request.getSansTop25().stream().collect(Collectors.joining(","))) .setParam("severities", request.getSeverities() == null ? null : request.getSeverities().stream().collect(Collectors.joining(","))) .setParam("sonarsourceSecurity", request.getSonarsourceSecurity() == null ? null : request.getSonarsourceSecurity().stream().collect(Collectors.joining(","))) .setParam("statuses", request.getStatuses() == null ? null : request.getStatuses().stream().collect(Collectors.joining(","))) .setParam("tags", request.getTags() == null ? null : request.getTags().stream().collect(Collectors.joining(","))) .setParam("targetKey", request.getTargetKey()) .setParam("template_key", request.getTemplateKey()) .setParam("types", request.getTypes() == null ? null : request.getTypes().stream().collect(Collectors.joining(","))) .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/qualityprofiles/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("language", request.getLanguage()) .setParam("qualityProfile", request.getQualityProfile()) .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/qualityprofiles/export">Further information about this action online (including a response example)</a> * @since 5.2 */ public String export(ExportRequest request) { return call( new GetRequest(path("export")) .setParam("language", request.getLanguage()) .setParam("qualityProfile", request.getQualityProfile()) .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/qualityprofiles/exporters">Further information about this action online (including a response example)</a> * @since 5.2 */ public String exporters() { return call( new GetRequest(path("exporters")) .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/qualityprofiles/importers">Further information about this action online (including a response example)</a> * @since 5.2 */ public String importers() { return call( new GetRequest(path("importers")) .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/qualityprofiles/inheritance">Further information about this action online (including a response example)</a> * @since 5.2 */ public Qualityprofiles.InheritanceWsResponse inheritance(InheritanceRequest request) { return call( new GetRequest(path("inheritance")) .setParam("language", request.getLanguage()) .setParam("qualityProfile", request.getQualityProfile()), Qualityprofiles.InheritanceWsResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualityprofiles/projects">Further information about this action online (including a response example)</a> * @since 5.2 */ public String projects(ProjectsRequest request) { return call( new GetRequest(path("projects")) .setParam("key", request.getKey()) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("q", request.getQ()) .setParam("selected", request.getSelected()) .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/qualityprofiles/remove_group">Further information about this action online (including a response example)</a> * @since 6.6 */ public void removeGroup(RemoveGroupRequest request) { call( new PostRequest(path("remove_group")) .setParam("group", request.getGroup()) .setParam("language", request.getLanguage()) .setParam("qualityProfile", request.getQualityProfile()) .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/qualityprofiles/remove_project">Further information about this action online (including a response example)</a> * @since 5.2 */ public void removeProject(RemoveProjectRequest request) { call( new PostRequest(path("remove_project")) .setParam("language", request.getLanguage()) .setParam("project", request.getProject()) .setParam("qualityProfile", request.getQualityProfile()) .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/qualityprofiles/remove_user">Further information about this action online (including a response example)</a> * @since 6.6 */ public void removeUser(RemoveUserRequest request) { call( new PostRequest(path("remove_user")) .setParam("language", request.getLanguage()) .setParam("login", request.getLogin()) .setParam("qualityProfile", request.getQualityProfile()) .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/qualityprofiles/rename">Further information about this action online (including a response example)</a> * @since 5.2 */ public void rename(RenameRequest request) { call( new PostRequest(path("rename")) .setParam("key", request.getKey()) .setParam("name", request.getName()) .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/qualityprofiles/restore">Further information about this action online (including a response example)</a> * @since 5.2 */ public void restore(RestoreRequest request) { call( new PostRequest(path("restore")) .setParam("backup", request.getBackup()) .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/qualityprofiles/search">Further information about this action online (including a response example)</a> * @since 5.2 */ public SearchWsResponse search(SearchRequest request) { return call( new GetRequest(path("search")) .setParam("defaults", request.getDefaults()) .setParam("language", request.getLanguage()) .setParam("project", request.getProject()) .setParam("qualityProfile", request.getQualityProfile()), SearchWsResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualityprofiles/search_groups">Further information about this action online (including a response example)</a> * @since 6.6 */ public SearchGroupsResponse searchGroups(SearchGroupsRequest request) { return call( new GetRequest(path("search_groups")) .setParam("language", request.getLanguage()) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("q", request.getQ()) .setParam("qualityProfile", request.getQualityProfile()) .setParam("selected", request.getSelected()), SearchGroupsResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualityprofiles/search_users">Further information about this action online (including a response example)</a> * @since 6.6 */ public SearchUsersResponse searchUsers(SearchUsersRequest request) { return call( new GetRequest(path("search_users")) .setParam("language", request.getLanguage()) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("q", request.getQ()) .setParam("qualityProfile", request.getQualityProfile()) .setParam("selected", request.getSelected()), SearchUsersResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/qualityprofiles/set_default">Further information about this action online (including a response example)</a> * @since 5.2 */ public void setDefault(SetDefaultRequest request) { call( new PostRequest(path("set_default")) .setParam("language", request.getLanguage()) .setParam("qualityProfile", request.getQualityProfile()) .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/qualityprofiles/show">Further information about this action online (including a response example)</a> * @since 6.5 * @return */ public ShowResponse show(ShowRequest request) { return call( new GetRequest(path("show")) .setParam("compareToSonarWay", request.getCompareToSonarWay()) .setParam("key", request.getKey()), ShowResponse.parser()); } }
23,369
40
181
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/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.qualityprofiles; 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/qualityprofiles/remove_group">Further information about this action online (including a response example)</a> * @since 6.6 */ @Generated("sonar-ws-generator") public class RemoveGroupRequest { private String group; private String language; private String qualityProfile; /** * This is a mandatory parameter. * Example value: "sonar-administrators" */ public RemoveGroupRequest setGroup(String group) { this.group = group; return this; } public String getGroup() { return group; } /** * This is a mandatory parameter. */ public RemoveGroupRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return language; } /** * This is a mandatory parameter. * Example value: "Recommended quality profile" */ public RemoveGroupRequest setQualityProfile(String qualityProfile) { this.qualityProfile = qualityProfile; return this; } public String getQualityProfile() { return qualityProfile; } }
2,107
27.106667
175
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/RemoveProjectRequest.java
/* * SonarQube * Copyright (C) 2009-2023 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ package org.sonarqube.ws.client.qualityprofiles; 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/qualityprofiles/remove_project">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class RemoveProjectRequest { private String language; private String project; private String qualityProfile; /** * This is a mandatory parameter. */ public RemoveProjectRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return language; } /** * This is a mandatory parameter. * Example value: "my_project" */ public RemoveProjectRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } /** * This is a mandatory parameter. * Example value: "Sonar way" */ public RemoveProjectRequest setQualityProfile(String qualityProfile) { this.qualityProfile = qualityProfile; return this; } public String getQualityProfile() { return qualityProfile; } }
2,103
27.053333
177
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/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.qualityprofiles; 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/qualityprofiles/remove_user">Further information about this action online (including a response example)</a> * @since 6.6 */ @Generated("sonar-ws-generator") public class RemoveUserRequest { private String language; private String login; private String qualityProfile; /** * This is a mandatory parameter. */ public RemoveUserRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return language; } /** * This is a mandatory parameter. * Example value: "john.doe" */ public RemoveUserRequest setLogin(String login) { this.login = login; return this; } public String getLogin() { return login; } /** * This is a mandatory parameter. * Example value: "Recommended quality profile" */ public RemoveUserRequest setQualityProfile(String qualityProfile) { this.qualityProfile = qualityProfile; return this; } public String getQualityProfile() { return qualityProfile; } }
2,090
26.88
174
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/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.qualityprofiles; 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/qualityprofiles/rename">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class RenameRequest { private String key; private String name; /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public RenameRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } /** * This is a mandatory parameter. * Example value: "My Sonar way" */ public RenameRequest setName(String name) { this.name = name; return this; } public String getName() { return name; } }
1,743
27.129032
169
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/RestoreRequest.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.qualityprofiles; 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/qualityprofiles/restore">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class RestoreRequest { private String backup; /** * This is a mandatory parameter. */ public RestoreRequest setBackup(String backup) { this.backup = backup; return this; } public String getBackup() { return backup; } }
1,479
29.833333
170
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/SearchGroupsRequest.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.qualityprofiles; 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/qualityprofiles/search_groups">Further information about this action online (including a response example)</a> * @since 6.6 */ @Generated("sonar-ws-generator") public class SearchGroupsRequest { private String language; private String p; private String ps; private String q; private String qualityProfile; private String selected; /** * This is a mandatory parameter. */ public SearchGroupsRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return language; } /** * Example value: "42" */ public SearchGroupsRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "20" */ public SearchGroupsRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Example value: "sonar" */ public SearchGroupsRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * This is a mandatory parameter. * Example value: "Recommended quality profile" */ public SearchGroupsRequest setQualityProfile(String qualityProfile) { this.qualityProfile = qualityProfile; return this; } public String getQualityProfile() { return qualityProfile; } /** * Possible values: * <ul> * <li>"all"</li> * <li>"deselected"</li> * <li>"selected"</li> * </ul> */ public SearchGroupsRequest setSelected(String selected) { this.selected = selected; return this; } public String getSelected() { return selected; } }
2,740
22.228814
176
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/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.qualityprofiles; 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/qualityprofiles/search">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class SearchRequest { private String defaults; private String language; private String project; private String qualityProfile; /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public SearchRequest setDefaults(String defaults) { this.defaults = defaults; return this; } public String getDefaults() { return defaults; } /** */ public SearchRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return language; } /** * Example value: "my_project" */ public SearchRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } /** * Example value: "SonarQube Way" */ public SearchRequest setQualityProfile(String qualityProfile) { this.qualityProfile = qualityProfile; return this; } public String getQualityProfile() { return qualityProfile; } }
2,299
24.274725
169
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/SearchUsersRequest.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.qualityprofiles; 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/qualityprofiles/search_users">Further information about this action online (including a response example)</a> * @since 6.6 */ @Generated("sonar-ws-generator") public class SearchUsersRequest { private String language; private String p; private String ps; private String q; private String qualityProfile; private String selected; /** * This is a mandatory parameter. */ public SearchUsersRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return language; } /** * Example value: "42" */ public SearchUsersRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "20" */ public SearchUsersRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Example value: "freddy" */ public SearchUsersRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * This is a mandatory parameter. * Example value: "Recommended quality profile" */ public SearchUsersRequest setQualityProfile(String qualityProfile) { this.qualityProfile = qualityProfile; return this; } public String getQualityProfile() { return qualityProfile; } /** * Possible values: * <ul> * <li>"all"</li> * <li>"deselected"</li> * <li>"selected"</li> * </ul> */ public SearchUsersRequest setSelected(String selected) { this.selected = selected; return this; } public String getSelected() { return selected; } }
2,733
22.169492
175
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/SetDefaultRequest.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.qualityprofiles; 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/qualityprofiles/set_default">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class SetDefaultRequest { private String language; private String qualityProfile; /** * This is a mandatory parameter. */ public SetDefaultRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return language; } /** * This is a mandatory parameter. * Example value: "Sonar way" */ public SetDefaultRequest setQualityProfile(String qualityProfile) { this.qualityProfile = qualityProfile; return this; } public String getQualityProfile() { return qualityProfile; } }
1,819
28.836066
174
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/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.qualityprofiles; 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/qualityprofiles/show">Further information about this action online (including a response example)</a> * @since 6.5 */ @Generated("sonar-ws-generator") public class ShowRequest { private String compareToSonarWay; private String key; /** * This is part of the internal API. * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public ShowRequest setCompareToSonarWay(String compareToSonarWay) { this.compareToSonarWay = compareToSonarWay; return this; } public String getCompareToSonarWay() { return compareToSonarWay; } /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public ShowRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } }
1,927
27.352941
167
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofiles/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.qualityprofiles; 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/regulatoryreports/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.regulatoryreports; 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/regulatory_reports/download">Further information about this action online (including a response example)</a> * @since 9.5 */ @Generated("sonar-ws-generator") public class DownloadRequest { private String branch; private String project; /** * Example value: "feature/my_branch" */ public DownloadRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * This is a mandatory parameter. * Example value: "my_project" */ public DownloadRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } }
1,757
27.819672
174
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/regulatoryreports/RegulatoryReportsService.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.regulatoryreports; import java.io.InputStream; 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/regulatory_reports">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class RegulatoryReportsService extends BaseService { public RegulatoryReportsService(WsConnector wsConnector) { super(wsConnector, "api/regulatory_reports"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/regulatory_reports/download">Further information about this action online (including a response example)</a> * @since 9.5 */ public InputStream download(DownloadRequest request) { return call( new GetRequest(path("download")) .setParam("branch", request.getBranch()) .setParam("project", request.getProject()) .setMediaType(MediaTypes.JSON) ).contentStream(); } }
2,044
36.181818
176
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/regulatoryreports/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.regulatoryreports; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,050
37.925926
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/roots/RootsService.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.roots; 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.Roots.SearchResponse; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/roots">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class RootsService extends BaseService { public RootsService(WsConnector wsConnector) { super(wsConnector, "api/roots"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/roots/search">Further information about this action online (including a response example)</a> * @since 6.2 */ public SearchResponse search() { return call( new GetRequest(path("search")), 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/roots/set_root">Further information about this action online (including a response example)</a> * @since 6.2 */ public void setRoot(SetRootRequest request) { call( new PostRequest(path("set_root")) .setParam("login", request.getLogin()) .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/roots/unset_root">Further information about this action online (including a response example)</a> * @since 6.2 */ public void unsetRoot(UnsetRootRequest request) { call( new PostRequest(path("unset_root")) .setParam("login", request.getLogin()) .setMediaType(MediaTypes.JSON) ).content(); } }
2,828
33.084337
165
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/roots/SetRootRequest.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.roots; 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/roots/set_root">Further information about this action online (including a response example)</a> * @since 6.2 */ @Generated("sonar-ws-generator") public class SetRootRequest { private String login; /** * This is a mandatory parameter. * Example value: "admin" */ public SetRootRequest setLogin(String login) { this.login = login; return this; } public String getLogin() { return login; } }
1,480
29.854167
161
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/roots/UnsetRootRequest.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.roots; 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/roots/unset_root">Further information about this action online (including a response example)</a> * @since 6.2 */ @Generated("sonar-ws-generator") public class UnsetRootRequest { private String login; /** * This is a mandatory parameter. * Example value: "admin" */ public UnsetRootRequest setLogin(String login) { this.login = login; return this; } public String getLogin() { return login; } }
1,486
29.979167
163
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/roots/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.roots; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,038
37.481481
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/rules/AppRequest.java
/* * SonarQube * Copyright (C) 2009-2023 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ package org.sonarqube.ws.client.rules; 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/rules/app">Further information about this action online (including a response example)</a> * @since 4.5 */ @Generated("sonar-ws-generator") public class AppRequest { }
1,223
36.090909
156
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/rules/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.rules; 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/rules/create">Further information about this action online (including a response example)</a> * @since 4.4 */ @Generated("sonar-ws-generator") public class CreateRequest { private String customKey; private String markdownDescription; private String name; private List<String> params; private String preventReactivation; private String severity; private String status; private String templateKey; private String type; /** * This is a mandatory parameter. * Example value: "Todo_should_not_be_used" */ public CreateRequest setCustomKey(String customKey) { this.customKey = customKey; return this; } public String getCustomKey() { return customKey; } /** * This is a mandatory parameter. * Example value: "Description of my custom rule" */ public CreateRequest setMarkdownDescription(String markdownDescription) { this.markdownDescription = markdownDescription; return this; } public String getMarkdownDescription() { return markdownDescription; } /** * This is a mandatory parameter. * Example value: "My custom rule" */ public CreateRequest setName(String name) { this.name = name; return this; } public String getName() { return name; } /** */ public CreateRequest setParams(List<String> params) { this.params = params; return this; } public List<String> getParams() { return params; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public CreateRequest setPreventReactivation(String preventReactivation) { this.preventReactivation = preventReactivation; return this; } public String getPreventReactivation() { return preventReactivation; } /** * Possible values: * <ul> * <li>"INFO"</li> * <li>"MINOR"</li> * <li>"MAJOR"</li> * <li>"CRITICAL"</li> * <li>"BLOCKER"</li> * </ul> */ public CreateRequest setSeverity(String severity) { this.severity = severity; return this; } public String getSeverity() { return severity; } /** * Possible values: * <ul> * <li>"BETA"</li> * <li>"DEPRECATED"</li> * <li>"READY"</li> * <li>"REMOVED"</li> * </ul> */ public CreateRequest setStatus(String status) { this.status = status; return this; } public String getStatus() { return status; } /** * Example value: "java:XPath" */ public CreateRequest setTemplateKey(String templateKey) { this.templateKey = templateKey; return this; } public String getTemplateKey() { return templateKey; } /** * Possible values: * <ul> * <li>"CODE_SMELL"</li> * <li>"BUG"</li> * <li>"VULNERABILITY"</li> * </ul> */ public CreateRequest setType(String type) { this.type = type; return this; } public String getType() { return type; } }
4,043
21.719101
159
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/rules/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.rules; 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/rules/delete">Further information about this action online (including a response example)</a> * @since 4.4 */ @Generated("sonar-ws-generator") public class DeleteRequest { private String key; /** * This is a mandatory parameter. * Example value: "java:XPath_1402065390816" */ public DeleteRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } }
1,481
29.875
159
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/rules/RepositoriesRequest.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.rules; 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/rules/repositories">Further information about this action online (including a response example)</a> * @since 4.5 */ @Generated("sonar-ws-generator") public class RepositoriesRequest { private String language; private String q; /** * Example value: "java" */ public RepositoriesRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return language; } /** * Example value: "java" */ public RepositoriesRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } }
1,665
26.766667
165
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/rules/RulesService.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.rules; import java.util.stream.Collectors; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.Rules.CreateResponse; import org.sonarqube.ws.Rules.ListResponse; import org.sonarqube.ws.Rules.SearchResponse; import org.sonarqube.ws.Rules.ShowResponse; import org.sonarqube.ws.Rules.UpdateResponse; 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/rules">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class RulesService extends BaseService { public RulesService(WsConnector wsConnector) { super(wsConnector, "api/rules"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/rules/app">Further information about this action online (including a response example)</a> * @since 4.5 */ public String app(AppRequest request) { return call( new GetRequest(path("app")) .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/rules/create">Further information about this action online (including a response example)</a> * @since 9.7 */ public void create(CreateRequest request) { call( new PostRequest(path("create")) .setParam("customKey", request.getCustomKey()) .setParam("markdownDescription", request.getMarkdownDescription()) .setParam("name", request.getName()) .setParam("params", request.getParams() == null ? null : request.getParams().stream().collect(Collectors.joining(","))) .setParam("preventReactivation", request.getPreventReactivation()) .setParam("severity", request.getSeverity()) .setParam("status", request.getStatus()) .setParam("templateKey", request.getTemplateKey()) .setParam("type", request.getType()), CreateResponse.parser()); } /** * * This is part of the internal API. * This is a POST request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/rules/delete">Further information about this action online (including a response example)</a> * @since 4.4 */ public void delete(DeleteRequest request) { call( new PostRequest(path("delete")) .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/rules/list">Further information about this action online (including a response example)</a> * @since 5.2 */ public ListResponse list() { return call( new GetRequest(path("list")), ListResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/rules/repositories">Further information about this action online (including a response example)</a> * @since 4.5 */ public String repositories(RepositoriesRequest request) { return call( new GetRequest(path("repositories")) .setParam("language", request.getLanguage()) .setParam("q", request.getQ()) .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/rules/search">Further information about this action online (including a response example)</a> * @since 4.4 */ public SearchResponse search(SearchRequest request) { return call( new GetRequest(path("search")) .setParam("activation", request.getActivation()) .setParam("active_severities", request.getActiveSeverities() == null ? null : request.getActiveSeverities().stream().collect(Collectors.joining(","))) .setParam("asc", request.getAsc()) .setParam("available_since", request.getAvailableSince()) .setParam("compareToProfile", request.getCompareToProfile()) .setParam("f", request.getF() == null ? null : request.getF().stream().collect(Collectors.joining(","))) .setParam("facets", request.getFacets() == null ? null : request.getFacets().stream().collect(Collectors.joining(","))) .setParam("inheritance", request.getInheritance() == null ? null : request.getInheritance().stream().collect(Collectors.joining(","))) .setParam("is_template", request.getIsTemplate()) .setParam("include_external", request.getIncludeExternal()) .setParam("languages", request.getLanguages() == null ? null : request.getLanguages().stream().collect(Collectors.joining(","))) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("q", request.getQ()) .setParam("qprofile", request.getQprofile()) .setParam("repositories", request.getRepositories() == null ? null : request.getRepositories().stream().collect(Collectors.joining(","))) .setParam("rule_key", request.getRuleKey()) .setParam("s", request.getS()) .setParam("severities", request.getSeverities() == null ? null : request.getSeverities().stream().collect(Collectors.joining(","))) .setParam("statuses", request.getStatuses() == null ? null : request.getStatuses().stream().collect(Collectors.joining(","))) .setParam("cwe", request.getCwe() == null ? null : request.getCwe().stream().collect(Collectors.joining(","))) .setParam("owaspTop10", request.getOwaspTop10() == null ? null : request.getOwaspTop10().stream().collect(Collectors.joining(","))) .setParam("sansTop25", request.getSansTop25() == null ? null : request.getSansTop25().stream().collect(Collectors.joining(","))) .setParam("sonarsourceSecurity", request.getSonarsourceSecurity() == null ? null : request.getSonarsourceSecurity().stream().collect(Collectors.joining(","))) .setParam("tags", request.getTags() == null ? null : request.getTags().stream().collect(Collectors.joining(","))) .setParam("template_key", request.getTemplateKey()) .setParam("types", request.getTypes() == null ? null : request.getTypes().stream().collect(Collectors.joining(","))), SearchResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/rules/show">Further information about this action online (including a response example)</a> * @since 4.2 */ public ShowResponse show(ShowRequest request) { return call( new GetRequest(path("show")) .setParam("actives", request.getActives()) .setParam("key", request.getKey()), ShowResponse.parser()); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/rules/tags">Further information about this action online (including a response example)</a> * @since 4.4 */ public String tags(TagsRequest request) { return call( new GetRequest(path("tags")) .setParam("ps", request.getPs()) .setParam("q", request.getQ()) .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/rules/update">Further information about this action online (including a response example)</a> * @since 4.4 */ public void update(UpdateRequest request) { call( new PostRequest(path("update")) .setParam("key", request.getKey()) .setParam("markdown_description", request.getMarkdownDescription()) .setParam("markdown_note", request.getMarkdownNote()) .setParam("name", request.getName()) .setParam("params", request.getParams() == null ? null : request.getParams().stream().collect(Collectors.joining(","))) .setParam("remediation_fn_base_effort", request.getRemediationFnBaseEffort()) .setParam("remediation_fn_type", request.getRemediationFnType()) .setParam("remediation_fy_gap_multiplier", request.getRemediationFyGapMultiplier()) .setParam("severity", request.getSeverity()) .setParam("status", request.getStatus()) .setParam("tags", request.getTags() == null ? null : request.getTags().stream().collect(Collectors.joining(","))), UpdateResponse.parser()); } }
9,671
43.777778
167
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/rules/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.rules; 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/rules/search">Further information about this action online (including a response example)</a> * @since 4.4 */ @Generated("sonar-ws-generator") public class SearchRequest { private String activation; private List<String> activeSeverities; private String asc; private String availableSince; private String compareToProfile; private List<String> cwe; private List<String> f; private List<String> facets; private String includeExternal; private List<String> inheritance; private String isTemplate; private List<String> languages; private List<String> owaspTop10; private String p; private String ps; private String q; private String qprofile; private List<String> repositories; private String ruleKey; private String s; private List<String> sansTop25; private List<String> severities; private List<String> sonarsourceSecurity; private List<String> statuses; private List<String> tags; private String templateKey; private List<String> types; /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public SearchRequest setActivation(String activation) { this.activation = activation; return this; } public String getActivation() { return activation; } /** * Example value: "CRITICAL,BLOCKER" * Possible values: * <ul> * <li>"INFO"</li> * <li>"MINOR"</li> * <li>"MAJOR"</li> * <li>"CRITICAL"</li> * <li>"BLOCKER"</li> * </ul> */ public SearchRequest setActiveSeverities(List<String> activeSeverities) { this.activeSeverities = activeSeverities; return this; } public List<String> getActiveSeverities() { return activeSeverities; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public SearchRequest setAsc(String asc) { this.asc = asc; return this; } public String getAsc() { return asc; } /** * Example value: "2014-06-22" */ public SearchRequest setAvailableSince(String availableSince) { this.availableSince = availableSince; return this; } public String getAvailableSince() { return availableSince; } /** * This is part of the internal API. * Example value: "AU-TpxcA-iU5OvuD2FLz" */ public SearchRequest setCompareToProfile(String compareToProfile) { this.compareToProfile = compareToProfile; return this; } public String getCompareToProfile() { return compareToProfile; } /** * Example value: "12,125,unknown" */ public SearchRequest setCwe(List<String> cwe) { this.cwe = cwe; return this; } public List<String> getCwe() { return cwe; } /** * Example value: "repo,name" * Possible values: * <ul> * <li>"actives"</li> * <li>"createdAt"</li> * <li>"debtRemFn"</li> * <li>"defaultDebtRemFn"</li> * <li>"defaultRemFn"</li> * <li>"gapDescription"</li> * <li>"htmlDesc"</li> * <li>"htmlNote"</li> * <li>"internalKey"</li> * <li>"isExternal"</li> * <li>"isTemplate"</li> * <li>"lang"</li> * <li>"langName"</li> * <li>"mdDesc"</li> * <li>"mdNote"</li> * <li>"name"</li> * <li>"noteLogin"</li> * <li>"params"</li> * <li>"remFn"</li> * <li>"remFnOverloaded"</li> * <li>"repo"</li> * <li>"scope"</li> * <li>"severity"</li> * <li>"status"</li> * <li>"sysTags"</li> * <li>"tags"</li> * <li>"templateKey"</li> * <li>"updatedAt"</li> * </ul> */ public SearchRequest setF(List<String> f) { this.f = f; return this; } public List<String> getF() { return f; } /** * Example value: "languages,repositories" * Possible values: * <ul> * <li>"languages"</li> * <li>"repositories"</li> * <li>"tags"</li> * <li>"severities"</li> * <li>"active_severities"</li> * <li>"statuses"</li> * <li>"types"</li> * <li>"true"</li> * <li>"cwe"</li> * <li>"owaspTop10"</li> * <li>"sansTop25"</li> * <li>"sonarsourceSecurity"</li> * </ul> */ public SearchRequest setFacets(List<String> facets) { this.facets = facets; return this; } public List<String> getFacets() { return facets; } /** * Example value: "INHERITED,OVERRIDES" * Possible values: * <ul> * <li>"NONE"</li> * <li>"INHERITED"</li> * <li>"OVERRIDES"</li> * </ul> */ public SearchRequest setInheritance(List<String> inheritance) { this.inheritance = inheritance; return this; } public List<String> getInheritance() { return inheritance; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public SearchRequest setIsTemplate(String isTemplate) { this.isTemplate = isTemplate; return this; } public String getIsTemplate() { return isTemplate; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public SearchRequest setIncludeExternal(String includeExternal) { this.includeExternal = includeExternal; return this; } public String getIncludeExternal() { return includeExternal; } /** * Example value: "java,js" */ public SearchRequest setLanguages(List<String> languages) { this.languages = languages; return this; } public List<String> getLanguages() { return languages; } /** * Possible values: * <ul> * <li>"a1"</li> * <li>"a2"</li> * <li>"a3"</li> * <li>"a4"</li> * <li>"a5"</li> * <li>"a6"</li> * <li>"a7"</li> * <li>"a8"</li> * <li>"a9"</li> * <li>"a10"</li> * <li>"unknown"</li> * </ul> */ public SearchRequest setOwaspTop10(List<String> owaspTop10) { this.owaspTop10 = owaspTop10; return this; } public List<String> getOwaspTop10() { return owaspTop10; } /** * Example value: "42" */ public SearchRequest setP(String p) { this.p = p; return this; } public String getP() { return p; } /** * Example value: "20" */ public SearchRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Example value: "xpath" */ public SearchRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } /** * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public SearchRequest setQprofile(String qprofile) { this.qprofile = qprofile; return this; } public String getQprofile() { return qprofile; } /** * Example value: "checkstyle,findbugs" */ public SearchRequest setRepositories(List<String> repositories) { this.repositories = repositories; return this; } public List<String> getRepositories() { return repositories; } /** * Example value: "java:S001" */ public SearchRequest setRuleKey(String ruleKey) { this.ruleKey = ruleKey; return this; } public String getRuleKey() { return ruleKey; } /** * Example value: "name" * Possible values: * <ul> * <li>"name"</li> * <li>"updatedAt"</li> * <li>"createdAt"</li> * <li>"key"</li> * </ul> */ public SearchRequest setS(String s) { this.s = s; return this; } public String getS() { return s; } /** * Possible values: * <ul> * <li>"insecure-interaction"</li> * <li>"risky-resource"</li> * <li>"porous-defenses"</li> * </ul> */ public SearchRequest setSansTop25(List<String> sansTop25) { this.sansTop25 = sansTop25; return this; } public List<String> getSansTop25() { return sansTop25; } /** * Example value: "CRITICAL,BLOCKER" * Possible values: * <ul> * <li>"INFO"</li> * <li>"MINOR"</li> * <li>"MAJOR"</li> * <li>"CRITICAL"</li> * <li>"BLOCKER"</li> * </ul> */ public SearchRequest setSeverities(List<String> severities) { this.severities = severities; return this; } public List<String> getSeverities() { return severities; } /** * Example value: "sql-injection,command-injection" * Possible values: * <ul> * <li>"sql-injection"</li> * <li>"command-injection"</li> * <li>"path-traversal-injection"</li> * <li>"ldap-injection"</li> * <li>"xpath-injection"</li> * <li>"expression-lang-injection"</li> * <li>"rce"</li> * <li>"dos"</li> * <li>"ssrf"</li> * <li>"csrf"</li> * <li>"xss"</li> * <li>"log-injection"</li> * <li>"http-response-splitting"</li> * <li>"open-redirect"</li> * <li>"xxe"</li> * <li>"object-injection"</li> * <li>"weak-cryptography"</li> * <li>"auth"</li> * <li>"insecure-conf"</li> * <li>"file-manipulation"</li> * </ul> */ public SearchRequest setSonarsourceSecurity(List<String> sonarsourceSecurity) { this.sonarsourceSecurity = sonarsourceSecurity; return this; } public List<String> getSonarsourceSecurity() { return sonarsourceSecurity; } /** * Example value: "READY" * Possible values: * <ul> * <li>"BETA"</li> * <li>"DEPRECATED"</li> * <li>"READY"</li> * <li>"REMOVED"</li> * </ul> */ public SearchRequest setStatuses(List<String> statuses) { this.statuses = statuses; return this; } public List<String> getStatuses() { return statuses; } /** * Example value: "security,java8" */ public SearchRequest setTags(List<String> tags) { this.tags = tags; return this; } public List<String> getTags() { return tags; } /** * Example value: "java:S001" */ public SearchRequest setTemplateKey(String templateKey) { this.templateKey = templateKey; return this; } public String getTemplateKey() { return templateKey; } /** * Example value: "BUG" * Possible values: * <ul> * <li>"CODE_SMELL"</li> * <li>"BUG"</li> * <li>"VULNERABILITY"</li> * <li>"SECURITY_HOTSPOT"</li> * </ul> */ public SearchRequest setTypes(List<String> types) { this.types = types; return this; } public List<String> getTypes() { return types; } }
11,527
20.308688
159
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/rules/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.rules; 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/rules/show">Further information about this action online (including a response example)</a> * @since 4.2 */ @Generated("sonar-ws-generator") public class ShowRequest { private String actives; private String key; /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public ShowRequest setActives(String actives) { this.actives = actives; return this; } public String getActives() { return actives; } /** * This is a mandatory parameter. * Example value: "javascript:EmptyBlock" */ public ShowRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } }
1,799
25.865672
157
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/rules/TagsRequest.java
/* * SonarQube * Copyright (C) 2009-2023 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ package org.sonarqube.ws.client.rules; 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/rules/tags">Further information about this action online (including a response example)</a> * @since 4.4 */ @Generated("sonar-ws-generator") public class TagsRequest { private String ps; private String q; /** * Example value: "20" */ public TagsRequest setPs(String ps) { this.ps = ps; return this; } public String getPs() { return ps; } /** * Example value: "misra" */ public TagsRequest setQ(String q) { this.q = q; return this; } public String getQ() { return q; } }
1,590
25.516667
157
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/rules/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.rules; 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/rules/update">Further information about this action online (including a response example)</a> * @since 4.4 */ @Generated("sonar-ws-generator") public class UpdateRequest { private String key; private String markdownDescription; private String markdownNote; private String name; private List<String> params; private String remediationFnBaseEffort; private String remediationFnType; private String remediationFyGapMultiplier; private String severity; private String status; private List<String> tags; /** * This is a mandatory parameter. * Example value: "javascript:NullCheck" */ public UpdateRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } /** * Example value: "Description of my custom rule" */ public UpdateRequest setMarkdownDescription(String markdownDescription) { this.markdownDescription = markdownDescription; return this; } public String getMarkdownDescription() { return markdownDescription; } /** * Example value: "my *note*" */ public UpdateRequest setMarkdownNote(String markdownNote) { this.markdownNote = markdownNote; return this; } public String getMarkdownNote() { return markdownNote; } /** * Example value: "My custom rule" */ public UpdateRequest setName(String name) { this.name = name; return this; } public String getName() { return name; } /** */ public UpdateRequest setParams(List<String> params) { this.params = params; return this; } public List<String> getParams() { return params; } /** * Example value: "1d" */ public UpdateRequest setRemediationFnBaseEffort(String remediationFnBaseEffort) { this.remediationFnBaseEffort = remediationFnBaseEffort; return this; } public String getRemediationFnBaseEffort() { return remediationFnBaseEffort; } /** * Possible values: * <ul> * <li>"LINEAR"</li> * <li>"LINEAR_OFFSET"</li> * <li>"CONSTANT_ISSUE"</li> * </ul> */ public UpdateRequest setRemediationFnType(String remediationFnType) { this.remediationFnType = remediationFnType; return this; } public String getRemediationFnType() { return remediationFnType; } /** * Example value: "3min" */ public UpdateRequest setRemediationFyGapMultiplier(String remediationFyGapMultiplier) { this.remediationFyGapMultiplier = remediationFyGapMultiplier; return this; } public String getRemediationFyGapMultiplier() { return remediationFyGapMultiplier; } /** * Possible values: * <ul> * <li>"INFO"</li> * <li>"MINOR"</li> * <li>"MAJOR"</li> * <li>"CRITICAL"</li> * <li>"BLOCKER"</li> * </ul> */ public UpdateRequest setSeverity(String severity) { this.severity = severity; return this; } public String getSeverity() { return severity; } /** * Possible values: * <ul> * <li>"BETA"</li> * <li>"DEPRECATED"</li> * <li>"READY"</li> * <li>"REMOVED"</li> * </ul> */ public UpdateRequest setStatus(String status) { this.status = status; return this; } public String getStatus() { return status; } /** * Example value: "java8,security" */ public UpdateRequest setTags(List<String> tags) { this.tags = tags; return this; } public List<String> getTags() { return tags; } }
4,536
22.147959
159
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/rules/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.rules; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,038
37.481481
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/securityreports/SecurityReportsService.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.securityreports; import javax.annotation.Generated; import org.sonarqube.ws.client.BaseService; import org.sonarqube.ws.client.GetRequest; import org.sonarqube.ws.client.WsConnector; import org.sonarqube.ws.SecurityReports.ShowWsResponse; /** * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/security_reports">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class SecurityReportsService extends BaseService { public SecurityReportsService(WsConnector wsConnector) { super(wsConnector, "api/security_reports"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/security_reports/show">Further information about this action online (including a response example)</a> * @since 7.3 */ public ShowWsResponse show(ShowRequest request) { return call( new GetRequest(path("show")) .setParam("branch", request.getBranch()) .setParam("includeDistribution", request.getIncludeDistribution()) .setParam("project", request.getProject()) .setParam("standard", request.getStandard()), ShowWsResponse.parser()); } }
2,108
37.345455
170
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/securityreports/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.securityreports; 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/security_reports/show">Further information about this action online (including a response example)</a> * @since 7.3 */ @Generated("sonar-ws-generator") public class ShowRequest { private String branch; private String includeDistribution; private String project; private String standard; /** * Example value: "branch-2.0" */ public ShowRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public ShowRequest setIncludeDistribution(String includeDistribution) { this.includeDistribution = includeDistribution; return this; } public String getIncludeDistribution() { return includeDistribution; } /** * This is a mandatory parameter. */ public ShowRequest setProject(String project) { this.project = project; return this; } public String getProject() { return project; } /** * This is a mandatory parameter. * Possible values: * <ul> * <li>"owaspTop10"</li> * <li>"sansTop25"</li> * </ul> */ public ShowRequest setStandard(String standard) { this.standard = standard; return this; } public String getStandard() { return standard; } }
2,445
24.216495
168
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/securityreports/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.securityreports; 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/server/ServerService.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.server; 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/server">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class ServerService extends BaseService { public ServerService(WsConnector wsConnector) { super(wsConnector, "api/server"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/server/version">Further information about this action online (including a response example)</a> * @since 2.10 */ public String version() { return call( new GetRequest(path("version")) .setMediaType(MediaTypes.JSON) ).content(); } }
1,811
33.846154
163
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/server/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.server; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.Generated;
1,039
37.518519
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/settings/EncryptRequest.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.settings; 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/settings/encrypt">Further information about this action online (including a response example)</a> * @since 6.1 */ @Generated("sonar-ws-generator") public class EncryptRequest { private String value; /** * This is a mandatory parameter. * Example value: "my value" */ public EncryptRequest setValue(String value) { this.value = value; return this; } public String getValue() { return value; } }
1,488
30.020833
163
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/settings/ListDefinitionsRequest.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.settings; 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/settings/list_definitions">Further information about this action online (including a response example)</a> * @since 6.3 */ @Generated("sonar-ws-generator") public class ListDefinitionsRequest { private String branch; private String component; private String pullRequest; /** * This is part of the internal API. * Example value: "feature/my_branch" */ public ListDefinitionsRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * Example value: "my_project" */ public ListDefinitionsRequest setComponent(String component) { this.component = component; return this; } public String getComponent() { return component; } /** * This is part of the internal API. * Example value: "5461" */ public ListDefinitionsRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } }
2,083
26.786667
172
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/settings/ResetRequest.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.settings; 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/settings/reset">Further information about this action online (including a response example)</a> * @since 6.1 */ @Generated("sonar-ws-generator") public class ResetRequest { private String branch; private String component; private List<String> keys; private String pullRequest; /** * This is part of the internal API. * Example value: "feature/my_branch" */ public ResetRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * Example value: "my_project" */ public ResetRequest setComponent(String component) { this.component = component; return this; } public String getComponent() { return component; } /** * This is a mandatory parameter. * Example value: "sonar.links.scm,sonar.debt.hoursInDay" */ public ResetRequest setKeys(List<String> keys) { this.keys = keys; return this; } public List<String> getKeys() { return keys; } /** * This is part of the internal API. * Example value: "5461" */ public ResetRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } }
2,343
25.044444
161
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/settings/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.settings; 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/settings/set">Further information about this action online (including a response example)</a> * @since 6.1 */ @Generated("sonar-ws-generator") public class SetRequest { private String branch; private String component; private List<String> fieldValues; private String key; private String pullRequest; private String value; private List<String> values; /** * This is part of the internal API. * Example value: "feature/my_branch" */ public SetRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * Example value: "my_project" */ public SetRequest setComponent(String component) { this.component = component; return this; } public String getComponent() { return component; } /** * Example value: "fieldValues={\"firstField\":\"first value\", \"secondField\":\"second value\", \"thirdField\":\"third value\"}" */ public SetRequest setFieldValues(List<String> fieldValues) { this.fieldValues = fieldValues; return this; } public List<String> getFieldValues() { return fieldValues; } /** * This is a mandatory parameter. * Example value: "sonar.links.scm" */ public SetRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } /** * This is part of the internal API. * Example value: "5461" */ public SetRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } /** * Example value: "git@github.com:SonarSource/sonarqube.git" */ public SetRequest setValue(String value) { this.value = value; return this; } public String getValue() { return value; } /** * Example value: "values=firstValue&values=secondValue&values=thirdValue" */ public SetRequest setValues(List<String> values) { this.values = values; return this; } public List<String> getValues() { return values; } }
3,179
23.651163
159
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/settings/SettingsService.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.settings; import java.util.stream.Collectors; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; import org.sonarqube.ws.Settings.CheckSecretKeyWsResponse; import org.sonarqube.ws.Settings.EncryptWsResponse; import org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse; import org.sonarqube.ws.Settings.ListDefinitionsWsResponse; import org.sonarqube.ws.Settings.ValuesWsResponse; 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/settings">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class SettingsService extends BaseService { public SettingsService(WsConnector wsConnector) { super(wsConnector, "api/settings"); } /** * This is part of the internal API. * This is a GET request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/settings/check_secret_key">Further information about this action online (including a response example)</a> * @since 6.1 */ public CheckSecretKeyWsResponse checkSecretKey() { return call( new GetRequest(path("check_secret_key")), CheckSecretKeyWsResponse.parser()); } /** * This is part of the internal API. * This is a GET request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/settings/encrypt">Further information about this action online (including a response example)</a> * @since 6.1 */ public EncryptWsResponse encrypt(EncryptRequest request) { return call( new GetRequest(path("encrypt")) .setParam("value", request.getValue()), EncryptWsResponse.parser()); } /** * This is part of the internal API. * This is a GET request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/settings/generate_secret_key">Further information about this action online (including a response example)</a> * @since 6.1 */ public GenerateSecretKeyWsResponse generateSecretKey() { return call( new GetRequest(path("generate_secret_key")), GenerateSecretKeyWsResponse.parser()); } /** * This is part of the internal API. * This is a GET request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/settings/list_definitions">Further information about this action online (including a response example)</a> * @since 6.3 */ public ListDefinitionsWsResponse listDefinitions(ListDefinitionsRequest request) { return call( new GetRequest(path("list_definitions")) .setParam("branch", request.getBranch()) .setParam("component", request.getComponent()) .setParam("pullRequest", request.getPullRequest()), ListDefinitionsWsResponse.parser()); } /** * This is part of the internal API. * This is a POST request. * * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/settings/reset">Further information about this action online (including a response example)</a> * @since 6.1 */ public void reset(ResetRequest request) { call( new PostRequest(path("reset")) .setParam("branch", request.getBranch()) .setParam("component", request.getComponent()) .setParam("keys", request.getKeys() == null ? null : request.getKeys().stream().collect(Collectors.joining(","))) .setParam("pullRequest", request.getPullRequest()) .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/settings/set">Further information about this action online (including a response example)</a> * @since 6.1 */ public void set(SetRequest request) { call( new PostRequest(path("set")) .setParam("branch", request.getBranch()) .setParam("component", request.getComponent()) .setParam("fieldValues", request.getFieldValues() == null ? null : request.getFieldValues()) .setParam("key", request.getKey()) .setParam("pullRequest", request.getPullRequest()) .setParam("value", request.getValue()) .setParam("values", request.getValues() == null ? null : request.getValues()) .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/settings/values">Further information about this action online (including a response example)</a> * @since 6.3 */ public ValuesWsResponse values(ValuesRequest request) { return call( new GetRequest(path("values")) .setParam("branch", request.getBranch()) .setParam("component", request.getComponent()) .setParam("keys", request.getKeys() == null ? null : request.getKeys().stream().collect(Collectors.joining(","))) .setParam("pullRequest", request.getPullRequest()), ValuesWsResponse.parser()); } }
6,028
37.401274
177
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/settings/ValuesRequest.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.settings; 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/settings/values">Further information about this action online (including a response example)</a> * @since 6.3 */ @Generated("sonar-ws-generator") public class ValuesRequest { private String branch; private String component; private List<String> keys; private String pullRequest; /** * This is part of the internal API. * Example value: "feature/my_branch" */ public ValuesRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * Example value: "my_project" */ public ValuesRequest setComponent(String component) { this.component = component; return this; } public String getComponent() { return component; } /** * Example value: "sonar.test.inclusions,sonar.cpd.cross_project" */ public ValuesRequest setKeys(List<String> keys) { this.keys = keys; return this; } public List<String> getKeys() { return keys; } /** * This is part of the internal API. * Example value: "5461" */ public ValuesRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } }
2,321
25.089888
162
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/settings/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.settings; 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/sources/IndexRequest.java
/* * SonarQube * Copyright (C) 2009-2023 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ package org.sonarqube.ws.client.sources; 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/sources/index">Further information about this action online (including a response example)</a> * @since 5.0 */ @Generated("sonar-ws-generator") public class IndexRequest { private String from; private String resource; private String to; /** */ public IndexRequest setFrom(String from) { this.from = from; return this; } public String getFrom() { return from; } /** * This is a mandatory parameter. * Example value: "my_project:/src/foo/Bar.php" */ public IndexRequest setResource(String resource) { this.resource = resource; return this; } public String getResource() { return resource; } /** */ public IndexRequest setTo(String to) { this.to = to; return this; } public String getTo() { return to; } }
1,854
24.763889
160
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/sources/IssueSnippetsRequest.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.sources; 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/sources/issue_snippets">Further information about this action online (including a response example)</a> * @since 7.8 */ @Generated("sonar-ws-generator") public class IssueSnippetsRequest { private String issueKey; /** * This is a mandatory parameter. * Example value: "AU-Tpxb--iU5OvuD2FLy" */ public IssueSnippetsRequest setIssueKey(String issueKey) { this.issueKey = issueKey; return this; } public String getIssueKey() { return issueKey; } }
1,538
31.0625
169
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/sources/LinesRequest.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.sources; 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/sources/lines">Further information about this action online (including a response example)</a> * @since 5.0 */ @Generated("sonar-ws-generator") public class LinesRequest { private String branch; private String from; private String key; private String pullRequest; private String to; private String uuid; /** * This is part of the internal API. * Example value: "feature/my_branch" */ public LinesRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * Example value: "10" */ public LinesRequest setFrom(String from) { this.from = from; return this; } public String getFrom() { return from; } /** * Example value: "my_project:/src/foo/Bar.php" */ public LinesRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } /** * This is part of the internal API. * Example value: "5461" */ public LinesRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } /** * Example value: "20" */ public LinesRequest setTo(String to) { this.to = to; return this; } public String getTo() { return to; } /** * Example value: "f333aab4-7e3a-4d70-87e1-f4c491f05e5c" */ public LinesRequest setUuid(String uuid) { this.uuid = uuid; return this; } public String getUuid() { return uuid; } }
2,622
22.008772
160
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/sources/RawRequest.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.sources; 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/sources/raw">Further information about this action online (including a response example)</a> * @since 5.0 */ @Generated("sonar-ws-generator") public class RawRequest { private String branch; private String key; private String pullRequest; /** * This is part of the internal API. * Example value: "feature/my_branch" */ public RawRequest setBranch(String branch) { this.branch = branch; return this; } public String getBranch() { return branch; } /** * This is a mandatory parameter. * Example value: "my_project:src/foo/Bar.php" */ public RawRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } /** * This is part of the internal API. * Example value: "5461" */ public RawRequest setPullRequest(String pullRequest) { this.pullRequest = pullRequest; return this; } public String getPullRequest() { return pullRequest; } }
2,030
25.723684
158
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/sources/ScmRequest.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.sources; 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/sources/scm">Further information about this action online (including a response example)</a> * @since 4.4 */ @Generated("sonar-ws-generator") public class ScmRequest { private String commitsByLine; private String from; private String key; private String to; /** * Possible values: * <ul> * <li>"true"</li> * <li>"false"</li> * <li>"yes"</li> * <li>"no"</li> * </ul> */ public ScmRequest setCommitsByLine(String commitsByLine) { this.commitsByLine = commitsByLine; return this; } public String getCommitsByLine() { return commitsByLine; } /** * Example value: "10" */ public ScmRequest setFrom(String from) { this.from = from; return this; } public String getFrom() { return from; } /** * This is a mandatory parameter. * Example value: "my_project:/src/foo/Bar.php" */ public ScmRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } /** * Example value: "20" */ public ScmRequest setTo(String to) { this.to = to; return this; } public String getTo() { return to; } }
2,227
22.956989
158
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/sources/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.sources; 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/sources/show">Further information about this action online (including a response example)</a> * @since 4.4 */ @Generated("sonar-ws-generator") public class ShowRequest { private String from; private String key; private String to; /** * Example value: "10" */ public ShowRequest setFrom(String from) { this.from = from; return this; } public String getFrom() { return from; } /** * This is a mandatory parameter. * Example value: "my_project:/src/foo/Bar.php" */ public ShowRequest setKey(String key) { this.key = key; return this; } public String getKey() { return key; } /** * Example value: "20" */ public ShowRequest setTo(String to) { this.to = to; return this; } public String getTo() { return to; } }
1,864
24.202703
159
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/sources/SourcesService.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.sources; 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/sources">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class SourcesService extends BaseService { public SourcesService(WsConnector wsConnector) { super(wsConnector, "api/sources"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/sources/index">Further information about this action online (including a response example)</a> * @since 5.0 */ public String index(IndexRequest request) { return call( new GetRequest(path("index")) .setParam("from", request.getFrom()) .setParam("resource", request.getResource()) .setParam("to", request.getTo()) .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/sources/issue_snippets">Further information about this action online (including a response example)</a> * @since 5.0 */ public String issueSnippets(IssueSnippetsRequest request) { return call( new GetRequest(path("issue_snippets")) .setParam("issueKey", request.getIssueKey()) .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/sources/lines">Further information about this action online (including a response example)</a> * @since 5.0 */ public String lines(LinesRequest request) { return call( new GetRequest(path("lines")) .setParam("branch", request.getBranch()) .setParam("from", request.getFrom()) .setParam("key", request.getKey()) .setParam("pullRequest", request.getPullRequest()) .setParam("to", request.getTo()) .setParam("uuid", request.getUuid()) .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/sources/raw">Further information about this action online (including a response example)</a> * @since 5.0 */ public String raw(RawRequest request) { return call( new GetRequest(path("raw")) .setParam("branch", request.getBranch()) .setParam("key", request.getKey()) .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/sources/scm">Further information about this action online (including a response example)</a> * @since 4.4 */ public String scm(ScmRequest request) { return call( new GetRequest(path("scm")) .setParam("commits_by_line", request.getCommitsByLine()) .setParam("from", request.getFrom()) .setParam("key", request.getKey()) .setParam("to", request.getTo()) .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/sources/show">Further information about this action online (including a response example)</a> * @since 4.4 */ public String show(ShowRequest request) { return call( new GetRequest(path("show")) .setParam("from", request.getFrom()) .setParam("key", request.getKey()) .setParam("to", request.getTo()) .setMediaType(MediaTypes.JSON) ).content(); } }
4,915
33.619718
171
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/sources/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.sources; 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/support/SupportService.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.support; 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/support">Further information about this web service online</a> */ @Generated("sonar-ws-generator") public class SupportService extends BaseService { public SupportService(WsConnector wsConnector) { super(wsConnector, "api/support"); } /** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/support/info">Further information about this action online (including a response example)</a> * @since 3.1 */ public String info() { return call( new GetRequest(path("info")) .setMediaType(MediaTypes.JSON) ).content(); } }
1,807
33.769231
161
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/support/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.support; import javax.annotation.Generated; import javax.annotation.ParametersAreNonnullByDefault;
1,040
37.555556
75
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/system/ChangeLogLevelRequest.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.system; 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/system/change_log_level">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class ChangeLogLevelRequest { private String level; /** * This is a mandatory parameter. * Possible values: * <ul> * <li>"TRACE"</li> * <li>"DEBUG"</li> * <li>"INFO"</li> * </ul> */ public ChangeLogLevelRequest setLevel(String level) { this.level = level; return this; } public String getLevel() { return level; } }
1,590
29.018868
170
java
sonarqube
sonarqube-master/sonar-ws/src/main/java/org/sonarqube/ws/client/system/LogsRequest.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.system; 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/system/logs">Further information about this action online (including a response example)</a> * @since 5.2 */ @Generated("sonar-ws-generator") public class LogsRequest { private String process; /** * Possible values: * <ul> * <li>"app"</li> * <li>"ce"</li> * <li>"es"</li> * <li>"web"</li> * </ul> */ public LogsRequest setProcess(String process) { this.process = process; return this; } public String getProcess() { return process; } }
1,551
28.283019
158
java