@Immutable
public class VarcharColumnDef extends AbstractColumnDef {
public static final int MAX_SIZE = 4_000;
- /**
- * @deprecated use {@link #UUID_SIZE} instead
- */
- @Deprecated
- public static final int UUID_VARCHAR_SIZE = 50;
public static final int UUID_SIZE = 40;
public static final int DESCRIPTION_SECTION_KEY_SIZE = 50;
import static org.sonar.server.platform.db.migration.def.VarcharColumnDef.MAX_SIZE;
import static org.sonar.server.platform.db.migration.def.VarcharColumnDef.USER_UUID_SIZE;
import static org.sonar.server.platform.db.migration.def.VarcharColumnDef.UUID_SIZE;
-import static org.sonar.server.platform.db.migration.def.VarcharColumnDef.UUID_VARCHAR_SIZE;
import static org.sonar.server.platform.db.migration.def.VarcharColumnDef.newVarcharColumnDefBuilder;
public class CreateInitialSchema extends DdlChange {
private void createProjectAlmSettings(Context context) {
String tableName = "project_alm_settings";
VarcharColumnDef almSettingUuidCol = newVarcharColumnDefBuilder("alm_setting_uuid").setIsNullable(false).setLimit(UUID_SIZE).build();
- VarcharColumnDef projectUuidCol = newVarcharColumnDefBuilder(PROJECT_UUID_COL_NAME).setIsNullable(false).setLimit(UUID_VARCHAR_SIZE).build();
+ VarcharColumnDef projectUuidCol = newVarcharColumnDefBuilder(PROJECT_UUID_COL_NAME).setIsNullable(false).setLimit(OLD_UUID_VARCHAR_SIZE).build();
VarcharColumnDef almRepoCol = newVarcharColumnDefBuilder("alm_repo").setIsNullable(true).setLimit(256).build();
VarcharColumnDef almSlugCol = newVarcharColumnDefBuilder("alm_slug").setIsNullable(true).setLimit(256).build();
BooleanColumnDef summaryCommentEnabledCol = newBooleanColumnDefBuilder("summary_comment_enabled").setIsNullable(true).build();
public static final String SORT_BY_CREATION_DATE = "CREATION_DATE";
public static final String SORT_BY_UPDATE_DATE = "UPDATE_DATE";
public static final String SORT_BY_CLOSE_DATE = "CLOSE_DATE";
- /**
- * @deprecated since 7.2, it's no more possible to sort by assignee
- */
- @Deprecated
- public static final String SORT_BY_ASSIGNEE = "ASSIGNEE";
public static final String SORT_BY_SEVERITY = "SEVERITY";
public static final String SORT_BY_STATUS = "STATUS";
*/
public static final String SORT_HOTSPOTS = "HOTSPOTS";
- public static final Set<String> SORTS = Set.of(SORT_BY_CREATION_DATE, SORT_BY_UPDATE_DATE, SORT_BY_CLOSE_DATE, SORT_BY_ASSIGNEE, SORT_BY_SEVERITY,
+ public static final Set<String> SORTS = Set.of(SORT_BY_CREATION_DATE, SORT_BY_UPDATE_DATE, SORT_BY_CLOSE_DATE, SORT_BY_SEVERITY,
SORT_BY_STATUS, SORT_BY_FILE_LINE, SORT_HOTSPOTS);
private final Collection<String> issueKeys;
import static org.sonar.server.es.SearchOptions.MAX_PAGE_SIZE;
import static org.sonar.server.issue.index.IssueIndex.FACET_ASSIGNED_TO_ME;
import static org.sonar.server.issue.index.IssueIndex.FACET_PROJECTS;
-import static org.sonar.server.issue.index.IssueQuery.SORT_BY_ASSIGNEE;
import static org.sonar.server.issue.index.IssueQueryFactory.ISSUE_STATUSES;
import static org.sonar.server.issue.index.IssueQueryFactory.UNKNOWN;
import static org.sonar.server.security.SecurityStandards.SANS_TOP_25_INSECURE_INTERACTION;
+ "<br/>When issue indexation is in progress returns 503 service unavailable HTTP code.")
.setSince("3.6")
.setChangelog(
+ new Change("10.0", format("Deprecated value 'ASSIGNEE' in parameter '%s' is dropped", Param.SORT)),
new Change("10.0", format("Parameter 'sinceLeakPeriod' is removed, please use '%s' instead", PARAM_IN_NEW_CODE_PERIOD)),
new Change("9.8", "Add message formatting to issue and locations response"),
new Change("9.8", "response fields 'total', 's', 'ps' have been deprecated, please use 'paging' object instead"),
new Change("7.3", "response field 'fromHotspot' added to issues that are security hotspots"),
new Change("7.3", "added facets 'sansTop25', 'owaspTop10' and 'cwe'"),
new Change("7.2", "response field 'externalRuleEngine' added to issues that have been imported from an external rule engine"),
- new Change("7.2", format("value '%s' in parameter '%s' is deprecated, it won't have any effect", SORT_BY_ASSIGNEE, Param.SORT)),
+ new Change("7.2", format("value 'ASSIGNEE' in parameter '%s' is deprecated, it won't have any effect", Param.SORT)),
new Change("6.5", "parameters 'projects', 'projectUuids', 'moduleUuids', 'directories', 'fileUuids' are marked as internal"),
new Change("6.3", "response field 'email' is renamed 'avatar'"),
new Change("5.5", "response fields 'reporter' and 'actionPlan' are removed (drop of action plan and manual issue features)"),
public enum SearchAdditionalField {
ACTIONS("actions"),
- /**
- * @deprecated since 5.5, action plan feature has been removed
- */
- @Deprecated
- DEPRECATED_ACTION_PLANS("actionPlans"),
COMMENTS("comments"),
LANGUAGES("languages"),
RULES("rules"),
public static final String BRANCHES_DOC_LINK = "https://docs.sonarqube.org/latest/analyzing-source-code/branches/branch-analysis/";
public static final String BRANCH_NAME = "sonar.branch.name";
- @Deprecated
- public static final String BRANCH_TARGET = "sonar.branch.target";
public static final String PULL_REQUEST_KEY = "sonar.pullrequest.key";
public static final String PULL_REQUEST_BRANCH = "sonar.pullrequest.branch";
return this;
}
- /**
- * @since 4.4
- * @deprecated since 6.6 use {@link #execute()}
- */
- @Deprecated
- public synchronized Batch start() {
- return this;
- }
-
- /**
- * @since 4.4
- * @deprecated since 6.6 use {@link #execute()}
- */
- @Deprecated
- public Batch executeTask(Map<String, String> analysisProperties, Object... components) {
- Map<String, String> mergedProps = new HashMap<>(this.globalProperties);
- mergedProps.putAll(analysisProperties);
- List<Object> mergedComponents = new ArrayList<>(this.components);
- mergedComponents.addAll(Arrays.asList(components));
- return doExecute(mergedProps, mergedComponents);
- }
-
private RuntimeException handleException(RuntimeException t) {
if (loggingConfig.isVerbose()) {
return t;
return t;
}
- /**
- * @since 4.4
- * @deprecated since 6.6 use {@link #execute()}
- */
- @Deprecated
- public synchronized void stop() {
- }
-
private void configureLogging() {
if (loggingConfig != null) {
loggingConfig.setProperties(globalProperties);
return this;
}
- /**
- * @deprecated since 6.6 use {@link #setGlobalProperties(Map)}
- */
- @Deprecated
- public Builder setBootstrapProperties(Map<String, String> bootstrapProperties) {
- this.globalProperties = bootstrapProperties;
- return this;
- }
-
public Builder addComponents(Object... components) {
Collections.addAll(this.components, components);
return this;
new EnvironmentInformation("mediumTest", "1.0"));
if (verbose) {
- builder.setBootstrapProperties(Collections.singletonMap("sonar.verbose", "true"));
+ builder.setGlobalProperties(Collections.singletonMap("sonar.verbose", "true"));
}
batch = builder.build();
}
}
]
},
- {
- "path": "api/properties",
- "since": "2.6",
- "description": "This web service is deprecated, please use api/settings instead.",
- "actions": [
- {
- "key": "index",
- "description": "This web service is deprecated, please use api/settings/values instead.",
- "since": "2.6",
- "deprecatedSince": "6.3",
- "internal": false,
- "post": false,
- "hasResponseExample": true,
- "changelog": [],
- "params": [
- {
- "key": "format",
- "description": "Only json response format is available",
- "required": false,
- "internal": false,
- "possibleValues": [
- "json"
- ]
- },
- {
- "key": "id",
- "description": "Setting key",
- "required": false,
- "internal": false,
- "exampleValue": "sonar.test.inclusions"
- },
- {
- "key": "resource",
- "description": "Component key or database id",
- "required": false,
- "internal": false,
- "exampleValue": "my_project"
- }
- ]
- }
- ]
- },
{
"path": "api/qualitygates",
"since": "4.3",
}
]
},
- {
- "path": "api/timemachine",
- "since": "2.10",
- "description": "Removed since 6.3, please use api/measures/search_history instead",
- "actions": [
- {
- "key": "index",
- "description": "The web service is removed and you're invited to use api/measures/search_history instead",
- "since": "2.10",
- "deprecatedSince": "6.3",
- "internal": false,
- "post": false,
- "hasResponseExample": true,
- "changelog": []
- }
- ]
- },
{
"path": "api/updatecenter",
"since": "2.10",
"description": "Get list of installed plugins",
"actions": [
- {
- "key": "installed_plugins",
- "description": "Get the list of all the plugins installed on the SonarQube instance",
- "since": "2.10",
- "deprecatedSince": "6.3",
- "internal": true,
- "post": false,
- "hasResponseExample": true,
- "changelog": [],
- "params": [
- {
- "key": "format",
- "description": "Only json response format is available",
- "required": false,
- "internal": false,
- "possibleValues": [
- "json"
- ]
- }
- ]
- },
{
"key": "upload",
"description": "Upload a plugin.<br /> Requires 'Administer System' permission.",
import org.sonarqube.ws.client.projectpullrequests.ProjectPullRequestsService;
import org.sonarqube.ws.client.projects.ProjectsService;
import org.sonarqube.ws.client.projecttags.ProjectTagsService;
-import org.sonarqube.ws.client.properties.PropertiesService;
import org.sonarqube.ws.client.push.SonarLintServerPushService;
import org.sonarqube.ws.client.qualitygates.QualitygatesService;
import org.sonarqube.ws.client.qualityprofiles.QualityprofilesService;
import org.sonarqube.ws.client.sources.SourcesService;
import org.sonarqube.ws.client.support.SupportService;
import org.sonarqube.ws.client.system.SystemService;
-import org.sonarqube.ws.client.timemachine.TimemachineService;
import org.sonarqube.ws.client.updatecenter.UpdatecenterService;
import org.sonarqube.ws.client.usergroups.UserGroupsService;
import org.sonarqube.ws.client.users.UsersService;
private final ProjectPullRequestsService projectPullRequestsService;
private final ProjectTagsService projectTagsService;
private final ProjectsService projectsService;
- private final PropertiesService propertiesService;
private final QualitygatesService qualitygatesService;
private final QualityprofilesService qualityprofilesService;
private final RootsService rootsService;
private final SourcesService sourcesService;
private final SupportService supportService;
private final SystemService systemService;
- private final TimemachineService timemachineService;
private final UpdatecenterService updatecenterService;
private final UserGroupsService userGroupsService;
private final UserTokensService userTokensService;
this.projectPullRequestsService = new ProjectPullRequestsService(wsConnector);
this.projectTagsService = new ProjectTagsService(wsConnector);
this.projectsService = new ProjectsService(wsConnector);
- this.propertiesService = new PropertiesService(wsConnector);
this.qualitygatesService = new QualitygatesService(wsConnector);
this.qualityprofilesService = new QualityprofilesService(wsConnector);
this.rootsService = new RootsService(wsConnector);
this.sourcesService = new SourcesService(wsConnector);
this.supportService = new SupportService(wsConnector);
this.systemService = new SystemService(wsConnector);
- this.timemachineService = new TimemachineService(wsConnector);
this.updatecenterService = new UpdatecenterService(wsConnector);
this.userGroupsService = new UserGroupsService(wsConnector);
this.userTokensService = new UserTokensService(wsConnector);
return projectsService;
}
- @Override
- public PropertiesService properties() {
- return propertiesService;
- }
-
@Override
public QualitygatesService qualitygates() {
return qualitygatesService;
return systemService;
}
- @Override
- public TimemachineService timemachine() {
- return timemachineService;
- }
-
@Override
public UpdatecenterService updatecenter() {
return updatecenterService;
import org.sonarqube.ws.client.projectpullrequests.ProjectPullRequestsService;
import org.sonarqube.ws.client.projects.ProjectsService;
import org.sonarqube.ws.client.projecttags.ProjectTagsService;
-import org.sonarqube.ws.client.properties.PropertiesService;
import org.sonarqube.ws.client.push.SonarLintServerPushService;
import org.sonarqube.ws.client.qualitygates.QualitygatesService;
import org.sonarqube.ws.client.qualityprofiles.QualityprofilesService;
import org.sonarqube.ws.client.sources.SourcesService;
import org.sonarqube.ws.client.support.SupportService;
import org.sonarqube.ws.client.system.SystemService;
-import org.sonarqube.ws.client.timemachine.TimemachineService;
import org.sonarqube.ws.client.updatecenter.UpdatecenterService;
import org.sonarqube.ws.client.usergroups.UserGroupsService;
import org.sonarqube.ws.client.users.UsersService;
ProjectsService projects();
- PropertiesService properties();
-
QualitygatesService qualitygates();
QualityprofilesService qualityprofiles();
SystemService system();
- TimemachineService timemachine();
-
UpdatecenterService updatecenter();
UserGroupsService userGroups();
return component;
}
- /**
- * Example value: "AU-Tpxb--iU5OvuD2FLy"
- * @deprecated since 6.6
- */
- @Deprecated
- public ComponentRequest setComponentId(String componentId) {
- this.componentId = componentId;
- return this;
- }
-
public String getComponentId() {
return componentId;
}
private String branch;
private String component;
- private String componentId;
private String pullRequest;
/**
return component;
}
- /**
- * Example value: "AU-Tpxb--iU5OvuD2FLy"
- * @deprecated since 6.4
- */
- @Deprecated
- public AppRequest setComponentId(String componentId) {
- this.componentId = componentId;
- return this;
- }
-
- public String getComponentId() {
- return componentId;
- }
-
/**
* This is part of the internal API.
* Example value: "5461"
new GetRequest(path("app"))
.setParam("branch", request.getBranch())
.setParam("component", request.getComponent())
- .setParam("componentId", request.getComponentId())
.setParam("pullRequest", request.getPullRequest())
.setMediaType(MediaTypes.JSON)
).content();
new GetRequest(path("show"))
.setParam("branch", request.getBranch())
.setParam("component", request.getComponent())
- .setParam("componentId", request.getComponentId())
.setParam("pullRequest", request.getPullRequest()),
ShowWsResponse.parser());
}
.setParam("asc", request.getAsc())
.setParam("branch", request.getBranch())
.setParam("component", request.getComponent())
- .setParam("componentId", request.getComponentId())
.setParam("p", request.getP())
.setParam("ps", request.getPs())
.setParam("pullRequest", request.getPullRequest())
private String branch;
private String component;
- private String componentId;
private String pullRequest;
/**
return component;
}
- /**
- * Example value: "AU-Tpxb--iU5OvuD2FLy"
- * @deprecated since 6.4
- */
- @Deprecated
- public ShowRequest setComponentId(String componentId) {
- this.componentId = componentId;
- return this;
- }
-
- public String getComponentId() {
- return componentId;
- }
-
/**
* This is part of the internal API.
* Example value: "5461"
private String asc;
private String branch;
private String component;
- private String componentId;
private String p;
private String ps;
private String pullRequest;
return component;
}
- /**
- * Example value: "AU-TpxcA-iU5OvuD2FLz"
- * @deprecated since 6.4
- */
- @Deprecated
- public TreeRequest setComponentId(String componentId) {
- this.componentId = componentId;
- return this;
- }
-
- public String getComponentId() {
- return componentId;
- }
-
/**
* Example value: "42"
*/
.setParam("author", request.getAuthor())
.setParam("branch", request.getBranch())
.setParam("componentKeys", request.getComponentKeys() == null ? null : request.getComponentKeys().stream().collect(Collectors.joining(",")))
- .setParam("componentUuids", request.getComponentUuids() == null ? null : request.getComponentUuids().stream().collect(Collectors.joining(",")))
.setParam("createdAfter", request.getCreatedAfter())
.setParam("createdAt", request.getCreatedAt())
.setParam("createdBefore", request.getCreatedBefore())
private List<String> author;
private String branch;
private List<String> componentKeys;
- private List<String> componentUuids;
private String createdAfter;
private String createdAt;
private String createdBefore;
return componentKeys;
}
- /**
- * Example value: "584a89f2-8037-4f7b-b82c-8b45d2d63fb2"
- * @deprecated since 6.5
- */
- @Deprecated
- public SearchRequest setComponentUuids(List<String> componentUuids) {
- this.componentUuids = componentUuids;
- return this;
- }
-
- public List<String> getComponentUuids() {
- return componentUuids;
- }
-
/**
* Example value: "2017-10-19 or 2017-10-19T13:00:00+0200"
*/
private List<String> additionalFields;
private String branch;
private String component;
- private String componentId;
- private String developerId;
- private String developerKey;
private List<String> metricKeys;
private String pullRequest;
return component;
}
- /**
- * Example value: "AU-Tpxb--iU5OvuD2FLy"
- * @deprecated since 6.6
- */
- @Deprecated
- public ComponentRequest setComponentId(String componentId) {
- this.componentId = componentId;
- return this;
- }
-
- public String getComponentId() {
- return componentId;
- }
-
- /**
- * @deprecated since 6.4
- */
- @Deprecated
- public ComponentRequest setDeveloperId(String developerId) {
- this.developerId = developerId;
- return this;
- }
-
- public String getDeveloperId() {
- return developerId;
- }
-
- /**
- * @deprecated since 6.4
- */
- @Deprecated
- public ComponentRequest setDeveloperKey(String developerKey) {
- this.developerKey = developerKey;
- return this;
- }
-
- public String getDeveloperKey() {
- return developerKey;
- }
-
/**
* This is a mandatory parameter.
* Example value: "ncloc,complexity,violations"
private List<String> additionalFields;
private String asc;
- private String baseComponentId;
private String branch;
private String component;
- private String developerId;
- private String developerKey;
private List<String> metricKeys;
private String metricPeriodSort;
private String metricSort;
return asc;
}
- /**
- * Example value: "AU-TpxcA-iU5OvuD2FLz"
- * @deprecated since 6.6
- */
- @Deprecated
- public ComponentTreeRequest setBaseComponentId(String baseComponentId) {
- this.baseComponentId = baseComponentId;
- return this;
- }
-
- public String getBaseComponentId() {
- return baseComponentId;
- }
-
/**
* This is part of the internal API.
* Example value: "feature/my_branch"
return component;
}
- /**
- * @deprecated since 6.4
- */
- @Deprecated
- public ComponentTreeRequest setDeveloperId(String developerId) {
- this.developerId = developerId;
- return this;
- }
-
- public String getDeveloperId() {
- return developerId;
- }
-
- /**
- * @deprecated since 6.4
- */
- @Deprecated
- public ComponentTreeRequest setDeveloperKey(String developerKey) {
- this.developerKey = developerKey;
- return this;
- }
-
- public String getDeveloperKey() {
- return developerKey;
- }
-
/**
* This is a mandatory parameter.
* Example value: "ncloc,complexity,violations"
.setParam("additionalFields", request.getAdditionalFields() == null ? null : request.getAdditionalFields().stream().collect(Collectors.joining(",")))
.setParam("branch", request.getBranch())
.setParam("component", request.getComponent())
- .setParam("componentId", request.getComponentId())
- .setParam("developerId", request.getDeveloperId())
- .setParam("developerKey", request.getDeveloperKey())
.setParam("metricKeys", request.getMetricKeys() == null ? null : request.getMetricKeys().stream().collect(Collectors.joining(",")))
.setParam("pullRequest", request.getPullRequest()),
ComponentWsResponse.parser());
new GetRequest(path("component_tree"))
.setParam("additionalFields", request.getAdditionalFields() == null ? null : request.getAdditionalFields().stream().collect(Collectors.joining(",")))
.setParam("asc", request.getAsc())
- .setParam("baseComponentId", request.getBaseComponentId())
.setParam("branch", request.getBranch())
.setParam("component", request.getComponent())
- .setParam("developerId", request.getDeveloperId())
- .setParam("developerKey", request.getDeveloperKey())
.setParam("metricKeys", request.getMetricKeys() == null ? null : request.getMetricKeys().stream().collect(Collectors.joining(",")))
.setParam("metricPeriodSort", request.getMetricPeriodSort())
.setParam("metricSort", request.getMetricSort())
private String analyzedBefore;
private String onProvisionedOnly;
private String p;
- private List<String> projectIds;
private List<String> projects;
private String ps;
private String q;
return p;
}
- /**
- * Example value: "AU-Tpxb--iU5OvuD2FLy,AU-TpxcA-iU5OvuD2FLz"
- * @deprecated since 6.6
- */
- @Deprecated
- public SearchRequest setProjectIds(List<String> projectIds) {
- this.projectIds = projectIds;
- return this;
- }
-
- public List<String> getProjectIds() {
- return projectIds;
- }
-
/**
* Example value: "my_project,another_project"
*/
+++ /dev/null
-/*
- * SonarQube
- * Copyright (C) 2009-2023 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonarqube.ws.client.properties;
-
-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/properties/index">Further information about this action online (including a response example)</a>
- * @since 2.6
- */
-@Generated("sonar-ws-generator")
-public class IndexRequest {
-
- private String format;
- private String id;
- private String resource;
-
- /**
- * Possible values:
- * <ul>
- * <li>"json"</li>
- * </ul>
- */
- public IndexRequest setFormat(String format) {
- this.format = format;
- return this;
- }
-
- public String getFormat() {
- return format;
- }
-
- /**
- * Example value: "sonar.test.inclusions"
- */
- public IndexRequest setId(String id) {
- this.id = id;
- return this;
- }
-
- public String getId() {
- return id;
- }
-
- /**
- * Example value: "my_project"
- */
- public IndexRequest setResource(String resource) {
- this.resource = resource;
- return this;
- }
-
- public String getResource() {
- return resource;
- }
-}
+++ /dev/null
-/*
- * SonarQube
- * Copyright (C) 2009-2023 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonarqube.ws.client.properties;
-
-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/properties">Further information about this web service online</a>
- */
-@Generated("sonar-ws-generator")
-public class PropertiesService extends BaseService {
-
- public PropertiesService(WsConnector wsConnector) {
- super(wsConnector, "api/properties");
- }
-
- /**
- *
- * This is part of the internal API.
- * This is a GET request.
- * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/properties/index">Further information about this action online (including a response example)</a>
- * @since 2.6
- * @deprecated since 6.3
- */
- @Deprecated
- public String index(IndexRequest request) {
- return call(
- new GetRequest(path("index"))
- .setParam("format", request.getFormat())
- .setParam("id", request.getId())
- .setParam("resource", request.getResource())
- .setMediaType(MediaTypes.JSON)
- ).content();
- }
-}
+++ /dev/null
-/*
- * SonarQube
- * Copyright (C) 2009-2023 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public 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.properties;
-
-import javax.annotation.ParametersAreNonnullByDefault;
-import javax.annotation.Generated;
-
@Generated("sonar-ws-generator")
public class DeselectRequest {
- private String projectId;
private String projectKey;
- /**
- * Example value: "AU-Tpxb--iU5OvuD2FLy"
- * @deprecated since 6.1
- */
- @Deprecated
- public DeselectRequest setProjectId(String projectId) {
- this.projectId = projectId;
- return this;
- }
-
- public String getProjectId() {
- return projectId;
- }
-
/**
* Example value: "my_project"
*/
public void deselect(DeselectRequest request) {
call(
new PostRequest(path("deselect"))
- .setParam("projectId", request.getProjectId())
.setParam("projectKey", request.getProjectKey())
.setMediaType(MediaTypes.JSON)).content();
}
+++ /dev/null
-/*
- * SonarQube
- * Copyright (C) 2009-2023 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonarqube.ws.client.timemachine;
-
-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/timemachine">Further information about this web service online</a>
- */
-@Generated("sonar-ws-generator")
-public class TimemachineService extends BaseService {
-
- public TimemachineService(WsConnector wsConnector) {
- super(wsConnector, "api/timemachine");
- }
-
- /**
- *
- * This is part of the internal API.
- * This is a GET request.
- * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/timemachine/index">Further information about this action online (including a response example)</a>
- * @since 2.10
- * @deprecated since 6.3
- */
- @Deprecated
- public String index() {
- return call(
- new GetRequest(path("index"))
- .setMediaType(MediaTypes.JSON)
- ).content();
- }
-}
+++ /dev/null
-/*
- * SonarQube
- * Copyright (C) 2009-2023 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public 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.timemachine;
-
-import javax.annotation.ParametersAreNonnullByDefault;
-import javax.annotation.Generated;
-
+++ /dev/null
-/*
- * SonarQube
- * Copyright (C) 2009-2023 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonarqube.ws.client.updatecenter;
-
-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/updatecenter/installed_plugins">Further information about this action online (including a response example)</a>
- * @since 2.10
- */
-@Generated("sonar-ws-generator")
-public class InstalledPluginsRequest {
-
- private String format;
-
- /**
- * Possible values:
- * <ul>
- * <li>"json"</li>
- * </ul>
- */
- public InstalledPluginsRequest setFormat(String format) {
- this.format = format;
- return this;
- }
-
- public String getFormat() {
- return format;
- }
-}
super(wsConnector, "api/updatecenter");
}
- /**
- *
- * This is part of the internal API.
- * This is a GET request.
- * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/updatecenter/installed_plugins">Further information about this action online (including a response example)</a>
- * @since 2.10
- * @deprecated since 6.3
- */
- @Deprecated
- public String installedPlugins(InstalledPluginsRequest request) {
- return call(
- new GetRequest(path("installed_plugins"))
- .setParam("format", request.getFormat())
- .setMediaType(MediaTypes.JSON)
- ).content();
- }
-
/**
*
* This is part of the internal API.
return scmAccount;
}
- /**
- * Example value: "myscmaccount1,myscmaccount2"
- * @deprecated since 6.1
- */
- @Deprecated
- public CreateRequest setScmAccounts(List<String> scmAccounts) {
- this.scmAccounts = scmAccounts;
- return this;
- }
-
public List<String> getScmAccounts() {
return scmAccounts;
}
return scmAccount;
}
- /**
- * Example value: "myscmaccount1,myscmaccount2"
- * @deprecated since 6.1
- */
- @Deprecated
- public UpdateRequest setScmAccounts(String scmAccounts) {
- this.scmAccounts = scmAccounts;
- return this;
- }
-
public String getScmAccounts() {
return scmAccounts;
}