All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy