org.graylog2.restroutes.generated.radio.InputsResource Maven / Gradle / Ivy
The newest version!
package org.graylog2.restroutes.generated.radio;
import org.graylog2.restroutes.PathMethod;
public class InputsResource {
public PathMethod terminate(String inputId) {
return new PathMethod("DELETE", "/system/inputs/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(inputId)+"");
}
public PathMethod launchExisting(String inputId) {
return new PathMethod("POST", "/system/inputs/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(inputId)+"/launch");
}
public PathMethod restart(String inputId) {
return new PathMethod("POST", "/system/inputs/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(inputId)+"/restart");
}
public PathMethod update(String inputId) {
return new PathMethod("PUT", "/system/inputs/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(inputId)+"");
}
public PathMethod create() {
return new PathMethod("POST", "/system/inputs");
}
public PathMethod stop(String inputId) {
return new PathMethod("POST", "/system/inputs/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(inputId)+"/stop");
}
public PathMethod list() {
return new PathMethod("GET", "/system/inputs");
}
public PathMethod single(String inputId) {
return new PathMethod("GET", "/system/inputs/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(inputId)+"");
}
}