com.jelastic.api.environment.Security Maven / Gradle / Ivy
The newest version!
package com.jelastic.api.environment;
import java.util.Map;
import java.util.HashMap;
import java.util.List;
import com.jelastic.api.AbstractService;
import com.jelastic.api.Callback;
import com.jelastic.api.client.annotation.JelasticModuleName;
import com.jelastic.api.core.utils.Transport;
import com.jelastic.api.Response;
import com.jelastic.api.development.response.interfaces.ArrayResponse;
import com.jelastic.api.environment.response.ObjectResponse;
/**
* @name Jelastic API Client
* @version 8.11.2
* @copyright Jelastic, Inc.
**/
@JelasticModuleName(name="jelastic")
public class Security extends AbstractService {
public static String SERVICE_PATH = "environment/security/";
private String serviceUrl = SERVER_URL + SERVICE_PATH;
private String appid = null;
private String session = null;
private String client_source = null;
public Security(){}
public Security(Map _params){
this((String)_params.get("appid"), (String)_params.get("session"), (String)_params.get("serviceUrl"));
String serverUrl = (String) _params.get("serverUrl");
if (serverUrl != null) setServerUrl(serverUrl);
}
public Security(String appid, String session, String serviceUrl){
if (appid != null) this.appid = appid;
if (session != null) this.session = session;
if (serviceUrl != null) this.serviceUrl = serviceUrl;
}
public Security(String appid, String session){
this(appid, session, null);
}
public Security(String appid){
this(appid, null, null);
}
public String getAppid(){
return appid;
}
public Security setAppid(String appid){
this.appid = appid;
return this;
}
public String getSession(){
return session;
}
public Security setSession(String session){
this.session = session;
return this;
}
public String getServiceUrl(){
return serviceUrl;
}
public Security setServiceUrl(String serviceUrl){
this.serviceUrl = serviceUrl;
return this;
}
public String getServerUrl(){
return serviceUrl;
}
public Security setServerUrl(String serverUrl){
this.serviceUrl = serverUrl + SERVICE_PATH;
return this;
}
public Security setClientSource(String client_source){
this.client_source = client_source;
return this;
}
public String getClientSource(){
return client_source ;
}
public ArrayResponse getRules(String envName, String session, String nodeGroup, String direction){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("nodeGroup", nodeGroup);
_params.put("direction", direction);
_params.put("client_source", client_source);
return (ArrayResponse) _call(appid, serviceUrl + "rest/getrules", _params, ArrayResponse.class);
}
public ArrayResponse getRules(String envName, String session, String nodeGroup, String direction, Map headers){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("nodeGroup", nodeGroup);
_params.put("direction", direction);
_params.put("client_source", client_source);
return (ArrayResponse) _call(appid, serviceUrl + "rest/getrules", _params, headers, ArrayResponse.class);
}
public Security getRules(final String envName, final String session, final String nodeGroup, final String direction, final Callback callback){
new Thread(() -> {
ArrayResponse response = getRules(envName, session, nodeGroup, direction);
callback.fire(response);
}, "callback").start();
return this;
}
public Security getRules(final String envName, final String session, final String nodeGroup, final String direction, final Map headers, final Callback callback){
new Thread(() -> {
ArrayResponse response = getRules(envName, session, nodeGroup, direction);
callback.fire(response);
}, "callback").start();
return this;
}
public ArrayResponse getRules(String envName, String session, String nodeGroup){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("nodeGroup", nodeGroup);
_params.put("client_source", client_source);
return (ArrayResponse) _call(appid, serviceUrl + "rest/getrules", _params, ArrayResponse.class);
}
public ArrayResponse getRules(String envName, String session, String nodeGroup, Map headers){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("nodeGroup", nodeGroup);
_params.put("client_source", client_source);
return (ArrayResponse) _call(appid, serviceUrl + "rest/getrules", _params, headers, ArrayResponse.class);
}
public Security getRules(final String envName, final String session, final String nodeGroup, final Callback callback){
new Thread(() -> {
ArrayResponse response = getRules(envName, session, nodeGroup);
callback.fire(response);
}, "callback").start();
return this;
}
public Security getRules(final String envName, final String session, final String nodeGroup, final Map headers, final Callback callback){
new Thread(() -> {
ArrayResponse response = getRules(envName, session, nodeGroup);
callback.fire(response);
}, "callback").start();
return this;
}
public ArrayResponse getRules(String nodeGroup, String direction){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("nodeGroup", nodeGroup);
_params.put("direction", direction);
_params.put("client_source", client_source);
return (ArrayResponse) _call(appid, serviceUrl + "rest/getrules", _params, ArrayResponse.class);
}
public ArrayResponse getRules(String nodeGroup, String direction, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("nodeGroup", nodeGroup);
_params.put("direction", direction);
_params.put("client_source", client_source);
return (ArrayResponse) _call(appid, serviceUrl + "rest/getrules", _params, headers, ArrayResponse.class);
}
public Security getRules(final String nodeGroup, final String direction, final Callback callback){
new Thread(() -> {
ArrayResponse response = getRules(nodeGroup, direction);
callback.fire(response);
}, "callback").start();
return this;
}
public Security getRules(final String nodeGroup, final String direction, final Map headers, final Callback callback){
new Thread(() -> {
ArrayResponse response = getRules(nodeGroup, direction);
callback.fire(response);
}, "callback").start();
return this;
}
public ArrayResponse getRules(String nodeGroup){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("nodeGroup", nodeGroup);
_params.put("client_source", client_source);
return (ArrayResponse) _call(appid, serviceUrl + "rest/getrules", _params, ArrayResponse.class);
}
public ArrayResponse getRules(String nodeGroup, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("nodeGroup", nodeGroup);
_params.put("client_source", client_source);
return (ArrayResponse) _call(appid, serviceUrl + "rest/getrules", _params, headers, ArrayResponse.class);
}
public Security getRules(final String nodeGroup, final Callback callback){
new Thread(() -> {
ArrayResponse response = getRules(nodeGroup);
callback.fire(response);
}, "callback").start();
return this;
}
public Security getRules(final String nodeGroup, final Map headers, final Callback callback){
new Thread(() -> {
ArrayResponse response = getRules(nodeGroup);
callback.fire(response);
}, "callback").start();
return this;
}
public ArrayResponse getRules(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ArrayResponse) _call(appid, serviceUrl + "rest/getrules", _params, ArrayResponse.class);
}
public ArrayResponse getRules(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ArrayResponse) _call(appid, serviceUrl + "rest/getrules", _params, headers, ArrayResponse.class);
}
public ArrayResponse addRules(String envName, String session, String rules, String nodeGroup, String relatedEnvName){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("rules", rules);
_params.put("nodeGroup", nodeGroup);
_params.put("relatedEnvName", relatedEnvName);
_params.put("client_source", client_source);
return (ArrayResponse) _call(appid, serviceUrl + "rest/addrules", _params, ArrayResponse.class);
}
public ArrayResponse addRules(String envName, String session, String rules, String nodeGroup, String relatedEnvName, Map headers){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("rules", rules);
_params.put("nodeGroup", nodeGroup);
_params.put("relatedEnvName", relatedEnvName);
_params.put("client_source", client_source);
return (ArrayResponse) _call(appid, serviceUrl + "rest/addrules", _params, headers, ArrayResponse.class);
}
public Security addRules(final String envName, final String session, final String rules, final String nodeGroup, final String relatedEnvName, final Callback callback){
new Thread(() -> {
ArrayResponse response = addRules(envName, session, rules, nodeGroup, relatedEnvName);
callback.fire(response);
}, "callback").start();
return this;
}
public Security addRules(final String envName, final String session, final String rules, final String nodeGroup, final String relatedEnvName, final Map headers, final Callback callback){
new Thread(() -> {
ArrayResponse response = addRules(envName, session, rules, nodeGroup, relatedEnvName);
callback.fire(response);
}, "callback").start();
return this;
}
public ArrayResponse addRules(String session, String rules, String nodeGroup, String relatedEnvName){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("rules", rules);
_params.put("nodeGroup", nodeGroup);
_params.put("relatedEnvName", relatedEnvName);
_params.put("client_source", client_source);
return (ArrayResponse) _call(appid, serviceUrl + "rest/addrules", _params, ArrayResponse.class);
}
public ArrayResponse addRules(String session, String rules, String nodeGroup, String relatedEnvName, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("rules", rules);
_params.put("nodeGroup", nodeGroup);
_params.put("relatedEnvName", relatedEnvName);
_params.put("client_source", client_source);
return (ArrayResponse) _call(appid, serviceUrl + "rest/addrules", _params, headers, ArrayResponse.class);
}
public Security addRules(final String session, final String rules, final String nodeGroup, final String relatedEnvName, final Callback callback){
new Thread(() -> {
ArrayResponse response = addRules(session, rules, nodeGroup, relatedEnvName);
callback.fire(response);
}, "callback").start();
return this;
}
public Security addRules(final String session, final String rules, final String nodeGroup, final String relatedEnvName, final Map headers, final Callback callback){
new Thread(() -> {
ArrayResponse response = addRules(session, rules, nodeGroup, relatedEnvName);
callback.fire(response);
}, "callback").start();
return this;
}
public ArrayResponse addRules(String rules, String nodeGroup, String relatedEnvName){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("rules", rules);
_params.put("nodeGroup", nodeGroup);
_params.put("relatedEnvName", relatedEnvName);
_params.put("client_source", client_source);
return (ArrayResponse) _call(appid, serviceUrl + "rest/addrules", _params, ArrayResponse.class);
}
public ArrayResponse addRules(String rules, String nodeGroup, String relatedEnvName, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("rules", rules);
_params.put("nodeGroup", nodeGroup);
_params.put("relatedEnvName", relatedEnvName);
_params.put("client_source", client_source);
return (ArrayResponse) _call(appid, serviceUrl + "rest/addrules", _params, headers, ArrayResponse.class);
}
public Security addRules(final String rules, final String nodeGroup, final String relatedEnvName, final Callback callback){
new Thread(() -> {
ArrayResponse response = addRules(rules, nodeGroup, relatedEnvName);
callback.fire(response);
}, "callback").start();
return this;
}
public Security addRules(final String rules, final String nodeGroup, final String relatedEnvName, final Map headers, final Callback callback){
new Thread(() -> {
ArrayResponse response = addRules(rules, nodeGroup, relatedEnvName);
callback.fire(response);
}, "callback").start();
return this;
}
public ArrayResponse addRules(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ArrayResponse) _call(appid, serviceUrl + "rest/addrules", _params, ArrayResponse.class);
}
public ArrayResponse addRules(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ArrayResponse) _call(appid, serviceUrl + "rest/addrules", _params, headers, ArrayResponse.class);
}
public ObjectResponse addRule(String envName, String session, String rule, String nodeGroup, String relatedEnvName){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("rule", rule);
_params.put("nodeGroup", nodeGroup);
_params.put("relatedEnvName", relatedEnvName);
_params.put("client_source", client_source);
return (ObjectResponse) _call(appid, serviceUrl + "rest/addrule", _params, ObjectResponse.class);
}
public ObjectResponse addRule(String envName, String session, String rule, String nodeGroup, String relatedEnvName, Map headers){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("rule", rule);
_params.put("nodeGroup", nodeGroup);
_params.put("relatedEnvName", relatedEnvName);
_params.put("client_source", client_source);
return (ObjectResponse) _call(appid, serviceUrl + "rest/addrule", _params, headers, ObjectResponse.class);
}
public Security addRule(final String envName, final String session, final String rule, final String nodeGroup, final String relatedEnvName, final Callback callback){
new Thread(() -> {
ObjectResponse response = addRule(envName, session, rule, nodeGroup, relatedEnvName);
callback.fire(response);
}, "callback").start();
return this;
}
public Security addRule(final String envName, final String session, final String rule, final String nodeGroup, final String relatedEnvName, final Map headers, final Callback callback){
new Thread(() -> {
ObjectResponse response = addRule(envName, session, rule, nodeGroup, relatedEnvName);
callback.fire(response);
}, "callback").start();
return this;
}
public ObjectResponse addRule(String session, String rule, String nodeGroup, String relatedEnvName){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("rule", rule);
_params.put("nodeGroup", nodeGroup);
_params.put("relatedEnvName", relatedEnvName);
_params.put("client_source", client_source);
return (ObjectResponse) _call(appid, serviceUrl + "rest/addrule", _params, ObjectResponse.class);
}
public ObjectResponse addRule(String session, String rule, String nodeGroup, String relatedEnvName, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("rule", rule);
_params.put("nodeGroup", nodeGroup);
_params.put("relatedEnvName", relatedEnvName);
_params.put("client_source", client_source);
return (ObjectResponse) _call(appid, serviceUrl + "rest/addrule", _params, headers, ObjectResponse.class);
}
public Security addRule(final String session, final String rule, final String nodeGroup, final String relatedEnvName, final Callback callback){
new Thread(() -> {
ObjectResponse response = addRule(session, rule, nodeGroup, relatedEnvName);
callback.fire(response);
}, "callback").start();
return this;
}
public Security addRule(final String session, final String rule, final String nodeGroup, final String relatedEnvName, final Map headers, final Callback callback){
new Thread(() -> {
ObjectResponse response = addRule(session, rule, nodeGroup, relatedEnvName);
callback.fire(response);
}, "callback").start();
return this;
}
public ObjectResponse addRule(String rule, String nodeGroup, String relatedEnvName){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("rule", rule);
_params.put("nodeGroup", nodeGroup);
_params.put("relatedEnvName", relatedEnvName);
_params.put("client_source", client_source);
return (ObjectResponse) _call(appid, serviceUrl + "rest/addrule", _params, ObjectResponse.class);
}
public ObjectResponse addRule(String rule, String nodeGroup, String relatedEnvName, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("rule", rule);
_params.put("nodeGroup", nodeGroup);
_params.put("relatedEnvName", relatedEnvName);
_params.put("client_source", client_source);
return (ObjectResponse) _call(appid, serviceUrl + "rest/addrule", _params, headers, ObjectResponse.class);
}
public Security addRule(final String rule, final String nodeGroup, final String relatedEnvName, final Callback callback){
new Thread(() -> {
ObjectResponse response = addRule(rule, nodeGroup, relatedEnvName);
callback.fire(response);
}, "callback").start();
return this;
}
public Security addRule(final String rule, final String nodeGroup, final String relatedEnvName, final Map headers, final Callback callback){
new Thread(() -> {
ObjectResponse response = addRule(rule, nodeGroup, relatedEnvName);
callback.fire(response);
}, "callback").start();
return this;
}
public ObjectResponse addRule(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ObjectResponse) _call(appid, serviceUrl + "rest/addrule", _params, ObjectResponse.class);
}
public ObjectResponse addRule(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ObjectResponse) _call(appid, serviceUrl + "rest/addrule", _params, headers, ObjectResponse.class);
}
public ObjectResponse editRule(String envName, String session, String rule, String relatedEnvName){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("rule", rule);
_params.put("relatedEnvName", relatedEnvName);
_params.put("client_source", client_source);
return (ObjectResponse) _call(appid, serviceUrl + "rest/editrule", _params, ObjectResponse.class);
}
public ObjectResponse editRule(String envName, String session, String rule, String relatedEnvName, Map headers){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("rule", rule);
_params.put("relatedEnvName", relatedEnvName);
_params.put("client_source", client_source);
return (ObjectResponse) _call(appid, serviceUrl + "rest/editrule", _params, headers, ObjectResponse.class);
}
public Security editRule(final String envName, final String session, final String rule, final String relatedEnvName, final Callback callback){
new Thread(() -> {
ObjectResponse response = editRule(envName, session, rule, relatedEnvName);
callback.fire(response);
}, "callback").start();
return this;
}
public Security editRule(final String envName, final String session, final String rule, final String relatedEnvName, final Map headers, final Callback callback){
new Thread(() -> {
ObjectResponse response = editRule(envName, session, rule, relatedEnvName);
callback.fire(response);
}, "callback").start();
return this;
}
public ObjectResponse editRule(String session, String rule, String relatedEnvName){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("rule", rule);
_params.put("relatedEnvName", relatedEnvName);
_params.put("client_source", client_source);
return (ObjectResponse) _call(appid, serviceUrl + "rest/editrule", _params, ObjectResponse.class);
}
public ObjectResponse editRule(String session, String rule, String relatedEnvName, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("rule", rule);
_params.put("relatedEnvName", relatedEnvName);
_params.put("client_source", client_source);
return (ObjectResponse) _call(appid, serviceUrl + "rest/editrule", _params, headers, ObjectResponse.class);
}
public Security editRule(final String session, final String rule, final String relatedEnvName, final Callback callback){
new Thread(() -> {
ObjectResponse response = editRule(session, rule, relatedEnvName);
callback.fire(response);
}, "callback").start();
return this;
}
public Security editRule(final String session, final String rule, final String relatedEnvName, final Map headers, final Callback callback){
new Thread(() -> {
ObjectResponse response = editRule(session, rule, relatedEnvName);
callback.fire(response);
}, "callback").start();
return this;
}
public ObjectResponse editRule(String rule, String relatedEnvName){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("rule", rule);
_params.put("relatedEnvName", relatedEnvName);
_params.put("client_source", client_source);
return (ObjectResponse) _call(appid, serviceUrl + "rest/editrule", _params, ObjectResponse.class);
}
public ObjectResponse editRule(String rule, String relatedEnvName, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("rule", rule);
_params.put("relatedEnvName", relatedEnvName);
_params.put("client_source", client_source);
return (ObjectResponse) _call(appid, serviceUrl + "rest/editrule", _params, headers, ObjectResponse.class);
}
public Security editRule(final String rule, final String relatedEnvName, final Callback callback){
new Thread(() -> {
ObjectResponse response = editRule(rule, relatedEnvName);
callback.fire(response);
}, "callback").start();
return this;
}
public Security editRule(final String rule, final String relatedEnvName, final Map headers, final Callback callback){
new Thread(() -> {
ObjectResponse response = editRule(rule, relatedEnvName);
callback.fire(response);
}, "callback").start();
return this;
}
public ObjectResponse editRule(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ObjectResponse) _call(appid, serviceUrl + "rest/editrule", _params, ObjectResponse.class);
}
public ObjectResponse editRule(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ObjectResponse) _call(appid, serviceUrl + "rest/editrule", _params, headers, ObjectResponse.class);
}
public Response removeRules(String envName, String session, List ids){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("ids", ids + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/removerules", _params, Response.class);
}
public Response removeRules(String envName, String session, List ids, Map headers){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("ids", ids + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/removerules", _params, headers, Response.class);
}
public Security removeRules(final String envName, final String session, final List ids, final Callback callback){
new Thread(() -> {
Response response = removeRules(envName, session, ids);
callback.fire(response);
}, "callback").start();
return this;
}
public Security removeRules(final String envName, final String session, final List ids, final Map headers, final Callback callback){
new Thread(() -> {
Response response = removeRules(envName, session, ids);
callback.fire(response);
}, "callback").start();
return this;
}
public Response removeRules(String session, List ids){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("ids", ids + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/removerules", _params, Response.class);
}
public Response removeRules(String session, List ids, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("ids", ids + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/removerules", _params, headers, Response.class);
}
public Security removeRules(final String session, final List ids, final Callback callback){
new Thread(() -> {
Response response = removeRules(session, ids);
callback.fire(response);
}, "callback").start();
return this;
}
public Security removeRules(final String session, final List ids, final Map headers, final Callback callback){
new Thread(() -> {
Response response = removeRules(session, ids);
callback.fire(response);
}, "callback").start();
return this;
}
public Response removeRules(List ids){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("ids", ids + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/removerules", _params, Response.class);
}
public Response removeRules(List ids, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("ids", ids + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/removerules", _params, headers, Response.class);
}
public Security removeRules(final List ids, final Callback callback){
new Thread(() -> {
Response response = removeRules(ids);
callback.fire(response);
}, "callback").start();
return this;
}
public Security removeRules(final List ids, final Map headers, final Callback callback){
new Thread(() -> {
Response response = removeRules(ids);
callback.fire(response);
}, "callback").start();
return this;
}
public Response removeRules(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/removerules", _params, Response.class);
}
public Response removeRules(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/removerules", _params, headers, Response.class);
}
public Response removeRule(String envName, String session, int id){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("id", id + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/removerule", _params, Response.class);
}
public Response removeRule(String envName, String session, int id, Map headers){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("id", id + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/removerule", _params, headers, Response.class);
}
public Security removeRule(final String envName, final String session, final int id, final Callback callback){
new Thread(() -> {
Response response = removeRule(envName, session, id);
callback.fire(response);
}, "callback").start();
return this;
}
public Security removeRule(final String envName, final String session, final int id, final Map headers, final Callback callback){
new Thread(() -> {
Response response = removeRule(envName, session, id);
callback.fire(response);
}, "callback").start();
return this;
}
public Response removeRule(String session, int id){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/removerule", _params, Response.class);
}
public Response removeRule(String session, int id, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/removerule", _params, headers, Response.class);
}
public Security removeRule(final String session, final int id, final Callback callback){
new Thread(() -> {
Response response = removeRule(session, id);
callback.fire(response);
}, "callback").start();
return this;
}
public Security removeRule(final String session, final int id, final Map headers, final Callback callback){
new Thread(() -> {
Response response = removeRule(session, id);
callback.fire(response);
}, "callback").start();
return this;
}
public Response removeRule(int id){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/removerule", _params, Response.class);
}
public Response removeRule(int id, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/removerule", _params, headers, Response.class);
}
public Security removeRule(final int id, final Callback callback){
new Thread(() -> {
Response response = removeRule(id);
callback.fire(response);
}, "callback").start();
return this;
}
public Security removeRule(final int id, final Map headers, final Callback callback){
new Thread(() -> {
Response response = removeRule(id);
callback.fire(response);
}, "callback").start();
return this;
}
public Response removeRule(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/removerule", _params, Response.class);
}
public Response removeRule(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/removerule", _params, headers, Response.class);
}
public Response setRules(String envName, String session, String rules, String nodeGroup){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("rules", rules);
_params.put("nodeGroup", nodeGroup);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setrules", _params, Response.class);
}
public Response setRules(String envName, String session, String rules, String nodeGroup, Map headers){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("rules", rules);
_params.put("nodeGroup", nodeGroup);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setrules", _params, headers, Response.class);
}
public Security setRules(final String envName, final String session, final String rules, final String nodeGroup, final Callback callback){
new Thread(() -> {
Response response = setRules(envName, session, rules, nodeGroup);
callback.fire(response);
}, "callback").start();
return this;
}
public Security setRules(final String envName, final String session, final String rules, final String nodeGroup, final Map headers, final Callback callback){
new Thread(() -> {
Response response = setRules(envName, session, rules, nodeGroup);
callback.fire(response);
}, "callback").start();
return this;
}
public Response setRules(String session, String rules, String nodeGroup){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("rules", rules);
_params.put("nodeGroup", nodeGroup);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setrules", _params, Response.class);
}
public Response setRules(String session, String rules, String nodeGroup, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("rules", rules);
_params.put("nodeGroup", nodeGroup);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setrules", _params, headers, Response.class);
}
public Security setRules(final String session, final String rules, final String nodeGroup, final Callback callback){
new Thread(() -> {
Response response = setRules(session, rules, nodeGroup);
callback.fire(response);
}, "callback").start();
return this;
}
public Security setRules(final String session, final String rules, final String nodeGroup, final Map headers, final Callback callback){
new Thread(() -> {
Response response = setRules(session, rules, nodeGroup);
callback.fire(response);
}, "callback").start();
return this;
}
public Response setRules(String rules, String nodeGroup){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("rules", rules);
_params.put("nodeGroup", nodeGroup);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setrules", _params, Response.class);
}
public Response setRules(String rules, String nodeGroup, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("rules", rules);
_params.put("nodeGroup", nodeGroup);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setrules", _params, headers, Response.class);
}
public Security setRules(final String rules, final String nodeGroup, final Callback callback){
new Thread(() -> {
Response response = setRules(rules, nodeGroup);
callback.fire(response);
}, "callback").start();
return this;
}
public Security setRules(final String rules, final String nodeGroup, final Map headers, final Callback callback){
new Thread(() -> {
Response response = setRules(rules, nodeGroup);
callback.fire(response);
}, "callback").start();
return this;
}
public Response setRules(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setrules", _params, Response.class);
}
public Response setRules(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setrules", _params, headers, Response.class);
}
public Response setRuleEnabled(String envName, String session, int id, boolean enabled){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("id", id + "");
_params.put("enabled", enabled + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setruleenabled", _params, Response.class);
}
public Response setRuleEnabled(String envName, String session, int id, boolean enabled, Map headers){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("id", id + "");
_params.put("enabled", enabled + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setruleenabled", _params, headers, Response.class);
}
public Security setRuleEnabled(final String envName, final String session, final int id, final boolean enabled, final Callback callback){
new Thread(() -> {
Response response = setRuleEnabled(envName, session, id, enabled);
callback.fire(response);
}, "callback").start();
return this;
}
public Security setRuleEnabled(final String envName, final String session, final int id, final boolean enabled, final Map headers, final Callback callback){
new Thread(() -> {
Response response = setRuleEnabled(envName, session, id, enabled);
callback.fire(response);
}, "callback").start();
return this;
}
public Response setRuleEnabled(String session, int id, boolean enabled){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("enabled", enabled + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setruleenabled", _params, Response.class);
}
public Response setRuleEnabled(String session, int id, boolean enabled, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("enabled", enabled + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setruleenabled", _params, headers, Response.class);
}
public Security setRuleEnabled(final String session, final int id, final boolean enabled, final Callback callback){
new Thread(() -> {
Response response = setRuleEnabled(session, id, enabled);
callback.fire(response);
}, "callback").start();
return this;
}
public Security setRuleEnabled(final String session, final int id, final boolean enabled, final Map headers, final Callback callback){
new Thread(() -> {
Response response = setRuleEnabled(session, id, enabled);
callback.fire(response);
}, "callback").start();
return this;
}
public Response setRuleEnabled(int id, boolean enabled){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("enabled", enabled + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setruleenabled", _params, Response.class);
}
public Response setRuleEnabled(int id, boolean enabled, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("enabled", enabled + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setruleenabled", _params, headers, Response.class);
}
public Security setRuleEnabled(final int id, final boolean enabled, final Callback callback){
new Thread(() -> {
Response response = setRuleEnabled(id, enabled);
callback.fire(response);
}, "callback").start();
return this;
}
public Security setRuleEnabled(final int id, final boolean enabled, final Map headers, final Callback callback){
new Thread(() -> {
Response response = setRuleEnabled(id, enabled);
callback.fire(response);
}, "callback").start();
return this;
}
public Response setRuleEnabled(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setruleenabled", _params, Response.class);
}
public Response setRuleEnabled(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setruleenabled", _params, headers, Response.class);
}
public Response setFirewallEnabled(String envName, String session, boolean enabled){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("enabled", enabled + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setfirewallenabled", _params, Response.class);
}
public Response setFirewallEnabled(String envName, String session, boolean enabled, Map headers){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("enabled", enabled + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setfirewallenabled", _params, headers, Response.class);
}
public Security setFirewallEnabled(final String envName, final String session, final boolean enabled, final Callback callback){
new Thread(() -> {
Response response = setFirewallEnabled(envName, session, enabled);
callback.fire(response);
}, "callback").start();
return this;
}
public Security setFirewallEnabled(final String envName, final String session, final boolean enabled, final Map headers, final Callback callback){
new Thread(() -> {
Response response = setFirewallEnabled(envName, session, enabled);
callback.fire(response);
}, "callback").start();
return this;
}
public Response setFirewallEnabled(String session, boolean enabled){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("enabled", enabled + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setfirewallenabled", _params, Response.class);
}
public Response setFirewallEnabled(String session, boolean enabled, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("enabled", enabled + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setfirewallenabled", _params, headers, Response.class);
}
public Security setFirewallEnabled(final String session, final boolean enabled, final Callback callback){
new Thread(() -> {
Response response = setFirewallEnabled(session, enabled);
callback.fire(response);
}, "callback").start();
return this;
}
public Security setFirewallEnabled(final String session, final boolean enabled, final Map headers, final Callback callback){
new Thread(() -> {
Response response = setFirewallEnabled(session, enabled);
callback.fire(response);
}, "callback").start();
return this;
}
public Response setFirewallEnabled(boolean enabled){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("enabled", enabled + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setfirewallenabled", _params, Response.class);
}
public Response setFirewallEnabled(boolean enabled, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("enabled", enabled + "");
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setfirewallenabled", _params, headers, Response.class);
}
public Security setFirewallEnabled(final boolean enabled, final Callback callback){
new Thread(() -> {
Response response = setFirewallEnabled(enabled);
callback.fire(response);
}, "callback").start();
return this;
}
public Security setFirewallEnabled(final boolean enabled, final Map headers, final Callback callback){
new Thread(() -> {
Response response = setFirewallEnabled(enabled);
callback.fire(response);
}, "callback").start();
return this;
}
public Response setFirewallEnabled(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setfirewallenabled", _params, Response.class);
}
public Response setFirewallEnabled(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/setfirewallenabled", _params, headers, Response.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy