package org.sonarqube.ws.client.usertokens;
import javax.annotation.Generated;
+import javax.annotation.Nullable;
/**
* This is part of the internal API.
private String login;
private String name;
+ private String type;
+ private String projectKey;
/**
* Example value: "g.hopper"
public String getName() {
return name;
}
+
+ public String getType() {
+ return type;
+ }
+
+ public GenerateRequest setType(String type) {
+ this.type = type;
+ return this;
+ }
+
+ public String getProjectKey() {
+ return projectKey;
+ }
+
+ public GenerateRequest setProjectKey(@Nullable String projectKey) {
+ this.projectKey = projectKey;
+ return this;
+ }
}
return call(
new PostRequest(path("generate"))
.setParam("login", request.getLogin())
- .setParam("name", request.getName()),
+ .setParam("name", request.getName())
+ .setParam("type", request.getType())
+ .setParam("projectKey", request.getProjectKey()),
GenerateWsResponse.parser());
}