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

com.jelastic.api.environment.File 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.environment.response.FilePermissionResponse;
import com.jelastic.api.environment.response.FavoriteListResponse;
import com.jelastic.api.Response;
import com.jelastic.api.environment.response.FilesListResponse;
import com.jelastic.api.development.response.interfaces.ArrayResponse;
import com.jelastic.api.environment.response.ObjectResponse;
import com.jelastic.api.environment.response.NodeSSHResponses;
import com.jelastic.api.environment.response.FileReadResponse;

/**
* @name Jelastic API Client
* @version 8.11.2
* @copyright Jelastic, Inc.
**/


@JelasticModuleName(name="jelastic")
public class File extends AbstractService {

  public static String SERVICE_PATH = "environment/file/";
  private String serviceUrl = SERVER_URL + SERVICE_PATH;
  private String appid = null;
  private String session = null;
  private String client_source = null;

  public File(){}

  public File(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 File(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 File(String appid, String session){
     this(appid, session, null);
  }

  public File(String appid){
     this(appid, null, null);
  }

  public String getAppid(){
     return appid;
  }

  public File setAppid(String appid){
     this.appid = appid;
     return this;
  }

  public String getSession(){
     return session;
  }

  public File setSession(String session){
     this.session = session;
     return this;
  }

  public String getServiceUrl(){
     return serviceUrl;
  }

  public File setServiceUrl(String serviceUrl){
     this.serviceUrl = serviceUrl;
     return this;
  }

  public String getServerUrl(){
     return serviceUrl;
  }

  public File setServerUrl(String serverUrl){
     this.serviceUrl = serverUrl + SERVICE_PATH;
     return this;
  }

  public File setClientSource(String client_source){
     this.client_source = client_source;
     return this;
  }

  public String getClientSource(){
     return client_source ;
  }

  public FilesListResponse getList(String envName, String session, String path, String nodeType, String nodeGroup, int nodeid, String filter){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeid", nodeid + "");
      _params.put("filter", filter);
      _params.put("client_source", client_source);
      return (FilesListResponse) _call(appid, serviceUrl + "rest/getlist", _params, FilesListResponse.class);
  }

  public FilesListResponse getList(String envName, String session, String path, String nodeType, String nodeGroup, int nodeid, String filter, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeid", nodeid + "");
      _params.put("filter", filter);
      _params.put("client_source", client_source);
      return (FilesListResponse) _call(appid, serviceUrl + "rest/getlist", _params, headers, FilesListResponse.class);
  }

  public File getList(final String envName, final String session, final String path, final String nodeType, final String nodeGroup, final int nodeid, final String filter, final Callback callback){
      new Thread(() -> {
              FilesListResponse response = getList(envName, session, path, nodeType, nodeGroup, nodeid, filter);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File getList(final String envName, final String session, final String path, final String nodeType, final String nodeGroup, final int nodeid, final String filter, final Map headers, final Callback callback){
      new Thread(() -> {
              FilesListResponse response = getList(envName, session, path, nodeType, nodeGroup, nodeid, filter);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public FilesListResponse getList(String envName, String session, String path, String nodeType, String nodeGroup, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (FilesListResponse) _call(appid, serviceUrl + "rest/getlist", _params, FilesListResponse.class);
  }

  public FilesListResponse getList(String envName, String session, String path, String nodeType, String nodeGroup, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (FilesListResponse) _call(appid, serviceUrl + "rest/getlist", _params, headers, FilesListResponse.class);
  }

  public File getList(final String envName, final String session, final String path, final String nodeType, final String nodeGroup, final int nodeid, final Callback callback){
      new Thread(() -> {
              FilesListResponse response = getList(envName, session, path, nodeType, nodeGroup, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File getList(final String envName, final String session, final String path, final String nodeType, final String nodeGroup, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              FilesListResponse response = getList(envName, session, path, nodeType, nodeGroup, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public FilesListResponse getList(String session, String path, String nodeType, String nodeGroup, int nodeid, String filter){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeid", nodeid + "");
      _params.put("filter", filter);
      _params.put("client_source", client_source);
      return (FilesListResponse) _call(appid, serviceUrl + "rest/getlist", _params, FilesListResponse.class);
  }

  public FilesListResponse getList(String session, String path, String nodeType, String nodeGroup, int nodeid, String filter, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeid", nodeid + "");
      _params.put("filter", filter);
      _params.put("client_source", client_source);
      return (FilesListResponse) _call(appid, serviceUrl + "rest/getlist", _params, headers, FilesListResponse.class);
  }

  public File getList(final String session, final String path, final String nodeType, final String nodeGroup, final int nodeid, final String filter, final Callback callback){
      new Thread(() -> {
              FilesListResponse response = getList(session, path, nodeType, nodeGroup, nodeid, filter);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File getList(final String session, final String path, final String nodeType, final String nodeGroup, final int nodeid, final String filter, final Map headers, final Callback callback){
      new Thread(() -> {
              FilesListResponse response = getList(session, path, nodeType, nodeGroup, nodeid, filter);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public FilesListResponse getList(String path, String nodeType, String nodeGroup, int nodeid, String filter){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeid", nodeid + "");
      _params.put("filter", filter);
      _params.put("client_source", client_source);
      return (FilesListResponse) _call(appid, serviceUrl + "rest/getlist", _params, FilesListResponse.class);
  }

  public FilesListResponse getList(String path, String nodeType, String nodeGroup, int nodeid, String filter, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeid", nodeid + "");
      _params.put("filter", filter);
      _params.put("client_source", client_source);
      return (FilesListResponse) _call(appid, serviceUrl + "rest/getlist", _params, headers, FilesListResponse.class);
  }

  public File getList(final String path, final String nodeType, final String nodeGroup, final int nodeid, final String filter, final Callback callback){
      new Thread(() -> {
              FilesListResponse response = getList(path, nodeType, nodeGroup, nodeid, filter);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File getList(final String path, final String nodeType, final String nodeGroup, final int nodeid, final String filter, final Map headers, final Callback callback){
      new Thread(() -> {
              FilesListResponse response = getList(path, nodeType, nodeGroup, nodeid, filter);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public FilesListResponse getList(String session, String path, String nodeType, String nodeGroup, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (FilesListResponse) _call(appid, serviceUrl + "rest/getlist", _params, FilesListResponse.class);
  }

  public FilesListResponse getList(String session, String path, String nodeType, String nodeGroup, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (FilesListResponse) _call(appid, serviceUrl + "rest/getlist", _params, headers, FilesListResponse.class);
  }

  public File getList(final String session, final String path, final String nodeType, final String nodeGroup, final int nodeid, final Callback callback){
      new Thread(() -> {
              FilesListResponse response = getList(session, path, nodeType, nodeGroup, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File getList(final String session, final String path, final String nodeType, final String nodeGroup, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              FilesListResponse response = getList(session, path, nodeType, nodeGroup, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public FilesListResponse getList(String path, String nodeType, String nodeGroup, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (FilesListResponse) _call(appid, serviceUrl + "rest/getlist", _params, FilesListResponse.class);
  }

  public FilesListResponse getList(String path, String nodeType, String nodeGroup, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (FilesListResponse) _call(appid, serviceUrl + "rest/getlist", _params, headers, FilesListResponse.class);
  }

  public File getList(final String path, final String nodeType, final String nodeGroup, final int nodeid, final Callback callback){
      new Thread(() -> {
              FilesListResponse response = getList(path, nodeType, nodeGroup, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File getList(final String path, final String nodeType, final String nodeGroup, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              FilesListResponse response = getList(path, nodeType, nodeGroup, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public FilesListResponse getList(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 (FilesListResponse) _call(appid, serviceUrl + "rest/getlist", _params, FilesListResponse.class);
  }

  public FilesListResponse getList(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 (FilesListResponse) _call(appid, serviceUrl + "rest/getlist", _params, headers, FilesListResponse.class);
  }

  public FavoriteListResponse getFavorites(String envName, String session, String nodeGroup, int nodeId){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("client_source", client_source);
      return (FavoriteListResponse) _call(appid, serviceUrl + "rest/getfavorites", _params, FavoriteListResponse.class);
  }

  public FavoriteListResponse getFavorites(String envName, String session, String nodeGroup, int nodeId, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("client_source", client_source);
      return (FavoriteListResponse) _call(appid, serviceUrl + "rest/getfavorites", _params, headers, FavoriteListResponse.class);
  }

  public File getFavorites(final String envName, final String session, final String nodeGroup, final int nodeId, final Callback callback){
      new Thread(() -> {
              FavoriteListResponse response = getFavorites(envName, session, nodeGroup, nodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File getFavorites(final String envName, final String session, final String nodeGroup, final int nodeId, final Map headers, final Callback callback){
      new Thread(() -> {
              FavoriteListResponse response = getFavorites(envName, session, nodeGroup, nodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public FavoriteListResponse getFavorites(String session, String nodeGroup, int nodeId){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("client_source", client_source);
      return (FavoriteListResponse) _call(appid, serviceUrl + "rest/getfavorites", _params, FavoriteListResponse.class);
  }

  public FavoriteListResponse getFavorites(String session, String nodeGroup, int nodeId, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("client_source", client_source);
      return (FavoriteListResponse) _call(appid, serviceUrl + "rest/getfavorites", _params, headers, FavoriteListResponse.class);
  }

  public File getFavorites(final String session, final String nodeGroup, final int nodeId, final Callback callback){
      new Thread(() -> {
              FavoriteListResponse response = getFavorites(session, nodeGroup, nodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File getFavorites(final String session, final String nodeGroup, final int nodeId, final Map headers, final Callback callback){
      new Thread(() -> {
              FavoriteListResponse response = getFavorites(session, nodeGroup, nodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public FavoriteListResponse getFavorites(String nodeGroup, int nodeId){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("client_source", client_source);
      return (FavoriteListResponse) _call(appid, serviceUrl + "rest/getfavorites", _params, FavoriteListResponse.class);
  }

  public FavoriteListResponse getFavorites(String nodeGroup, int nodeId, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("client_source", client_source);
      return (FavoriteListResponse) _call(appid, serviceUrl + "rest/getfavorites", _params, headers, FavoriteListResponse.class);
  }

  public File getFavorites(final String nodeGroup, final int nodeId, final Callback callback){
      new Thread(() -> {
              FavoriteListResponse response = getFavorites(nodeGroup, nodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File getFavorites(final String nodeGroup, final int nodeId, final Map headers, final Callback callback){
      new Thread(() -> {
              FavoriteListResponse response = getFavorites(nodeGroup, nodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public FavoriteListResponse getFavorites(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 (FavoriteListResponse) _call(appid, serviceUrl + "rest/getfavorites", _params, FavoriteListResponse.class);
  }

  public FavoriteListResponse getFavorites(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 (FavoriteListResponse) _call(appid, serviceUrl + "rest/getfavorites", _params, headers, FavoriteListResponse.class);
  }

  public Response addFavorite(String envName, String session, String nodeGroup, int nodeId, String path, String keyword, String filter, Boolean isDir){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("keyword", keyword);
      _params.put("filter", filter);
      _params.put("isDir", isDir + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, Response.class);
  }

  public Response addFavorite(String envName, String session, String nodeGroup, int nodeId, String path, String keyword, String filter, Boolean isDir, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("keyword", keyword);
      _params.put("filter", filter);
      _params.put("isDir", isDir + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, headers, Response.class);
  }

  public File addFavorite(final String envName, final String session, final String nodeGroup, final int nodeId, final String path, final String keyword, final String filter, final Boolean isDir, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(envName, session, nodeGroup, nodeId, path, keyword, filter, isDir);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addFavorite(final String envName, final String session, final String nodeGroup, final int nodeId, final String path, final String keyword, final String filter, final Boolean isDir, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(envName, session, nodeGroup, nodeId, path, keyword, filter, isDir);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addFavorite(String envName, String session, String nodeGroup, int nodeId, String path, String keyword, String filter){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("keyword", keyword);
      _params.put("filter", filter);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, Response.class);
  }

  public Response addFavorite(String envName, String session, String nodeGroup, int nodeId, String path, String keyword, String filter, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("keyword", keyword);
      _params.put("filter", filter);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, headers, Response.class);
  }

  public File addFavorite(final String envName, final String session, final String nodeGroup, final int nodeId, final String path, final String keyword, final String filter, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(envName, session, nodeGroup, nodeId, path, keyword, filter);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addFavorite(final String envName, final String session, final String nodeGroup, final int nodeId, final String path, final String keyword, final String filter, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(envName, session, nodeGroup, nodeId, path, keyword, filter);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addFavorite(String envName, String session, String nodeGroup, int nodeId, String path, String keyword){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("keyword", keyword);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, Response.class);
  }

  public Response addFavorite(String envName, String session, String nodeGroup, int nodeId, String path, String keyword, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("keyword", keyword);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, headers, Response.class);
  }

  public File addFavorite(final String envName, final String session, final String nodeGroup, final int nodeId, final String path, final String keyword, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(envName, session, nodeGroup, nodeId, path, keyword);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addFavorite(final String envName, final String session, final String nodeGroup, final int nodeId, final String path, final String keyword, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(envName, session, nodeGroup, nodeId, path, keyword);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addFavorite(String envName, String session, String nodeGroup, int nodeId, String path){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, Response.class);
  }

  public Response addFavorite(String envName, String session, String nodeGroup, int nodeId, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, headers, Response.class);
  }

  public File addFavorite(final String envName, final String session, final String nodeGroup, final int nodeId, final String path, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(envName, session, nodeGroup, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addFavorite(final String envName, final String session, final String nodeGroup, final int nodeId, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(envName, session, nodeGroup, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addFavorite(String session, String nodeGroup, int nodeId, String path, String keyword, String filter, Boolean isDir){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("keyword", keyword);
      _params.put("filter", filter);
      _params.put("isDir", isDir + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, Response.class);
  }

  public Response addFavorite(String session, String nodeGroup, int nodeId, String path, String keyword, String filter, Boolean isDir, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("keyword", keyword);
      _params.put("filter", filter);
      _params.put("isDir", isDir + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, headers, Response.class);
  }

  public File addFavorite(final String session, final String nodeGroup, final int nodeId, final String path, final String keyword, final String filter, final Boolean isDir, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(session, nodeGroup, nodeId, path, keyword, filter, isDir);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addFavorite(final String session, final String nodeGroup, final int nodeId, final String path, final String keyword, final String filter, final Boolean isDir, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(session, nodeGroup, nodeId, path, keyword, filter, isDir);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addFavorite(String nodeGroup, int nodeId, String path, String keyword, String filter, Boolean isDir){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("keyword", keyword);
      _params.put("filter", filter);
      _params.put("isDir", isDir + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, Response.class);
  }

  public Response addFavorite(String nodeGroup, int nodeId, String path, String keyword, String filter, Boolean isDir, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("keyword", keyword);
      _params.put("filter", filter);
      _params.put("isDir", isDir + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, headers, Response.class);
  }

  public File addFavorite(final String nodeGroup, final int nodeId, final String path, final String keyword, final String filter, final Boolean isDir, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(nodeGroup, nodeId, path, keyword, filter, isDir);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addFavorite(final String nodeGroup, final int nodeId, final String path, final String keyword, final String filter, final Boolean isDir, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(nodeGroup, nodeId, path, keyword, filter, isDir);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addFavorite(String session, String nodeGroup, int nodeId, String path, String keyword, String filter){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("keyword", keyword);
      _params.put("filter", filter);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, Response.class);
  }

  public Response addFavorite(String session, String nodeGroup, int nodeId, String path, String keyword, String filter, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("keyword", keyword);
      _params.put("filter", filter);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, headers, Response.class);
  }

  public File addFavorite(final String session, final String nodeGroup, final int nodeId, final String path, final String keyword, final String filter, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(session, nodeGroup, nodeId, path, keyword, filter);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addFavorite(final String session, final String nodeGroup, final int nodeId, final String path, final String keyword, final String filter, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(session, nodeGroup, nodeId, path, keyword, filter);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addFavorite(String nodeGroup, int nodeId, String path, String keyword, String filter){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("keyword", keyword);
      _params.put("filter", filter);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, Response.class);
  }

  public Response addFavorite(String nodeGroup, int nodeId, String path, String keyword, String filter, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("keyword", keyword);
      _params.put("filter", filter);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, headers, Response.class);
  }

  public File addFavorite(final String nodeGroup, final int nodeId, final String path, final String keyword, final String filter, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(nodeGroup, nodeId, path, keyword, filter);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addFavorite(final String nodeGroup, final int nodeId, final String path, final String keyword, final String filter, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(nodeGroup, nodeId, path, keyword, filter);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addFavorite(String session, String nodeGroup, int nodeId, String path, String keyword){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("keyword", keyword);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, Response.class);
  }

  public Response addFavorite(String session, String nodeGroup, int nodeId, String path, String keyword, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("keyword", keyword);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, headers, Response.class);
  }

  public File addFavorite(final String session, final String nodeGroup, final int nodeId, final String path, final String keyword, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(session, nodeGroup, nodeId, path, keyword);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addFavorite(final String session, final String nodeGroup, final int nodeId, final String path, final String keyword, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(session, nodeGroup, nodeId, path, keyword);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addFavorite(String nodeGroup, int nodeId, String path, String keyword){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("keyword", keyword);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, Response.class);
  }

  public Response addFavorite(String nodeGroup, int nodeId, String path, String keyword, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("keyword", keyword);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, headers, Response.class);
  }

  public File addFavorite(final String nodeGroup, final int nodeId, final String path, final String keyword, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(nodeGroup, nodeId, path, keyword);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addFavorite(final String nodeGroup, final int nodeId, final String path, final String keyword, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(nodeGroup, nodeId, path, keyword);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addFavorite(String session, String nodeGroup, int nodeId, String path){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, Response.class);
  }

  public Response addFavorite(String session, String nodeGroup, int nodeId, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, headers, Response.class);
  }

  public File addFavorite(final String session, final String nodeGroup, final int nodeId, final String path, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(session, nodeGroup, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addFavorite(final String session, final String nodeGroup, final int nodeId, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(session, nodeGroup, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addFavorite(String nodeGroup, int nodeId, String path){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, Response.class);
  }

  public Response addFavorite(String nodeGroup, int nodeId, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addfavorite", _params, headers, Response.class);
  }

  public File addFavorite(final String nodeGroup, final int nodeId, final String path, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(nodeGroup, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addFavorite(final String nodeGroup, final int nodeId, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addFavorite(nodeGroup, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addFavorite(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/addfavorite", _params, Response.class);
  }

  public Response addFavorite(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/addfavorite", _params, headers, Response.class);
  }

  public Response removeFavorite(String envName, String session, String nodeGroup, int nodeId, String path){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removefavorite", _params, Response.class);
  }

  public Response removeFavorite(String envName, String session, String nodeGroup, int nodeId, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removefavorite", _params, headers, Response.class);
  }

  public File removeFavorite(final String envName, final String session, final String nodeGroup, final int nodeId, final String path, final Callback callback){
      new Thread(() -> {
              Response response = removeFavorite(envName, session, nodeGroup, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File removeFavorite(final String envName, final String session, final String nodeGroup, final int nodeId, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = removeFavorite(envName, session, nodeGroup, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response removeFavorite(String session, String nodeGroup, int nodeId, String path){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removefavorite", _params, Response.class);
  }

  public Response removeFavorite(String session, String nodeGroup, int nodeId, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removefavorite", _params, headers, Response.class);
  }

  public File removeFavorite(final String session, final String nodeGroup, final int nodeId, final String path, final Callback callback){
      new Thread(() -> {
              Response response = removeFavorite(session, nodeGroup, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File removeFavorite(final String session, final String nodeGroup, final int nodeId, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = removeFavorite(session, nodeGroup, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response removeFavorite(String nodeGroup, int nodeId, String path){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removefavorite", _params, Response.class);
  }

  public Response removeFavorite(String nodeGroup, int nodeId, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removefavorite", _params, headers, Response.class);
  }

  public File removeFavorite(final String nodeGroup, final int nodeId, final String path, final Callback callback){
      new Thread(() -> {
              Response response = removeFavorite(nodeGroup, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File removeFavorite(final String nodeGroup, final int nodeId, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = removeFavorite(nodeGroup, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response removeFavorite(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/removefavorite", _params, Response.class);
  }

  public Response removeFavorite(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/removefavorite", _params, headers, Response.class);
  }

  public FilePermissionResponse create(String envName, String session, String path, String nodeType, String nodeGroup, boolean masterOnly, boolean isdir, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("isdir", isdir + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (FilePermissionResponse) _call(appid, serviceUrl + "rest/create", _params, FilePermissionResponse.class);
  }

  public FilePermissionResponse create(String envName, String session, String path, String nodeType, String nodeGroup, boolean masterOnly, boolean isdir, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("isdir", isdir + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (FilePermissionResponse) _call(appid, serviceUrl + "rest/create", _params, headers, FilePermissionResponse.class);
  }

  public File create(final String envName, final String session, final String path, final String nodeType, final String nodeGroup, final boolean masterOnly, final boolean isdir, final int nodeid, final Callback callback){
      new Thread(() -> {
              FilePermissionResponse response = create(envName, session, path, nodeType, nodeGroup, masterOnly, isdir, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File create(final String envName, final String session, final String path, final String nodeType, final String nodeGroup, final boolean masterOnly, final boolean isdir, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              FilePermissionResponse response = create(envName, session, path, nodeType, nodeGroup, masterOnly, isdir, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public FilePermissionResponse create(String envName, String session, String path, String nodeType, String nodeGroup, boolean masterOnly){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("client_source", client_source);
      return (FilePermissionResponse) _call(appid, serviceUrl + "rest/create", _params, FilePermissionResponse.class);
  }

  public FilePermissionResponse create(String envName, String session, String path, String nodeType, String nodeGroup, boolean masterOnly, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("client_source", client_source);
      return (FilePermissionResponse) _call(appid, serviceUrl + "rest/create", _params, headers, FilePermissionResponse.class);
  }

  public File create(final String envName, final String session, final String path, final String nodeType, final String nodeGroup, final boolean masterOnly, final Callback callback){
      new Thread(() -> {
              FilePermissionResponse response = create(envName, session, path, nodeType, nodeGroup, masterOnly);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File create(final String envName, final String session, final String path, final String nodeType, final String nodeGroup, final boolean masterOnly, final Map headers, final Callback callback){
      new Thread(() -> {
              FilePermissionResponse response = create(envName, session, path, nodeType, nodeGroup, masterOnly);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public FilePermissionResponse create(String session, String path, String nodeType, String nodeGroup, boolean masterOnly, boolean isdir, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("isdir", isdir + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (FilePermissionResponse) _call(appid, serviceUrl + "rest/create", _params, FilePermissionResponse.class);
  }

  public FilePermissionResponse create(String session, String path, String nodeType, String nodeGroup, boolean masterOnly, boolean isdir, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("isdir", isdir + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (FilePermissionResponse) _call(appid, serviceUrl + "rest/create", _params, headers, FilePermissionResponse.class);
  }

  public File create(final String session, final String path, final String nodeType, final String nodeGroup, final boolean masterOnly, final boolean isdir, final int nodeid, final Callback callback){
      new Thread(() -> {
              FilePermissionResponse response = create(session, path, nodeType, nodeGroup, masterOnly, isdir, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File create(final String session, final String path, final String nodeType, final String nodeGroup, final boolean masterOnly, final boolean isdir, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              FilePermissionResponse response = create(session, path, nodeType, nodeGroup, masterOnly, isdir, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public FilePermissionResponse create(String path, String nodeType, String nodeGroup, boolean masterOnly, boolean isdir, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("isdir", isdir + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (FilePermissionResponse) _call(appid, serviceUrl + "rest/create", _params, FilePermissionResponse.class);
  }

  public FilePermissionResponse create(String path, String nodeType, String nodeGroup, boolean masterOnly, boolean isdir, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("isdir", isdir + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (FilePermissionResponse) _call(appid, serviceUrl + "rest/create", _params, headers, FilePermissionResponse.class);
  }

  public File create(final String path, final String nodeType, final String nodeGroup, final boolean masterOnly, final boolean isdir, final int nodeid, final Callback callback){
      new Thread(() -> {
              FilePermissionResponse response = create(path, nodeType, nodeGroup, masterOnly, isdir, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File create(final String path, final String nodeType, final String nodeGroup, final boolean masterOnly, final boolean isdir, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              FilePermissionResponse response = create(path, nodeType, nodeGroup, masterOnly, isdir, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public FilePermissionResponse create(String session, String path, String nodeType, String nodeGroup, boolean masterOnly){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("client_source", client_source);
      return (FilePermissionResponse) _call(appid, serviceUrl + "rest/create", _params, FilePermissionResponse.class);
  }

  public FilePermissionResponse create(String session, String path, String nodeType, String nodeGroup, boolean masterOnly, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("client_source", client_source);
      return (FilePermissionResponse) _call(appid, serviceUrl + "rest/create", _params, headers, FilePermissionResponse.class);
  }

  public File create(final String session, final String path, final String nodeType, final String nodeGroup, final boolean masterOnly, final Callback callback){
      new Thread(() -> {
              FilePermissionResponse response = create(session, path, nodeType, nodeGroup, masterOnly);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File create(final String session, final String path, final String nodeType, final String nodeGroup, final boolean masterOnly, final Map headers, final Callback callback){
      new Thread(() -> {
              FilePermissionResponse response = create(session, path, nodeType, nodeGroup, masterOnly);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public FilePermissionResponse create(String path, String nodeType, String nodeGroup, boolean masterOnly){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("client_source", client_source);
      return (FilePermissionResponse) _call(appid, serviceUrl + "rest/create", _params, FilePermissionResponse.class);
  }

  public FilePermissionResponse create(String path, String nodeType, String nodeGroup, boolean masterOnly, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("client_source", client_source);
      return (FilePermissionResponse) _call(appid, serviceUrl + "rest/create", _params, headers, FilePermissionResponse.class);
  }

  public File create(final String path, final String nodeType, final String nodeGroup, final boolean masterOnly, final Callback callback){
      new Thread(() -> {
              FilePermissionResponse response = create(path, nodeType, nodeGroup, masterOnly);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File create(final String path, final String nodeType, final String nodeGroup, final boolean masterOnly, final Map headers, final Callback callback){
      new Thread(() -> {
              FilePermissionResponse response = create(path, nodeType, nodeGroup, masterOnly);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public FilePermissionResponse create(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 (FilePermissionResponse) _call(appid, serviceUrl + "rest/create", _params, FilePermissionResponse.class);
  }

  public FilePermissionResponse create(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 (FilePermissionResponse) _call(appid, serviceUrl + "rest/create", _params, headers, FilePermissionResponse.class);
  }

  public NodeSSHResponses delete(String envName, String session, String path, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/delete", _params, NodeSSHResponses.class);
  }

  public NodeSSHResponses delete(String envName, String session, String path, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/delete", _params, headers, NodeSSHResponses.class);
  }

  public File delete(final String envName, final String session, final String path, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = delete(envName, session, path, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File delete(final String envName, final String session, final String path, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = delete(envName, session, path, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public NodeSSHResponses delete(String session, String path, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/delete", _params, NodeSSHResponses.class);
  }

  public NodeSSHResponses delete(String session, String path, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/delete", _params, headers, NodeSSHResponses.class);
  }

  public File delete(final String session, final String path, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = delete(session, path, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File delete(final String session, final String path, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = delete(session, path, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public NodeSSHResponses delete(String path, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/delete", _params, NodeSSHResponses.class);
  }

  public NodeSSHResponses delete(String path, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/delete", _params, headers, NodeSSHResponses.class);
  }

  public File delete(final String path, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = delete(path, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File delete(final String path, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = delete(path, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public NodeSSHResponses delete(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 (NodeSSHResponses) _call(appid, serviceUrl + "rest/delete", _params, NodeSSHResponses.class);
  }

  public NodeSSHResponses delete(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 (NodeSSHResponses) _call(appid, serviceUrl + "rest/delete", _params, headers, NodeSSHResponses.class);
  }

  public NodeSSHResponses rename(String envName, String session, String oldPath, String newPath, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("oldPath", oldPath);
      _params.put("newPath", newPath);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/rename", _params, NodeSSHResponses.class);
  }

  public NodeSSHResponses rename(String envName, String session, String oldPath, String newPath, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("oldPath", oldPath);
      _params.put("newPath", newPath);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/rename", _params, headers, NodeSSHResponses.class);
  }

  public File rename(final String envName, final String session, final String oldPath, final String newPath, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = rename(envName, session, oldPath, newPath, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File rename(final String envName, final String session, final String oldPath, final String newPath, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = rename(envName, session, oldPath, newPath, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public NodeSSHResponses rename(String session, String oldPath, String newPath, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("oldPath", oldPath);
      _params.put("newPath", newPath);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/rename", _params, NodeSSHResponses.class);
  }

  public NodeSSHResponses rename(String session, String oldPath, String newPath, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("oldPath", oldPath);
      _params.put("newPath", newPath);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/rename", _params, headers, NodeSSHResponses.class);
  }

  public File rename(final String session, final String oldPath, final String newPath, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = rename(session, oldPath, newPath, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File rename(final String session, final String oldPath, final String newPath, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = rename(session, oldPath, newPath, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public NodeSSHResponses rename(String oldPath, String newPath, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("oldPath", oldPath);
      _params.put("newPath", newPath);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/rename", _params, NodeSSHResponses.class);
  }

  public NodeSSHResponses rename(String oldPath, String newPath, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("oldPath", oldPath);
      _params.put("newPath", newPath);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/rename", _params, headers, NodeSSHResponses.class);
  }

  public File rename(final String oldPath, final String newPath, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = rename(oldPath, newPath, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File rename(final String oldPath, final String newPath, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = rename(oldPath, newPath, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public NodeSSHResponses rename(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 (NodeSSHResponses) _call(appid, serviceUrl + "rest/rename", _params, NodeSSHResponses.class);
  }

  public NodeSSHResponses rename(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 (NodeSSHResponses) _call(appid, serviceUrl + "rest/rename", _params, headers, NodeSSHResponses.class);
  }

  public Response copy(String envName, String session, String src, String dest, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("src", src);
      _params.put("dest", dest);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/copy", _params, Response.class);
  }

  public Response copy(String envName, String session, String src, String dest, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("src", src);
      _params.put("dest", dest);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/copy", _params, headers, Response.class);
  }

  public File copy(final String envName, final String session, final String src, final String dest, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              Response response = copy(envName, session, src, dest, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File copy(final String envName, final String session, final String src, final String dest, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = copy(envName, session, src, dest, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response copy(String session, String src, String dest, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("src", src);
      _params.put("dest", dest);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/copy", _params, Response.class);
  }

  public Response copy(String session, String src, String dest, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("src", src);
      _params.put("dest", dest);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/copy", _params, headers, Response.class);
  }

  public File copy(final String session, final String src, final String dest, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              Response response = copy(session, src, dest, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File copy(final String session, final String src, final String dest, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = copy(session, src, dest, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response copy(String src, String dest, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("src", src);
      _params.put("dest", dest);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/copy", _params, Response.class);
  }

  public Response copy(String src, String dest, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("src", src);
      _params.put("dest", dest);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/copy", _params, headers, Response.class);
  }

  public File copy(final String src, final String dest, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              Response response = copy(src, dest, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File copy(final String src, final String dest, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = copy(src, dest, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response copy(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/copy", _params, Response.class);
  }

  public Response copy(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/copy", _params, headers, Response.class);
  }

  public FileReadResponse read(String envName, String session, String path, String nodeType, String nodeGroup, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (FileReadResponse) _call(appid, serviceUrl + "rest/read", _params, FileReadResponse.class);
  }

  public FileReadResponse read(String envName, String session, String path, String nodeType, String nodeGroup, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (FileReadResponse) _call(appid, serviceUrl + "rest/read", _params, headers, FileReadResponse.class);
  }

  public File read(final String envName, final String session, final String path, final String nodeType, final String nodeGroup, final int nodeid, final Callback callback){
      new Thread(() -> {
              FileReadResponse response = read(envName, session, path, nodeType, nodeGroup, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File read(final String envName, final String session, final String path, final String nodeType, final String nodeGroup, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              FileReadResponse response = read(envName, session, path, nodeType, nodeGroup, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public FileReadResponse read(String session, String path, String nodeType, String nodeGroup, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (FileReadResponse) _call(appid, serviceUrl + "rest/read", _params, FileReadResponse.class);
  }

  public FileReadResponse read(String session, String path, String nodeType, String nodeGroup, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (FileReadResponse) _call(appid, serviceUrl + "rest/read", _params, headers, FileReadResponse.class);
  }

  public File read(final String session, final String path, final String nodeType, final String nodeGroup, final int nodeid, final Callback callback){
      new Thread(() -> {
              FileReadResponse response = read(session, path, nodeType, nodeGroup, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File read(final String session, final String path, final String nodeType, final String nodeGroup, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              FileReadResponse response = read(session, path, nodeType, nodeGroup, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public FileReadResponse read(String path, String nodeType, String nodeGroup, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (FileReadResponse) _call(appid, serviceUrl + "rest/read", _params, FileReadResponse.class);
  }

  public FileReadResponse read(String path, String nodeType, String nodeGroup, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (FileReadResponse) _call(appid, serviceUrl + "rest/read", _params, headers, FileReadResponse.class);
  }

  public File read(final String path, final String nodeType, final String nodeGroup, final int nodeid, final Callback callback){
      new Thread(() -> {
              FileReadResponse response = read(path, nodeType, nodeGroup, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File read(final String path, final String nodeType, final String nodeGroup, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              FileReadResponse response = read(path, nodeType, nodeGroup, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public FileReadResponse read(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 (FileReadResponse) _call(appid, serviceUrl + "rest/read", _params, FileReadResponse.class);
  }

  public FileReadResponse read(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 (FileReadResponse) _call(appid, serviceUrl + "rest/read", _params, headers, FileReadResponse.class);
  }

  public Response write(String envName, String session, String path, String body, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, boolean isAppendMode){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("isAppendMode", isAppendMode + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, Response.class);
  }

  public Response write(String envName, String session, String path, String body, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, boolean isAppendMode, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("isAppendMode", isAppendMode + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, headers, Response.class);
  }

  public File write(final String envName, final String session, final String path, final String body, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final boolean isAppendMode, final Callback callback){
      new Thread(() -> {
              Response response = write(envName, session, path, body, nodeType, nodeGroup, masterOnly, nodeid, isAppendMode);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File write(final String envName, final String session, final String path, final String body, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final boolean isAppendMode, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = write(envName, session, path, body, nodeType, nodeGroup, masterOnly, nodeid, isAppendMode);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response write(String envName, String session, String path, String body, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, Response.class);
  }

  public Response write(String envName, String session, String path, String body, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, headers, Response.class);
  }

  public File write(final String envName, final String session, final String path, final String body, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              Response response = write(envName, session, path, body, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File write(final String envName, final String session, final String path, final String body, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = write(envName, session, path, body, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response write(String envName, String session, String path, String body, String nodeType){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, Response.class);
  }

  public Response write(String envName, String session, String path, String body, String nodeType, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, headers, Response.class);
  }

  public File write(final String envName, final String session, final String path, final String body, final String nodeType, final Callback callback){
      new Thread(() -> {
              Response response = write(envName, session, path, body, nodeType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File write(final String envName, final String session, final String path, final String body, final String nodeType, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = write(envName, session, path, body, nodeType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response write(String envName, String session, String path, String body){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, Response.class);
  }

  public Response write(String envName, String session, String path, String body, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, headers, Response.class);
  }

  public File write(final String envName, final String session, final String path, final String body, final Callback callback){
      new Thread(() -> {
              Response response = write(envName, session, path, body);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File write(final String envName, final String session, final String path, final String body, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = write(envName, session, path, body);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response write(String envName, String session, String path){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, Response.class);
  }

  public Response write(String envName, String session, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, headers, Response.class);
  }

  public File write(final String envName, final String session, final String path, final Callback callback){
      new Thread(() -> {
              Response response = write(envName, session, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File write(final String envName, final String session, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = write(envName, session, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response write(String session, String path, String body, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, boolean isAppendMode){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("isAppendMode", isAppendMode + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, Response.class);
  }

  public Response write(String session, String path, String body, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, boolean isAppendMode, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("isAppendMode", isAppendMode + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, headers, Response.class);
  }

  public File write(final String session, final String path, final String body, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final boolean isAppendMode, final Callback callback){
      new Thread(() -> {
              Response response = write(session, path, body, nodeType, nodeGroup, masterOnly, nodeid, isAppendMode);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File write(final String session, final String path, final String body, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final boolean isAppendMode, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = write(session, path, body, nodeType, nodeGroup, masterOnly, nodeid, isAppendMode);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response write(String path, String body, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, boolean isAppendMode){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("isAppendMode", isAppendMode + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, Response.class);
  }

  public Response write(String path, String body, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, boolean isAppendMode, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("isAppendMode", isAppendMode + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, headers, Response.class);
  }

  public File write(final String path, final String body, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final boolean isAppendMode, final Callback callback){
      new Thread(() -> {
              Response response = write(path, body, nodeType, nodeGroup, masterOnly, nodeid, isAppendMode);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File write(final String path, final String body, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final boolean isAppendMode, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = write(path, body, nodeType, nodeGroup, masterOnly, nodeid, isAppendMode);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response write(String session, String path, String body, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, Response.class);
  }

  public Response write(String session, String path, String body, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, headers, Response.class);
  }

  public File write(final String session, final String path, final String body, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              Response response = write(session, path, body, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File write(final String session, final String path, final String body, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = write(session, path, body, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response write(String path, String body, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, Response.class);
  }

  public Response write(String path, String body, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, headers, Response.class);
  }

  public File write(final String path, final String body, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              Response response = write(path, body, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File write(final String path, final String body, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = write(path, body, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response write(String path, String body){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, Response.class);
  }

  public Response write(String path, String body, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, headers, Response.class);
  }

  public File write(final String path, final String body, final Callback callback){
      new Thread(() -> {
              Response response = write(path, body);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File write(final String path, final String body, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = write(path, body);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response write(String path){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, Response.class);
  }

  public Response write(String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/write", _params, headers, Response.class);
  }

  public File write(final String path, final Callback callback){
      new Thread(() -> {
              Response response = write(path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File write(final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = write(path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response write(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/write", _params, Response.class);
  }

  public Response write(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/write", _params, headers, Response.class);
  }

  public Response append(String envName, String session, String path, String body, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/append", _params, Response.class);
  }

  public Response append(String envName, String session, String path, String body, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/append", _params, headers, Response.class);
  }

  public File append(final String envName, final String session, final String path, final String body, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              Response response = append(envName, session, path, body, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File append(final String envName, final String session, final String path, final String body, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = append(envName, session, path, body, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response append(String envName, String session, String path){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/append", _params, Response.class);
  }

  public Response append(String envName, String session, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/append", _params, headers, Response.class);
  }

  public File append(final String envName, final String session, final String path, final Callback callback){
      new Thread(() -> {
              Response response = append(envName, session, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File append(final String envName, final String session, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = append(envName, session, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response append(String session, String path, String body, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/append", _params, Response.class);
  }

  public Response append(String session, String path, String body, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/append", _params, headers, Response.class);
  }

  public File append(final String session, final String path, final String body, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              Response response = append(session, path, body, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File append(final String session, final String path, final String body, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = append(session, path, body, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response append(String path, String body, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/append", _params, Response.class);
  }

  public Response append(String path, String body, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("body", body);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/append", _params, headers, Response.class);
  }

  public File append(final String path, final String body, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              Response response = append(path, body, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File append(final String path, final String body, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = append(path, body, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response append(String session, String path){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/append", _params, Response.class);
  }

  public Response append(String session, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/append", _params, headers, Response.class);
  }

  public File append(final String session, final String path, final Callback callback){
      new Thread(() -> {
              Response response = append(session, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File append(final String session, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = append(session, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response append(String path){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/append", _params, Response.class);
  }

  public Response append(String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/append", _params, headers, Response.class);
  }

  public File append(final String path, final Callback callback){
      new Thread(() -> {
              Response response = append(path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File append(final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = append(path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response append(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/append", _params, Response.class);
  }

  public Response append(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/append", _params, headers, Response.class);
  }

  public NodeSSHResponses upload(String envName, String session, String sourcePath, String destPath, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, boolean overwrite){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("overwrite", overwrite + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/upload", _params, NodeSSHResponses.class);
  }

  public NodeSSHResponses upload(String envName, String session, String sourcePath, String destPath, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, boolean overwrite, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("overwrite", overwrite + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/upload", _params, headers, NodeSSHResponses.class);
  }

  public File upload(final String envName, final String session, final String sourcePath, final String destPath, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final boolean overwrite, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = upload(envName, session, sourcePath, destPath, nodeType, nodeGroup, masterOnly, nodeid, overwrite);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File upload(final String envName, final String session, final String sourcePath, final String destPath, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final boolean overwrite, final Map headers, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = upload(envName, session, sourcePath, destPath, nodeType, nodeGroup, masterOnly, nodeid, overwrite);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public NodeSSHResponses upload(String envName, String session, String sourcePath, String destPath, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/upload", _params, NodeSSHResponses.class);
  }

  public NodeSSHResponses upload(String envName, String session, String sourcePath, String destPath, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/upload", _params, headers, NodeSSHResponses.class);
  }

  public File upload(final String envName, final String session, final String sourcePath, final String destPath, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = upload(envName, session, sourcePath, destPath, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File upload(final String envName, final String session, final String sourcePath, final String destPath, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = upload(envName, session, sourcePath, destPath, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public NodeSSHResponses upload(String session, String sourcePath, String destPath, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, boolean overwrite){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("overwrite", overwrite + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/upload", _params, NodeSSHResponses.class);
  }

  public NodeSSHResponses upload(String session, String sourcePath, String destPath, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, boolean overwrite, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("overwrite", overwrite + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/upload", _params, headers, NodeSSHResponses.class);
  }

  public File upload(final String session, final String sourcePath, final String destPath, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final boolean overwrite, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = upload(session, sourcePath, destPath, nodeType, nodeGroup, masterOnly, nodeid, overwrite);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File upload(final String session, final String sourcePath, final String destPath, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final boolean overwrite, final Map headers, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = upload(session, sourcePath, destPath, nodeType, nodeGroup, masterOnly, nodeid, overwrite);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public NodeSSHResponses upload(String sourcePath, String destPath, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, boolean overwrite){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("overwrite", overwrite + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/upload", _params, NodeSSHResponses.class);
  }

  public NodeSSHResponses upload(String sourcePath, String destPath, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, boolean overwrite, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("overwrite", overwrite + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/upload", _params, headers, NodeSSHResponses.class);
  }

  public File upload(final String sourcePath, final String destPath, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final boolean overwrite, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = upload(sourcePath, destPath, nodeType, nodeGroup, masterOnly, nodeid, overwrite);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File upload(final String sourcePath, final String destPath, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final boolean overwrite, final Map headers, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = upload(sourcePath, destPath, nodeType, nodeGroup, masterOnly, nodeid, overwrite);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public NodeSSHResponses upload(String session, String sourcePath, String destPath, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/upload", _params, NodeSSHResponses.class);
  }

  public NodeSSHResponses upload(String session, String sourcePath, String destPath, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/upload", _params, headers, NodeSSHResponses.class);
  }

  public File upload(final String session, final String sourcePath, final String destPath, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = upload(session, sourcePath, destPath, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File upload(final String session, final String sourcePath, final String destPath, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = upload(session, sourcePath, destPath, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public NodeSSHResponses upload(String sourcePath, String destPath, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/upload", _params, NodeSSHResponses.class);
  }

  public NodeSSHResponses upload(String sourcePath, String destPath, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (NodeSSHResponses) _call(appid, serviceUrl + "rest/upload", _params, headers, NodeSSHResponses.class);
  }

  public File upload(final String sourcePath, final String destPath, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = upload(sourcePath, destPath, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File upload(final String sourcePath, final String destPath, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              NodeSSHResponses response = upload(sourcePath, destPath, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public NodeSSHResponses upload(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 (NodeSSHResponses) _call(appid, serviceUrl + "rest/upload", _params, NodeSSHResponses.class);
  }

  public NodeSSHResponses upload(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 (NodeSSHResponses) _call(appid, serviceUrl + "rest/upload", _params, headers, NodeSSHResponses.class);
  }

  public Response replaceInBody(String envName, String session, String path, String pattern, String replacement, int nth, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("pattern", pattern);
      _params.put("replacement", replacement);
      _params.put("nth", nth + "");
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/replaceinbody", _params, Response.class);
  }

  public Response replaceInBody(String envName, String session, String path, String pattern, String replacement, int nth, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("pattern", pattern);
      _params.put("replacement", replacement);
      _params.put("nth", nth + "");
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/replaceinbody", _params, headers, Response.class);
  }

  public File replaceInBody(final String envName, final String session, final String path, final String pattern, final String replacement, final int nth, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              Response response = replaceInBody(envName, session, path, pattern, replacement, nth, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File replaceInBody(final String envName, final String session, final String path, final String pattern, final String replacement, final int nth, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = replaceInBody(envName, session, path, pattern, replacement, nth, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response replaceInBody(String envName, String session, String path, String pattern, String replacement){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("pattern", pattern);
      _params.put("replacement", replacement);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/replaceinbody", _params, Response.class);
  }

  public Response replaceInBody(String envName, String session, String path, String pattern, String replacement, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("pattern", pattern);
      _params.put("replacement", replacement);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/replaceinbody", _params, headers, Response.class);
  }

  public File replaceInBody(final String envName, final String session, final String path, final String pattern, final String replacement, final Callback callback){
      new Thread(() -> {
              Response response = replaceInBody(envName, session, path, pattern, replacement);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File replaceInBody(final String envName, final String session, final String path, final String pattern, final String replacement, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = replaceInBody(envName, session, path, pattern, replacement);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response replaceInBody(String session, String path, String pattern, String replacement, int nth, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("pattern", pattern);
      _params.put("replacement", replacement);
      _params.put("nth", nth + "");
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/replaceinbody", _params, Response.class);
  }

  public Response replaceInBody(String session, String path, String pattern, String replacement, int nth, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("pattern", pattern);
      _params.put("replacement", replacement);
      _params.put("nth", nth + "");
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/replaceinbody", _params, headers, Response.class);
  }

  public File replaceInBody(final String session, final String path, final String pattern, final String replacement, final int nth, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              Response response = replaceInBody(session, path, pattern, replacement, nth, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File replaceInBody(final String session, final String path, final String pattern, final String replacement, final int nth, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = replaceInBody(session, path, pattern, replacement, nth, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response replaceInBody(String path, String pattern, String replacement, int nth, String nodeType, String nodeGroup, boolean masterOnly, int nodeid){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("pattern", pattern);
      _params.put("replacement", replacement);
      _params.put("nth", nth + "");
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/replaceinbody", _params, Response.class);
  }

  public Response replaceInBody(String path, String pattern, String replacement, int nth, String nodeType, String nodeGroup, boolean masterOnly, int nodeid, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("pattern", pattern);
      _params.put("replacement", replacement);
      _params.put("nth", nth + "");
      _params.put("nodeType", nodeType);
      _params.put("nodeGroup", nodeGroup);
      _params.put("masterOnly", masterOnly + "");
      _params.put("nodeid", nodeid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/replaceinbody", _params, headers, Response.class);
  }

  public File replaceInBody(final String path, final String pattern, final String replacement, final int nth, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Callback callback){
      new Thread(() -> {
              Response response = replaceInBody(path, pattern, replacement, nth, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File replaceInBody(final String path, final String pattern, final String replacement, final int nth, final String nodeType, final String nodeGroup, final boolean masterOnly, final int nodeid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = replaceInBody(path, pattern, replacement, nth, nodeType, nodeGroup, masterOnly, nodeid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response replaceInBody(String session, String path, String pattern, String replacement){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("pattern", pattern);
      _params.put("replacement", replacement);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/replaceinbody", _params, Response.class);
  }

  public Response replaceInBody(String session, String path, String pattern, String replacement, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("pattern", pattern);
      _params.put("replacement", replacement);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/replaceinbody", _params, headers, Response.class);
  }

  public File replaceInBody(final String session, final String path, final String pattern, final String replacement, final Callback callback){
      new Thread(() -> {
              Response response = replaceInBody(session, path, pattern, replacement);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File replaceInBody(final String session, final String path, final String pattern, final String replacement, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = replaceInBody(session, path, pattern, replacement);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response replaceInBody(String path, String pattern, String replacement){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("pattern", pattern);
      _params.put("replacement", replacement);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/replaceinbody", _params, Response.class);
  }

  public Response replaceInBody(String path, String pattern, String replacement, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("path", path);
      _params.put("pattern", pattern);
      _params.put("replacement", replacement);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/replaceinbody", _params, headers, Response.class);
  }

  public File replaceInBody(final String path, final String pattern, final String replacement, final Callback callback){
      new Thread(() -> {
              Response response = replaceInBody(path, pattern, replacement);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File replaceInBody(final String path, final String pattern, final String replacement, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = replaceInBody(path, pattern, replacement);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response replaceInBody(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/replaceinbody", _params, Response.class);
  }

  public Response replaceInBody(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/replaceinbody", _params, headers, Response.class);
  }

  public Response unpackById(String envName, String session, int nodeId, String sourcePath, String destPath){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/unpackbyid", _params, Response.class);
  }

  public Response unpackById(String envName, String session, int nodeId, String sourcePath, String destPath, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/unpackbyid", _params, headers, Response.class);
  }

  public File unpackById(final String envName, final String session, final int nodeId, final String sourcePath, final String destPath, final Callback callback){
      new Thread(() -> {
              Response response = unpackById(envName, session, nodeId, sourcePath, destPath);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File unpackById(final String envName, final String session, final int nodeId, final String sourcePath, final String destPath, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = unpackById(envName, session, nodeId, sourcePath, destPath);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response unpackById(String session, int nodeId, String sourcePath, String destPath){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/unpackbyid", _params, Response.class);
  }

  public Response unpackById(String session, int nodeId, String sourcePath, String destPath, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/unpackbyid", _params, headers, Response.class);
  }

  public File unpackById(final String session, final int nodeId, final String sourcePath, final String destPath, final Callback callback){
      new Thread(() -> {
              Response response = unpackById(session, nodeId, sourcePath, destPath);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File unpackById(final String session, final int nodeId, final String sourcePath, final String destPath, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = unpackById(session, nodeId, sourcePath, destPath);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response unpackById(int nodeId, String sourcePath, String destPath){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/unpackbyid", _params, Response.class);
  }

  public Response unpackById(int nodeId, String sourcePath, String destPath, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/unpackbyid", _params, headers, Response.class);
  }

  public File unpackById(final int nodeId, final String sourcePath, final String destPath, final Callback callback){
      new Thread(() -> {
              Response response = unpackById(nodeId, sourcePath, destPath);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File unpackById(final int nodeId, final String sourcePath, final String destPath, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = unpackById(nodeId, sourcePath, destPath);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response unpackById(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/unpackbyid", _params, Response.class);
  }

  public Response unpackById(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/unpackbyid", _params, headers, Response.class);
  }

  public Response unpackByType(String envName, String session, String nodeType, String sourcePath, String destPath){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeType", nodeType);
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/unpackbytype", _params, Response.class);
  }

  public Response unpackByType(String envName, String session, String nodeType, String sourcePath, String destPath, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeType", nodeType);
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/unpackbytype", _params, headers, Response.class);
  }

  public File unpackByType(final String envName, final String session, final String nodeType, final String sourcePath, final String destPath, final Callback callback){
      new Thread(() -> {
              Response response = unpackByType(envName, session, nodeType, sourcePath, destPath);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File unpackByType(final String envName, final String session, final String nodeType, final String sourcePath, final String destPath, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = unpackByType(envName, session, nodeType, sourcePath, destPath);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response unpackByType(String session, String nodeType, String sourcePath, String destPath){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeType", nodeType);
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/unpackbytype", _params, Response.class);
  }

  public Response unpackByType(String session, String nodeType, String sourcePath, String destPath, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeType", nodeType);
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/unpackbytype", _params, headers, Response.class);
  }

  public File unpackByType(final String session, final String nodeType, final String sourcePath, final String destPath, final Callback callback){
      new Thread(() -> {
              Response response = unpackByType(session, nodeType, sourcePath, destPath);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File unpackByType(final String session, final String nodeType, final String sourcePath, final String destPath, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = unpackByType(session, nodeType, sourcePath, destPath);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response unpackByType(String nodeType, String sourcePath, String destPath){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeType", nodeType);
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/unpackbytype", _params, Response.class);
  }

  public Response unpackByType(String nodeType, String sourcePath, String destPath, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeType", nodeType);
      _params.put("sourcePath", sourcePath);
      _params.put("destPath", destPath);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/unpackbytype", _params, headers, Response.class);
  }

  public File unpackByType(final String nodeType, final String sourcePath, final String destPath, final Callback callback){
      new Thread(() -> {
              Response response = unpackByType(nodeType, sourcePath, destPath);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File unpackByType(final String nodeType, final String sourcePath, final String destPath, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = unpackByType(nodeType, sourcePath, destPath);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response unpackByType(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/unpackbytype", _params, Response.class);
  }

  public Response unpackByType(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/unpackbytype", _params, headers, Response.class);
  }

  public Response addMountPointById(String envName, String session, int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly, String sourceAddressType){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("sourceAddressType", sourceAddressType);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, Response.class);
  }

  public Response addMountPointById(String envName, String session, int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly, String sourceAddressType, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("sourceAddressType", sourceAddressType);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, headers, Response.class);
  }

  public File addMountPointById(final String envName, final String session, final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final String sourceAddressType, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(envName, session, nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly, sourceAddressType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointById(final String envName, final String session, final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final String sourceAddressType, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(envName, session, nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly, sourceAddressType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointById(String envName, String session, int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, Response.class);
  }

  public Response addMountPointById(String envName, String session, int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, headers, Response.class);
  }

  public File addMountPointById(final String envName, final String session, final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(envName, session, nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointById(final String envName, final String session, final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(envName, session, nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointById(String envName, String session, int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, Response.class);
  }

  public Response addMountPointById(String envName, String session, int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, headers, Response.class);
  }

  public File addMountPointById(final String envName, final String session, final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(envName, session, nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointById(final String envName, final String session, final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(envName, session, nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointById(String envName, String session, int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, Response.class);
  }

  public Response addMountPointById(String envName, String session, int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, headers, Response.class);
  }

  public File addMountPointById(final String envName, final String session, final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(envName, session, nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointById(final String envName, final String session, final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(envName, session, nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointById(String envName, String session, int nodeId, String path, String protocol){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, Response.class);
  }

  public Response addMountPointById(String envName, String session, int nodeId, String path, String protocol, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, headers, Response.class);
  }

  public File addMountPointById(final String envName, final String session, final int nodeId, final String path, final String protocol, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(envName, session, nodeId, path, protocol);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointById(final String envName, final String session, final int nodeId, final String path, final String protocol, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(envName, session, nodeId, path, protocol);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointById(String envName, String session, int nodeId, String path){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, Response.class);
  }

  public Response addMountPointById(String envName, String session, int nodeId, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, headers, Response.class);
  }

  public File addMountPointById(final String envName, final String session, final int nodeId, final String path, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(envName, session, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointById(final String envName, final String session, final int nodeId, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(envName, session, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointById(String session, int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly, String sourceAddressType){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("sourceAddressType", sourceAddressType);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, Response.class);
  }

  public Response addMountPointById(String session, int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly, String sourceAddressType, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("sourceAddressType", sourceAddressType);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, headers, Response.class);
  }

  public File addMountPointById(final String session, final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final String sourceAddressType, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(session, nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly, sourceAddressType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointById(final String session, final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final String sourceAddressType, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(session, nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly, sourceAddressType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointById(int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly, String sourceAddressType){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("sourceAddressType", sourceAddressType);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, Response.class);
  }

  public Response addMountPointById(int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly, String sourceAddressType, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("sourceAddressType", sourceAddressType);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, headers, Response.class);
  }

  public File addMountPointById(final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final String sourceAddressType, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly, sourceAddressType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointById(final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final String sourceAddressType, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly, sourceAddressType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointById(String session, int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, Response.class);
  }

  public Response addMountPointById(String session, int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, headers, Response.class);
  }

  public File addMountPointById(final String session, final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(session, nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointById(final String session, final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(session, nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointById(int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, Response.class);
  }

  public Response addMountPointById(int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, headers, Response.class);
  }

  public File addMountPointById(final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointById(final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointById(String session, int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, Response.class);
  }

  public Response addMountPointById(String session, int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, headers, Response.class);
  }

  public File addMountPointById(final String session, final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(session, nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointById(final String session, final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(session, nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointById(int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, Response.class);
  }

  public Response addMountPointById(int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, headers, Response.class);
  }

  public File addMountPointById(final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointById(final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointById(String session, int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, Response.class);
  }

  public Response addMountPointById(String session, int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, headers, Response.class);
  }

  public File addMountPointById(final String session, final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(session, nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointById(final String session, final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(session, nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointById(int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, Response.class);
  }

  public Response addMountPointById(int nodeId, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, headers, Response.class);
  }

  public File addMountPointById(final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointById(final int nodeId, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(nodeId, path, protocol, sourceHost, sourcePath, sourceNodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointById(String session, int nodeId, String path, String protocol){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, Response.class);
  }

  public Response addMountPointById(String session, int nodeId, String path, String protocol, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, headers, Response.class);
  }

  public File addMountPointById(final String session, final int nodeId, final String path, final String protocol, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(session, nodeId, path, protocol);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointById(final String session, final int nodeId, final String path, final String protocol, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(session, nodeId, path, protocol);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointById(int nodeId, String path, String protocol){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, Response.class);
  }

  public Response addMountPointById(int nodeId, String path, String protocol, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, headers, Response.class);
  }

  public File addMountPointById(final int nodeId, final String path, final String protocol, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(nodeId, path, protocol);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointById(final int nodeId, final String path, final String protocol, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(nodeId, path, protocol);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointById(String session, int nodeId, String path){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, Response.class);
  }

  public Response addMountPointById(String session, int nodeId, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, headers, Response.class);
  }

  public File addMountPointById(final String session, final int nodeId, final String path, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(session, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointById(final String session, final int nodeId, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(session, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointById(int nodeId, String path){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, Response.class);
  }

  public Response addMountPointById(int nodeId, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbyid", _params, headers, Response.class);
  }

  public File addMountPointById(final int nodeId, final String path, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointById(final int nodeId, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointById(nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointById(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/addmountpointbyid", _params, Response.class);
  }

  public Response addMountPointById(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/addmountpointbyid", _params, headers, Response.class);
  }

  public Response addMountPointByGroup(String envName, String session, String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly, String sourceAddressType){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("sourceAddressType", sourceAddressType);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, Response.class);
  }

  public Response addMountPointByGroup(String envName, String session, String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly, String sourceAddressType, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("sourceAddressType", sourceAddressType);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, headers, Response.class);
  }

  public File addMountPointByGroup(final String envName, final String session, final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final String sourceAddressType, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(envName, session, nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly, sourceAddressType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointByGroup(final String envName, final String session, final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final String sourceAddressType, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(envName, session, nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly, sourceAddressType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointByGroup(String envName, String session, String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, Response.class);
  }

  public Response addMountPointByGroup(String envName, String session, String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, headers, Response.class);
  }

  public File addMountPointByGroup(final String envName, final String session, final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(envName, session, nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointByGroup(final String envName, final String session, final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(envName, session, nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointByGroup(String envName, String session, String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, Response.class);
  }

  public Response addMountPointByGroup(String envName, String session, String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, headers, Response.class);
  }

  public File addMountPointByGroup(final String envName, final String session, final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(envName, session, nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointByGroup(final String envName, final String session, final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(envName, session, nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointByGroup(String envName, String session, String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, Response.class);
  }

  public Response addMountPointByGroup(String envName, String session, String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, headers, Response.class);
  }

  public File addMountPointByGroup(final String envName, final String session, final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(envName, session, nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointByGroup(final String envName, final String session, final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(envName, session, nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointByGroup(String envName, String session, String nodeGroup, String path, String protocol){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, Response.class);
  }

  public Response addMountPointByGroup(String envName, String session, String nodeGroup, String path, String protocol, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, headers, Response.class);
  }

  public File addMountPointByGroup(final String envName, final String session, final String nodeGroup, final String path, final String protocol, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(envName, session, nodeGroup, path, protocol);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointByGroup(final String envName, final String session, final String nodeGroup, final String path, final String protocol, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(envName, session, nodeGroup, path, protocol);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointByGroup(String envName, String session, String nodeGroup, String path){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, Response.class);
  }

  public Response addMountPointByGroup(String envName, String session, String nodeGroup, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, headers, Response.class);
  }

  public File addMountPointByGroup(final String envName, final String session, final String nodeGroup, final String path, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(envName, session, nodeGroup, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointByGroup(final String envName, final String session, final String nodeGroup, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(envName, session, nodeGroup, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointByGroup(String session, String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly, String sourceAddressType){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("sourceAddressType", sourceAddressType);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, Response.class);
  }

  public Response addMountPointByGroup(String session, String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly, String sourceAddressType, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("sourceAddressType", sourceAddressType);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, headers, Response.class);
  }

  public File addMountPointByGroup(final String session, final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final String sourceAddressType, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(session, nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly, sourceAddressType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointByGroup(final String session, final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final String sourceAddressType, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(session, nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly, sourceAddressType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointByGroup(String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly, String sourceAddressType){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("sourceAddressType", sourceAddressType);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, Response.class);
  }

  public Response addMountPointByGroup(String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly, String sourceAddressType, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("sourceAddressType", sourceAddressType);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, headers, Response.class);
  }

  public File addMountPointByGroup(final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final String sourceAddressType, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly, sourceAddressType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointByGroup(final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final String sourceAddressType, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly, sourceAddressType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointByGroup(String session, String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, Response.class);
  }

  public Response addMountPointByGroup(String session, String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, headers, Response.class);
  }

  public File addMountPointByGroup(final String session, final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(session, nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointByGroup(final String session, final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(session, nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointByGroup(String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, Response.class);
  }

  public Response addMountPointByGroup(String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, boolean readOnly, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("readOnly", readOnly + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, headers, Response.class);
  }

  public File addMountPointByGroup(final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointByGroup(final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final boolean readOnly, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId, name, readOnly);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointByGroup(String session, String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, Response.class);
  }

  public Response addMountPointByGroup(String session, String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, headers, Response.class);
  }

  public File addMountPointByGroup(final String session, final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(session, nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointByGroup(final String session, final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(session, nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointByGroup(String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, Response.class);
  }

  public Response addMountPointByGroup(String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, String name, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, headers, Response.class);
  }

  public File addMountPointByGroup(final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointByGroup(final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final String name, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointByGroup(String session, String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, Response.class);
  }

  public Response addMountPointByGroup(String session, String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, headers, Response.class);
  }

  public File addMountPointByGroup(final String session, final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(session, nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointByGroup(final String session, final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(session, nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointByGroup(String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, Response.class);
  }

  public Response addMountPointByGroup(String nodeGroup, String path, String protocol, String sourceHost, String sourcePath, int sourceNodeId, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("sourceHost", sourceHost);
      _params.put("sourcePath", sourcePath);
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, headers, Response.class);
  }

  public File addMountPointByGroup(final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointByGroup(final String nodeGroup, final String path, final String protocol, final String sourceHost, final String sourcePath, final int sourceNodeId, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(nodeGroup, path, protocol, sourceHost, sourcePath, sourceNodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointByGroup(String nodeGroup, String path, String protocol){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, Response.class);
  }

  public Response addMountPointByGroup(String nodeGroup, String path, String protocol, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("protocol", protocol);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, headers, Response.class);
  }

  public File addMountPointByGroup(final String nodeGroup, final String path, final String protocol, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(nodeGroup, path, protocol);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointByGroup(final String nodeGroup, final String path, final String protocol, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(nodeGroup, path, protocol);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointByGroup(String nodeGroup, String path){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, Response.class);
  }

  public Response addMountPointByGroup(String nodeGroup, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/addmountpointbygroup", _params, headers, Response.class);
  }

  public File addMountPointByGroup(final String nodeGroup, final String path, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(nodeGroup, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File addMountPointByGroup(final String nodeGroup, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = addMountPointByGroup(nodeGroup, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response addMountPointByGroup(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/addmountpointbygroup", _params, Response.class);
  }

  public Response addMountPointByGroup(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/addmountpointbygroup", _params, headers, Response.class);
  }

  public Response removeMountPointById(String envName, String session, int nodeId, String path){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removemountpointbyid", _params, Response.class);
  }

  public Response removeMountPointById(String envName, String session, int nodeId, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removemountpointbyid", _params, headers, Response.class);
  }

  public File removeMountPointById(final String envName, final String session, final int nodeId, final String path, final Callback callback){
      new Thread(() -> {
              Response response = removeMountPointById(envName, session, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File removeMountPointById(final String envName, final String session, final int nodeId, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = removeMountPointById(envName, session, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response removeMountPointById(String session, int nodeId, String path){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removemountpointbyid", _params, Response.class);
  }

  public Response removeMountPointById(String session, int nodeId, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removemountpointbyid", _params, headers, Response.class);
  }

  public File removeMountPointById(final String session, final int nodeId, final String path, final Callback callback){
      new Thread(() -> {
              Response response = removeMountPointById(session, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File removeMountPointById(final String session, final int nodeId, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = removeMountPointById(session, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response removeMountPointById(int nodeId, String path){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removemountpointbyid", _params, Response.class);
  }

  public Response removeMountPointById(int nodeId, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removemountpointbyid", _params, headers, Response.class);
  }

  public File removeMountPointById(final int nodeId, final String path, final Callback callback){
      new Thread(() -> {
              Response response = removeMountPointById(nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File removeMountPointById(final int nodeId, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = removeMountPointById(nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response removeMountPointById(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/removemountpointbyid", _params, Response.class);
  }

  public Response removeMountPointById(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/removemountpointbyid", _params, headers, Response.class);
  }

  public Response removeMountPointByGroup(String envName, String session, String nodeGroup, String path){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removemountpointbygroup", _params, Response.class);
  }

  public Response removeMountPointByGroup(String envName, String session, String nodeGroup, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removemountpointbygroup", _params, headers, Response.class);
  }

  public File removeMountPointByGroup(final String envName, final String session, final String nodeGroup, final String path, final Callback callback){
      new Thread(() -> {
              Response response = removeMountPointByGroup(envName, session, nodeGroup, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File removeMountPointByGroup(final String envName, final String session, final String nodeGroup, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = removeMountPointByGroup(envName, session, nodeGroup, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response removeMountPointByGroup(String session, String nodeGroup, String path){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removemountpointbygroup", _params, Response.class);
  }

  public Response removeMountPointByGroup(String session, String nodeGroup, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removemountpointbygroup", _params, headers, Response.class);
  }

  public File removeMountPointByGroup(final String session, final String nodeGroup, final String path, final Callback callback){
      new Thread(() -> {
              Response response = removeMountPointByGroup(session, nodeGroup, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File removeMountPointByGroup(final String session, final String nodeGroup, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = removeMountPointByGroup(session, nodeGroup, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response removeMountPointByGroup(String nodeGroup, String path){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removemountpointbygroup", _params, Response.class);
  }

  public Response removeMountPointByGroup(String nodeGroup, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeGroup", nodeGroup);
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removemountpointbygroup", _params, headers, Response.class);
  }

  public File removeMountPointByGroup(final String nodeGroup, final String path, final Callback callback){
      new Thread(() -> {
              Response response = removeMountPointByGroup(nodeGroup, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File removeMountPointByGroup(final String nodeGroup, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = removeMountPointByGroup(nodeGroup, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response removeMountPointByGroup(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/removemountpointbygroup", _params, Response.class);
  }

  public Response removeMountPointByGroup(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/removemountpointbygroup", _params, headers, Response.class);
  }

  public ArrayResponse getExportedList(String envName, String session, int nodeId, String path){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (ArrayResponse) _call(appid, serviceUrl + "rest/getexportedlist", _params, ArrayResponse.class);
  }

  public ArrayResponse getExportedList(String envName, String session, int nodeId, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (ArrayResponse) _call(appid, serviceUrl + "rest/getexportedlist", _params, headers, ArrayResponse.class);
  }

  public File getExportedList(final String envName, final String session, final int nodeId, final String path, final Callback callback){
      new Thread(() -> {
              ArrayResponse response = getExportedList(envName, session, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File getExportedList(final String envName, final String session, final int nodeId, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              ArrayResponse response = getExportedList(envName, session, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ArrayResponse getExportedList(String envName, String session, int nodeId){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("client_source", client_source);
      return (ArrayResponse) _call(appid, serviceUrl + "rest/getexportedlist", _params, ArrayResponse.class);
  }

  public ArrayResponse getExportedList(String envName, String session, int nodeId, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("client_source", client_source);
      return (ArrayResponse) _call(appid, serviceUrl + "rest/getexportedlist", _params, headers, ArrayResponse.class);
  }

  public File getExportedList(final String envName, final String session, final int nodeId, final Callback callback){
      new Thread(() -> {
              ArrayResponse response = getExportedList(envName, session, nodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File getExportedList(final String envName, final String session, final int nodeId, final Map headers, final Callback callback){
      new Thread(() -> {
              ArrayResponse response = getExportedList(envName, session, nodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ArrayResponse getExportedList(String session, int nodeId, String path){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (ArrayResponse) _call(appid, serviceUrl + "rest/getexportedlist", _params, ArrayResponse.class);
  }

  public ArrayResponse getExportedList(String session, int nodeId, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (ArrayResponse) _call(appid, serviceUrl + "rest/getexportedlist", _params, headers, ArrayResponse.class);
  }

  public File getExportedList(final String session, final int nodeId, final String path, final Callback callback){
      new Thread(() -> {
              ArrayResponse response = getExportedList(session, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File getExportedList(final String session, final int nodeId, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              ArrayResponse response = getExportedList(session, nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ArrayResponse getExportedList(int nodeId, String path){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (ArrayResponse) _call(appid, serviceUrl + "rest/getexportedlist", _params, ArrayResponse.class);
  }

  public ArrayResponse getExportedList(int nodeId, String path, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("client_source", client_source);
      return (ArrayResponse) _call(appid, serviceUrl + "rest/getexportedlist", _params, headers, ArrayResponse.class);
  }

  public File getExportedList(final int nodeId, final String path, final Callback callback){
      new Thread(() -> {
              ArrayResponse response = getExportedList(nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File getExportedList(final int nodeId, final String path, final Map headers, final Callback callback){
      new Thread(() -> {
              ArrayResponse response = getExportedList(nodeId, path);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ArrayResponse getExportedList(String session, int nodeId){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("client_source", client_source);
      return (ArrayResponse) _call(appid, serviceUrl + "rest/getexportedlist", _params, ArrayResponse.class);
  }

  public ArrayResponse getExportedList(String session, int nodeId, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("client_source", client_source);
      return (ArrayResponse) _call(appid, serviceUrl + "rest/getexportedlist", _params, headers, ArrayResponse.class);
  }

  public File getExportedList(final String session, final int nodeId, final Callback callback){
      new Thread(() -> {
              ArrayResponse response = getExportedList(session, nodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File getExportedList(final String session, final int nodeId, final Map headers, final Callback callback){
      new Thread(() -> {
              ArrayResponse response = getExportedList(session, nodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ArrayResponse getExportedList(int nodeId){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("client_source", client_source);
      return (ArrayResponse) _call(appid, serviceUrl + "rest/getexportedlist", _params, ArrayResponse.class);
  }

  public ArrayResponse getExportedList(int nodeId, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("client_source", client_source);
      return (ArrayResponse) _call(appid, serviceUrl + "rest/getexportedlist", _params, headers, ArrayResponse.class);
  }

  public File getExportedList(final int nodeId, final Callback callback){
      new Thread(() -> {
              ArrayResponse response = getExportedList(nodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File getExportedList(final int nodeId, final Map headers, final Callback callback){
      new Thread(() -> {
              ArrayResponse response = getExportedList(nodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ArrayResponse getExportedList(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/getexportedlist", _params, ArrayResponse.class);
  }

  public ArrayResponse getExportedList(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/getexportedlist", _params, headers, ArrayResponse.class);
  }

  public ArrayResponse getMountPoints(String envName, String session, int nodeId, String nodeGroup){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("nodeGroup", nodeGroup);
      _params.put("client_source", client_source);
      return (ArrayResponse) _call(appid, serviceUrl + "rest/getmountpoints", _params, ArrayResponse.class);
  }

  public ArrayResponse getMountPoints(String envName, String session, int nodeId, String nodeGroup, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("nodeGroup", nodeGroup);
      _params.put("client_source", client_source);
      return (ArrayResponse) _call(appid, serviceUrl + "rest/getmountpoints", _params, headers, ArrayResponse.class);
  }

  public File getMountPoints(final String envName, final String session, final int nodeId, final String nodeGroup, final Callback callback){
      new Thread(() -> {
              ArrayResponse response = getMountPoints(envName, session, nodeId, nodeGroup);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File getMountPoints(final String envName, final String session, final int nodeId, final String nodeGroup, final Map headers, final Callback callback){
      new Thread(() -> {
              ArrayResponse response = getMountPoints(envName, session, nodeId, nodeGroup);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ArrayResponse getMountPoints(String session, int nodeId, String nodeGroup){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("nodeGroup", nodeGroup);
      _params.put("client_source", client_source);
      return (ArrayResponse) _call(appid, serviceUrl + "rest/getmountpoints", _params, ArrayResponse.class);
  }

  public ArrayResponse getMountPoints(String session, int nodeId, String nodeGroup, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("nodeGroup", nodeGroup);
      _params.put("client_source", client_source);
      return (ArrayResponse) _call(appid, serviceUrl + "rest/getmountpoints", _params, headers, ArrayResponse.class);
  }

  public File getMountPoints(final String session, final int nodeId, final String nodeGroup, final Callback callback){
      new Thread(() -> {
              ArrayResponse response = getMountPoints(session, nodeId, nodeGroup);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File getMountPoints(final String session, final int nodeId, final String nodeGroup, final Map headers, final Callback callback){
      new Thread(() -> {
              ArrayResponse response = getMountPoints(session, nodeId, nodeGroup);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ArrayResponse getMountPoints(int nodeId, String nodeGroup){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("nodeGroup", nodeGroup);
      _params.put("client_source", client_source);
      return (ArrayResponse) _call(appid, serviceUrl + "rest/getmountpoints", _params, ArrayResponse.class);
  }

  public ArrayResponse getMountPoints(int nodeId, String nodeGroup, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("nodeGroup", nodeGroup);
      _params.put("client_source", client_source);
      return (ArrayResponse) _call(appid, serviceUrl + "rest/getmountpoints", _params, headers, ArrayResponse.class);
  }

  public File getMountPoints(final int nodeId, final String nodeGroup, final Callback callback){
      new Thread(() -> {
              ArrayResponse response = getMountPoints(nodeId, nodeGroup);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File getMountPoints(final int nodeId, final String nodeGroup, final Map headers, final Callback callback){
      new Thread(() -> {
              ArrayResponse response = getMountPoints(nodeId, nodeGroup);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ArrayResponse getMountPoints(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/getmountpoints", _params, ArrayResponse.class);
  }

  public ArrayResponse getMountPoints(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/getmountpoints", _params, headers, ArrayResponse.class);
  }

  public Response removeExport(String envName, String session, int nodeId, String path, int clientNodeId, String clientPath){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("clientNodeId", clientNodeId + "");
      _params.put("clientPath", clientPath);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removeexport", _params, Response.class);
  }

  public Response removeExport(String envName, String session, int nodeId, String path, int clientNodeId, String clientPath, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("clientNodeId", clientNodeId + "");
      _params.put("clientPath", clientPath);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removeexport", _params, headers, Response.class);
  }

  public File removeExport(final String envName, final String session, final int nodeId, final String path, final int clientNodeId, final String clientPath, final Callback callback){
      new Thread(() -> {
              Response response = removeExport(envName, session, nodeId, path, clientNodeId, clientPath);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File removeExport(final String envName, final String session, final int nodeId, final String path, final int clientNodeId, final String clientPath, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = removeExport(envName, session, nodeId, path, clientNodeId, clientPath);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response removeExport(String session, int nodeId, String path, int clientNodeId, String clientPath){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("clientNodeId", clientNodeId + "");
      _params.put("clientPath", clientPath);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removeexport", _params, Response.class);
  }

  public Response removeExport(String session, int nodeId, String path, int clientNodeId, String clientPath, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("clientNodeId", clientNodeId + "");
      _params.put("clientPath", clientPath);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removeexport", _params, headers, Response.class);
  }

  public File removeExport(final String session, final int nodeId, final String path, final int clientNodeId, final String clientPath, final Callback callback){
      new Thread(() -> {
              Response response = removeExport(session, nodeId, path, clientNodeId, clientPath);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File removeExport(final String session, final int nodeId, final String path, final int clientNodeId, final String clientPath, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = removeExport(session, nodeId, path, clientNodeId, clientPath);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response removeExport(int nodeId, String path, int clientNodeId, String clientPath){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("clientNodeId", clientNodeId + "");
      _params.put("clientPath", clientPath);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removeexport", _params, Response.class);
  }

  public Response removeExport(int nodeId, String path, int clientNodeId, String clientPath, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("path", path);
      _params.put("clientNodeId", clientNodeId + "");
      _params.put("clientPath", clientPath);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/removeexport", _params, headers, Response.class);
  }

  public File removeExport(final int nodeId, final String path, final int clientNodeId, final String clientPath, final Callback callback){
      new Thread(() -> {
              Response response = removeExport(nodeId, path, clientNodeId, clientPath);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File removeExport(final int nodeId, final String path, final int clientNodeId, final String clientPath, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = removeExport(nodeId, path, clientNodeId, clientPath);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response removeExport(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/removeexport", _params, Response.class);
  }

  public Response removeExport(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/removeexport", _params, headers, Response.class);
  }

  public ObjectResponse checkCrossMount(String envName, String session, int nodeId, int sourceNodeId){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("client_source", client_source);
      return (ObjectResponse) _call(appid, serviceUrl + "rest/checkcrossmount", _params, ObjectResponse.class);
  }

  public ObjectResponse checkCrossMount(String envName, String session, int nodeId, int sourceNodeId, Map headers){
      Map _params = new HashMap();
      _params.put("envName", envName);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("client_source", client_source);
      return (ObjectResponse) _call(appid, serviceUrl + "rest/checkcrossmount", _params, headers, ObjectResponse.class);
  }

  public File checkCrossMount(final String envName, final String session, final int nodeId, final int sourceNodeId, final Callback callback){
      new Thread(() -> {
              ObjectResponse response = checkCrossMount(envName, session, nodeId, sourceNodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File checkCrossMount(final String envName, final String session, final int nodeId, final int sourceNodeId, final Map headers, final Callback callback){
      new Thread(() -> {
              ObjectResponse response = checkCrossMount(envName, session, nodeId, sourceNodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ObjectResponse checkCrossMount(String session, int nodeId, int sourceNodeId){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("client_source", client_source);
      return (ObjectResponse) _call(appid, serviceUrl + "rest/checkcrossmount", _params, ObjectResponse.class);
  }

  public ObjectResponse checkCrossMount(String session, int nodeId, int sourceNodeId, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("client_source", client_source);
      return (ObjectResponse) _call(appid, serviceUrl + "rest/checkcrossmount", _params, headers, ObjectResponse.class);
  }

  public File checkCrossMount(final String session, final int nodeId, final int sourceNodeId, final Callback callback){
      new Thread(() -> {
              ObjectResponse response = checkCrossMount(session, nodeId, sourceNodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File checkCrossMount(final String session, final int nodeId, final int sourceNodeId, final Map headers, final Callback callback){
      new Thread(() -> {
              ObjectResponse response = checkCrossMount(session, nodeId, sourceNodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ObjectResponse checkCrossMount(int nodeId, int sourceNodeId){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("client_source", client_source);
      return (ObjectResponse) _call(appid, serviceUrl + "rest/checkcrossmount", _params, ObjectResponse.class);
  }

  public ObjectResponse checkCrossMount(int nodeId, int sourceNodeId, Map headers){
      Map _params = new HashMap();
      _params.put("envName", appid);
      _params.put("session", session);
      _params.put("nodeId", nodeId + "");
      _params.put("sourceNodeId", sourceNodeId + "");
      _params.put("client_source", client_source);
      return (ObjectResponse) _call(appid, serviceUrl + "rest/checkcrossmount", _params, headers, ObjectResponse.class);
  }

  public File checkCrossMount(final int nodeId, final int sourceNodeId, final Callback callback){
      new Thread(() -> {
              ObjectResponse response = checkCrossMount(nodeId, sourceNodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public File checkCrossMount(final int nodeId, final int sourceNodeId, final Map headers, final Callback callback){
      new Thread(() -> {
              ObjectResponse response = checkCrossMount(nodeId, sourceNodeId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ObjectResponse checkCrossMount(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/checkcrossmount", _params, ObjectResponse.class);
  }

  public ObjectResponse checkCrossMount(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/checkcrossmount", _params, headers, ObjectResponse.class);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy