]> source.dussan.org Git - sonarqube.git/commitdiff
Remove deprecated stuff in applications ITs
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 6 Mar 2019 16:44:20 +0000 (17:44 +0100)
committerSonarTech <sonartech@sonarsource.com>
Wed, 13 Mar 2019 19:21:24 +0000 (20:21 +0100)
sonar-ws/src/main/java/org/sonarqube/ws/client/applications/CreateBranchRequest.java
sonar-ws/src/main/java/org/sonarqube/ws/client/applications/UpdateBranchRequest.java

index 3dbb7d7e9d4a94d2a456410678c2c4b632438c58..5eaa63f7edd3eb615772ce9c8137ba5968558574 100644 (file)
@@ -19,6 +19,7 @@
  */
 package org.sonarqube.ws.client.applications;
 
+import java.util.List;
 import javax.annotation.Generated;
 
 /**
@@ -32,8 +33,8 @@ public class CreateBranchRequest {
 
   private String application;
   private String branch;
-  private String project;
-  private String projectBranch;
+  private List<String> projects;
+  private List<String> projectBranches;
 
   /**
    * This is a mandatory parameter.
@@ -63,25 +64,25 @@ public class CreateBranchRequest {
    * This is a mandatory parameter.
    * Example value: "project=firstProjectKey&project=secondProjectKey&project=thirdProjectKey"
    */
-  public CreateBranchRequest setProject(String project) {
-    this.project = project;
+  public CreateBranchRequest setProject(List<String> projects) {
+    this.projects = projects;
     return this;
   }
 
-  public String getProject() {
-    return project;
+  public List<String> getProject() {
+    return projects;
   }
 
   /**
    * This is a mandatory parameter.
    * Example value: "projectBranch=&projectBranch=branch-2.0&projectBranch=branch-2.1"
    */
-  public CreateBranchRequest setProjectBranch(String projectBranch) {
-    this.projectBranch = projectBranch;
+  public CreateBranchRequest setProjectBranch(List<String> projectBranches) {
+    this.projectBranches = projectBranches;
     return this;
   }
 
-  public String getProjectBranch() {
-    return projectBranch;
+  public List<String> getProjectBranch() {
+    return projectBranches;
   }
 }
index fbdb9d6047a5e89e94dabeb572062ebcfd6ee026..b6f80a1f8fa224fd7a2852d10c584509c28de0c0 100644 (file)
@@ -19,6 +19,7 @@
  */
 package org.sonarqube.ws.client.applications;
 
+import java.util.List;
 import javax.annotation.Generated;
 
 /**
@@ -33,8 +34,8 @@ public class UpdateBranchRequest {
   private String application;
   private String branch;
   private String name;
-  private String project;
-  private String projectBranch;
+  private List<String> projects;
+  private List<String> projectBranches;
 
   /**
    * This is a mandatory parameter.
@@ -78,25 +79,25 @@ public class UpdateBranchRequest {
    * This is a mandatory parameter.
    * Example value: "project=firstProjectKey&project=secondProjectKey&project=thirdProjectKey"
    */
-  public UpdateBranchRequest setProject(String project) {
-    this.project = project;
+  public UpdateBranchRequest setProject(List<String> projects) {
+    this.projects = projects;
     return this;
   }
 
-  public String getProject() {
-    return project;
+  public List<String> getProject() {
+    return projects;
   }
 
   /**
    * This is a mandatory parameter.
    * Example value: "projectBranch=&projectBranch=branch-2.0&projectBranch=branch-2.1"
    */
-  public UpdateBranchRequest setProjectBranch(String projectBranch) {
-    this.projectBranch = projectBranch;
+  public UpdateBranchRequest setProjectBranch(List<String> projectBranches) {
+    this.projectBranches = projectBranches;
     return this;
   }
 
-  public String getProjectBranch() {
-    return projectBranch;
+  public List<String> getProjectBranch() {
+    return projectBranches;
   }
 }