org.graylog2.restroutes.generated.BundleResource Maven / Gradle / Ivy
The newest version!
package org.graylog2.restroutes.generated;
import org.graylog2.restroutes.PathMethod;
public class BundleResource {
public PathMethod createBundle() {
return new PathMethod("POST", "/system/bundles");
}
public PathMethod listBundles() {
return new PathMethod("GET", "/system/bundles");
}
public PathMethod showBundle(String bundleId) {
return new PathMethod("GET", "/system/bundles/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(bundleId)+"");
}
public PathMethod updateBundle(String bundleId) {
return new PathMethod("PUT", "/system/bundles/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(bundleId)+"");
}
public PathMethod deleteBundle(String bundleId) {
return new PathMethod("DELETE", "/system/bundles/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(bundleId)+"");
}
public PathMethod applyBundle(String bundleId) {
return new PathMethod("POST", "/system/bundles/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(bundleId)+"/apply");
}
public PathMethod exportBundle() {
return new PathMethod("POST", "/system/bundles/export");
}
}