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

org.graylog2.restroutes.generated.StreamRuleResource Maven / Gradle / Ivy

The newest version!

package org.graylog2.restroutes.generated;

import org.graylog2.restroutes.PathMethod;

public class StreamRuleResource {


    public PathMethod updateDeprecated(String streamid, String streamRuleId) {
        return new PathMethod("POST", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamid)+"/rules/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamRuleId)+"");
    }

    public PathMethod get(String streamid) {
        return new PathMethod("GET", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamid)+"/rules");
    }

    public PathMethod get(String streamid, String streamRuleId) {
        return new PathMethod("GET", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamid)+"/rules/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamRuleId)+"");
    }

    public PathMethod update(String streamid, String streamRuleId) {
        return new PathMethod("PUT", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamid)+"/rules/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamRuleId)+"");
    }

    public PathMethod delete(String streamid, String streamRuleId) {
        return new PathMethod("DELETE", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamid)+"/rules/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamRuleId)+"");
    }

    public PathMethod create(String streamid) {
        return new PathMethod("POST", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamid)+"/rules");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy