Browse Source

SONAR-15702 - Backend Integration Tests

tags/9.3.0.51899
Belen Pruvost 2 years ago
parent
commit
63cfc46626

+ 56
- 0
sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/ApplicationStatusRequest.java View File

/*
* SonarQube
* Copyright (C) 2009-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; 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;
}
}

+ 20
- 6
sonar-ws/src/main/java/org/sonarqube/ws/client/qualitygates/QualitygatesService.java View File

ProjectStatusResponse.parser()); 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 part of the internal API.
* This is a POST request. * This is a POST request.
} }


/** /**
*
* This is part of the internal API. * This is part of the internal API.
* This is a POST request. * 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> * @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 * @since 9.2
*/ */
} }


/** /**
*
* This is part of the internal API. * This is part of the internal API.
* This is a GET request. * 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> * @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 * @since 9.2
*/ */
} }


/** /**
*
* This is part of the internal API. * This is part of the internal API.
* This is a POST request. * 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> * @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 * @since 9.2
*/ */
} }


/** /**
*
* This is part of the internal API. * This is part of the internal API.
* This is a POST request. * 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> * @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 * @since 9.2
*/ */
} }


/** /**
*
* This is part of the internal API. * This is part of the internal API.
* This is a GET request. * 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> * @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 * @since 9.2
*/ */
} }


/** /**
*
* This is part of the internal API. * This is part of the internal API.
* This is a POST request. * 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> * @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 * @since 9.2
*/ */

Loading…
Cancel
Save