2020-09-21 22:08:30 +00:00
|
|
|
package tk.antoine_roux.wiki.model.internal;
|
2020-09-15 23:04:29 +00:00
|
|
|
|
2020-09-16 17:49:19 +00:00
|
|
|
import tk.antoine_roux.wiki.model.response.RegisterRunnerResponse;
|
2020-09-15 23:04:29 +00:00
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* in memory representation of gitlab runner
|
|
|
|
*/
|
|
|
|
public class Runner {
|
|
|
|
public String description;
|
|
|
|
public List<String> tags;
|
|
|
|
public UUID registrationToken;
|
|
|
|
public UUID authenticationToken;
|
|
|
|
public Integer id;
|
|
|
|
|
2020-09-16 17:49:19 +00:00
|
|
|
public RegisterRunnerResponse toRegisterResponse() {
|
|
|
|
return new RegisterRunnerResponse(String.valueOf(this.id), this.authenticationToken.toString());
|
2020-09-15 23:04:29 +00:00
|
|
|
}
|
|
|
|
}
|