Browse Source

SONAR-17705 Remove deprecated WS componentId from ce/activity and ce/activity_status

tags/10.0.0.68432
Léo Geoffroy 1 year ago
parent
commit
f878f29cfe

+ 0
- 13
sonar-ws/src/main/java/org/sonarqube/ws/client/ce/ActivityRequest.java View File

public class ActivityRequest { public class ActivityRequest {


private String component; private String component;
private String componentId;
private String maxExecutedAt; private String maxExecutedAt;
private String minSubmittedAt; private String minSubmittedAt;
private String onlyCurrents; private String onlyCurrents;
private List<String> status; private List<String> status;
private String type; private String type;


/**
* Example value: "AU-TpxcA-iU5OvuD2FL0"
*/
public ActivityRequest setComponentId(String componentId) {
this.componentId = componentId;
return this;
}

public String getComponentId() {
return componentId;
}

/** /**
* Example value: "sample:src/main/xoo/sample/Sample2.xoo" * Example value: "sample:src/main/xoo/sample/Sample2.xoo"
*/ */

+ 5
- 18
sonar-ws/src/main/java/org/sonarqube/ws/client/ce/ActivityStatusRequest.java View File

@Generated("sonar-ws-generator") @Generated("sonar-ws-generator")
public class ActivityStatusRequest { public class ActivityStatusRequest {


private String componentId;
private String componentKey;

/**
* Example value: "AU-TpxcA-iU5OvuD2FL0"
*/
public ActivityStatusRequest setComponentId(String componentId) {
this.componentId = componentId;
return this;
}

public String getComponentId() {
return componentId;
}
private String component;


/** /**
* Example value: "my_project" * Example value: "my_project"
*/ */
public ActivityStatusRequest setComponentKey(String componentKey) {
this.componentKey = componentKey;
public ActivityStatusRequest setComponent(String component) {
this.component = component;
return this; return this;
} }


public String getComponentKey() {
return componentKey;
public String getComponent() {
return component;
} }
} }

+ 1
- 3
sonar-ws/src/main/java/org/sonarqube/ws/client/ce/CeService.java View File

public ActivityResponse activity(ActivityRequest request) { public ActivityResponse activity(ActivityRequest request) {
return call( return call(
new GetRequest(path("activity")) new GetRequest(path("activity"))
.setParam("componentId", request.getComponentId())
.setParam("component", request.getComponent()) .setParam("component", request.getComponent())
.setParam("maxExecutedAt", request.getMaxExecutedAt()) .setParam("maxExecutedAt", request.getMaxExecutedAt())
.setParam("minSubmittedAt", request.getMinSubmittedAt()) .setParam("minSubmittedAt", request.getMinSubmittedAt())
public ActivityStatusWsResponse activityStatus(ActivityStatusRequest request) { public ActivityStatusWsResponse activityStatus(ActivityStatusRequest request) {
return call( return call(
new GetRequest(path("activity_status")) new GetRequest(path("activity_status"))
.setParam("componentId", request.getComponentId())
.setParam("componentKey", request.getComponentKey()),
.setParam("component", request.getComponent()),
ActivityStatusWsResponse.parser()); ActivityStatusWsResponse.parser());
} }



Loading…
Cancel
Save