2020-09-15 23:04:29 +00:00
|
|
|
package tk.antoine_roux.wiki.model.request;
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
2020-10-03 15:03:48 +00:00
|
|
|
import tk.antoine_roux.wiki.model.request.secondary.RunnerInfo;
|
2020-09-15 23:04:29 +00:00
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Model use to add runner instance
|
|
|
|
*/
|
|
|
|
public class AddRunner {
|
|
|
|
private static final String TAG_SEPARATOR = ",";
|
|
|
|
|
|
|
|
public String description;
|
|
|
|
public List<String> tags;
|
|
|
|
public UUID token;
|
2020-09-16 22:37:33 +00:00
|
|
|
@JsonProperty("run_untagged")
|
|
|
|
public Boolean runUntagged;
|
|
|
|
public Boolean locked;
|
|
|
|
public Boolean active;
|
|
|
|
public RunnerInfo info;
|
2020-09-15 23:04:29 +00:00
|
|
|
|
|
|
|
@JsonProperty("tag_list")
|
|
|
|
public void setTags(String tags) {
|
|
|
|
this.tags = Arrays.asList(tags.split(TAG_SEPARATOR).clone());
|
|
|
|
}
|
|
|
|
}
|