com.jelastic.api.environment.Export Maven / Gradle / Ivy
The newest version!
package com.jelastic.api.environment;
import java.util.Map;
import java.util.HashMap;
import java.util.List;
import com.jelastic.api.AbstractService;
import com.jelastic.api.Callback;
import com.jelastic.api.client.annotation.JelasticModuleName;
import com.jelastic.api.core.utils.Transport;
import com.jelastic.api.Response;
import com.jelastic.api.response.ScriptEvalProxyResponse;
/**
* @name Jelastic API Client
* @version 8.11.2
* @copyright Jelastic, Inc.
**/
@JelasticModuleName(name="jelastic")
public class Export extends AbstractService {
public static String SERVICE_PATH = "environment/export/";
private String serviceUrl = SERVER_URL + SERVICE_PATH;
private String appid = null;
private String session = null;
private String client_source = null;
public Export(){}
public Export(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 Export(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 Export(String appid, String session){
this(appid, session, null);
}
public Export(String appid){
this(appid, null, null);
}
public String getAppid(){
return appid;
}
public Export setAppid(String appid){
this.appid = appid;
return this;
}
public String getSession(){
return session;
}
public Export setSession(String session){
this.session = session;
return this;
}
public String getServiceUrl(){
return serviceUrl;
}
public Export setServiceUrl(String serviceUrl){
this.serviceUrl = serviceUrl;
return this;
}
public String getServerUrl(){
return serviceUrl;
}
public Export setServerUrl(String serverUrl){
this.serviceUrl = serverUrl + SERVICE_PATH;
return this;
}
public Export setClientSource(String client_source){
this.client_source = client_source;
return this;
}
public String getClientSource(){
return client_source ;
}
public Response create(String appid, String session, String settings){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("settings", settings);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/create", _params, Response.class);
}
public Response create(String appid, String session, String settings, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("settings", settings);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/create", _params, headers, Response.class);
}
public Export create(final String appid, final String session, final String settings, final Callback callback){
new Thread(() -> {
Response response = create(appid, session, settings);
callback.fire(response);
}, "callback").start();
return this;
}
public Export create(final String appid, final String session, final String settings, final Map headers, final Callback callback){
new Thread(() -> {
Response response = create(appid, session, settings);
callback.fire(response);
}, "callback").start();
return this;
}
public Response create(String session, String settings){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("settings", settings);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/create", _params, Response.class);
}
public Response create(String session, String settings, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("settings", settings);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/create", _params, headers, Response.class);
}
public Export create(final String session, final String settings, final Callback callback){
new Thread(() -> {
Response response = create(session, settings);
callback.fire(response);
}, "callback").start();
return this;
}
public Export create(final String session, final String settings, final Map headers, final Callback callback){
new Thread(() -> {
Response response = create(session, settings);
callback.fire(response);
}, "callback").start();
return this;
}
public Response create(String settings){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("settings", settings);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/create", _params, Response.class);
}
public Response create(String settings, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("settings", settings);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/create", _params, headers, Response.class);
}
public Export create(final String settings, final Callback callback){
new Thread(() -> {
Response response = create(settings);
callback.fire(response);
}, "callback").start();
return this;
}
public Export create(final String settings, final Map headers, final Callback callback){
new Thread(() -> {
Response response = create(settings);
callback.fire(response);
}, "callback").start();
return this;
}
public Response 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 (Response) _call(appid, serviceUrl + "rest/create", _params, Response.class);
}
public Response 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 (Response) _call(appid, serviceUrl + "rest/create", _params, headers, Response.class);
}
public Response deleteExportedData(String envName, String session, String fileName){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("fileName", fileName);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/deleteexporteddata", _params, Response.class);
}
public Response deleteExportedData(String envName, String session, String fileName, Map headers){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("fileName", fileName);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/deleteexporteddata", _params, headers, Response.class);
}
public Export deleteExportedData(final String envName, final String session, final String fileName, final Callback callback){
new Thread(() -> {
Response response = deleteExportedData(envName, session, fileName);
callback.fire(response);
}, "callback").start();
return this;
}
public Export deleteExportedData(final String envName, final String session, final String fileName, final Map headers, final Callback callback){
new Thread(() -> {
Response response = deleteExportedData(envName, session, fileName);
callback.fire(response);
}, "callback").start();
return this;
}
public Response deleteExportedData(String session, String fileName){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("fileName", fileName);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/deleteexporteddata", _params, Response.class);
}
public Response deleteExportedData(String session, String fileName, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("fileName", fileName);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/deleteexporteddata", _params, headers, Response.class);
}
public Export deleteExportedData(final String session, final String fileName, final Callback callback){
new Thread(() -> {
Response response = deleteExportedData(session, fileName);
callback.fire(response);
}, "callback").start();
return this;
}
public Export deleteExportedData(final String session, final String fileName, final Map headers, final Callback callback){
new Thread(() -> {
Response response = deleteExportedData(session, fileName);
callback.fire(response);
}, "callback").start();
return this;
}
public Response deleteExportedData(String fileName){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("fileName", fileName);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/deleteexporteddata", _params, Response.class);
}
public Response deleteExportedData(String fileName, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("fileName", fileName);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/deleteexporteddata", _params, headers, Response.class);
}
public Export deleteExportedData(final String fileName, final Callback callback){
new Thread(() -> {
Response response = deleteExportedData(fileName);
callback.fire(response);
}, "callback").start();
return this;
}
public Export deleteExportedData(final String fileName, final Map headers, final Callback callback){
new Thread(() -> {
Response response = deleteExportedData(fileName);
callback.fire(response);
}, "callback").start();
return this;
}
public Response deleteExportedData(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/deleteexporteddata", _params, Response.class);
}
public Response deleteExportedData(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/deleteexporteddata", _params, headers, Response.class);
}
public ScriptEvalProxyResponse getList(String envName, String session){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("client_source", client_source);
return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/getlist", _params, ScriptEvalProxyResponse.class);
}
public ScriptEvalProxyResponse getList(String envName, String session, Map headers){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("client_source", client_source);
return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/getlist", _params, headers, ScriptEvalProxyResponse.class);
}
public Export getList(final String envName, final String session, final Callback callback){
new Thread(() -> {
ScriptEvalProxyResponse response = getList(envName, session);
callback.fire(response);
}, "callback").start();
return this;
}
public Export getList(final String envName, final String session, final Map headers, final Callback callback){
new Thread(() -> {
ScriptEvalProxyResponse response = getList(envName, session);
callback.fire(response);
}, "callback").start();
return this;
}
public ScriptEvalProxyResponse getList(String session){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/getlist", _params, ScriptEvalProxyResponse.class);
}
public ScriptEvalProxyResponse getList(String session, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/getlist", _params, headers, ScriptEvalProxyResponse.class);
}
public Export getList(final String session, final Callback callback){
new Thread(() -> {
ScriptEvalProxyResponse response = getList(session);
callback.fire(response);
}, "callback").start();
return this;
}
public Export getList(final String session, final Map headers, final Callback callback){
new Thread(() -> {
ScriptEvalProxyResponse response = getList(session);
callback.fire(response);
}, "callback").start();
return this;
}
public ScriptEvalProxyResponse getList(){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/getlist", _params, ScriptEvalProxyResponse.class);
}
public Export getList(final Callback callback){
new Thread(() -> {
ScriptEvalProxyResponse response = getList();
callback.fire(response);
}, "callback").start();
return this;
}
public ScriptEvalProxyResponse 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 (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/getlist", _params, ScriptEvalProxyResponse.class);
}
public ScriptEvalProxyResponse 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 (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/getlist", _params, headers, ScriptEvalProxyResponse.class);
}
public ScriptEvalProxyResponse delete(String envName, String session, String id){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("id", id);
_params.put("client_source", client_source);
return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/delete", _params, ScriptEvalProxyResponse.class);
}
public ScriptEvalProxyResponse delete(String envName, String session, String id, Map headers){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("id", id);
_params.put("client_source", client_source);
return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/delete", _params, headers, ScriptEvalProxyResponse.class);
}
public Export delete(final String envName, final String session, final String id, final Callback callback){
new Thread(() -> {
ScriptEvalProxyResponse response = delete(envName, session, id);
callback.fire(response);
}, "callback").start();
return this;
}
public Export delete(final String envName, final String session, final String id, final Map headers, final Callback callback){
new Thread(() -> {
ScriptEvalProxyResponse response = delete(envName, session, id);
callback.fire(response);
}, "callback").start();
return this;
}
public ScriptEvalProxyResponse delete(String session, String id){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("id", id);
_params.put("client_source", client_source);
return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/delete", _params, ScriptEvalProxyResponse.class);
}
public ScriptEvalProxyResponse delete(String session, String id, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("id", id);
_params.put("client_source", client_source);
return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/delete", _params, headers, ScriptEvalProxyResponse.class);
}
public Export delete(final String session, final String id, final Callback callback){
new Thread(() -> {
ScriptEvalProxyResponse response = delete(session, id);
callback.fire(response);
}, "callback").start();
return this;
}
public Export delete(final String session, final String id, final Map headers, final Callback callback){
new Thread(() -> {
ScriptEvalProxyResponse response = delete(session, id);
callback.fire(response);
}, "callback").start();
return this;
}
public ScriptEvalProxyResponse delete(String id){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("id", id);
_params.put("client_source", client_source);
return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/delete", _params, ScriptEvalProxyResponse.class);
}
public ScriptEvalProxyResponse delete(String id, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("id", id);
_params.put("client_source", client_source);
return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/delete", _params, headers, ScriptEvalProxyResponse.class);
}
public Export delete(final String id, final Callback callback){
new Thread(() -> {
ScriptEvalProxyResponse response = delete(id);
callback.fire(response);
}, "callback").start();
return this;
}
public Export delete(final String id, final Map headers, final Callback callback){
new Thread(() -> {
ScriptEvalProxyResponse response = delete(id);
callback.fire(response);
}, "callback").start();
return this;
}
public ScriptEvalProxyResponse 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 (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/delete", _params, ScriptEvalProxyResponse.class);
}
public ScriptEvalProxyResponse 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 (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/delete", _params, headers, ScriptEvalProxyResponse.class);
}
public ScriptEvalProxyResponse getManifest(String envName, String session, String id){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("id", id);
_params.put("client_source", client_source);
return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/getmanifest", _params, ScriptEvalProxyResponse.class);
}
public ScriptEvalProxyResponse getManifest(String envName, String session, String id, Map headers){
Map _params = new HashMap();
_params.put("envName", envName);
_params.put("session", session);
_params.put("id", id);
_params.put("client_source", client_source);
return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/getmanifest", _params, headers, ScriptEvalProxyResponse.class);
}
public Export getManifest(final String envName, final String session, final String id, final Callback callback){
new Thread(() -> {
ScriptEvalProxyResponse response = getManifest(envName, session, id);
callback.fire(response);
}, "callback").start();
return this;
}
public Export getManifest(final String envName, final String session, final String id, final Map headers, final Callback callback){
new Thread(() -> {
ScriptEvalProxyResponse response = getManifest(envName, session, id);
callback.fire(response);
}, "callback").start();
return this;
}
public ScriptEvalProxyResponse getManifest(String session, String id){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("id", id);
_params.put("client_source", client_source);
return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/getmanifest", _params, ScriptEvalProxyResponse.class);
}
public ScriptEvalProxyResponse getManifest(String session, String id, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("id", id);
_params.put("client_source", client_source);
return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/getmanifest", _params, headers, ScriptEvalProxyResponse.class);
}
public Export getManifest(final String session, final String id, final Callback callback){
new Thread(() -> {
ScriptEvalProxyResponse response = getManifest(session, id);
callback.fire(response);
}, "callback").start();
return this;
}
public Export getManifest(final String session, final String id, final Map headers, final Callback callback){
new Thread(() -> {
ScriptEvalProxyResponse response = getManifest(session, id);
callback.fire(response);
}, "callback").start();
return this;
}
public ScriptEvalProxyResponse getManifest(String id){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("id", id);
_params.put("client_source", client_source);
return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/getmanifest", _params, ScriptEvalProxyResponse.class);
}
public ScriptEvalProxyResponse getManifest(String id, Map headers){
Map _params = new HashMap();
_params.put("envName", appid);
_params.put("session", session);
_params.put("id", id);
_params.put("client_source", client_source);
return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/getmanifest", _params, headers, ScriptEvalProxyResponse.class);
}
public Export getManifest(final String id, final Callback callback){
new Thread(() -> {
ScriptEvalProxyResponse response = getManifest(id);
callback.fire(response);
}, "callback").start();
return this;
}
public Export getManifest(final String id, final Map headers, final Callback callback){
new Thread(() -> {
ScriptEvalProxyResponse response = getManifest(id);
callback.fire(response);
}, "callback").start();
return this;
}
public ScriptEvalProxyResponse getManifest(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 (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/getmanifest", _params, ScriptEvalProxyResponse.class);
}
public ScriptEvalProxyResponse getManifest(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 (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/getmanifest", _params, headers, ScriptEvalProxyResponse.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy