public ServiceSubscriptionInvokeInfo serviceSubscriptionInvoke(String service, String subscriptionId, String invoke, Map<String, String> parameters) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("service", service); params.put("subscription_id", subscriptionId); params.put("invoke", invoke); params.put("parameters", createParameter(parameters)); ServiceSubscriptionInvokeResponse apiResponse = (ServiceSubscriptionInvokeResponse) apiCall("service.subscription.invoke", parameters, params); return apiResponse.getInvokeInfo(); }
public ServiceResourceInfo serviceResourceCreate(String service, String account, String resourceType, String resourceName, Map<String, String> settings) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("account", account); params.put("service", service); if (resourceType != null) params.put("resource_type", resourceType); params.put("resource_name", resourceName); params.put("settings", createParameter(settings)); ServiceResourceResponse apiResponse = (ServiceResourceResponse) apiCall("service.resource.create", settings, params); return apiResponse.getResource(); }
public ServiceResourceInvokeInfo serviceResourceInvoke(String service, String resourceId, String invoke, Map<String, String> parameters) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("service", service); params.put("resource_id", resourceId); params.put("invoke", invoke); params.put("parameters", createParameter(parameters)); ServiceResourceInvokeResponse apiResponse = (ServiceResourceInvokeResponse) apiCall("service.resource.invoke", parameters, params); return apiResponse.getInvokeInfo(); }
public ServiceResourceInfo serviceResourceUpdate(String service, String resourceId, Map<String, String> settings) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("service", service); params.put("resource_id", resourceId); params.put("settings", createParameter(settings)); ServiceResourceResponse apiResponse = (ServiceResourceResponse) apiCall("service.resource.update", settings, params); return apiResponse.getResource(); }
public ServiceSubscriptionInvokeInfo serviceSubscriptionInvoke(String service, String subscriptionId, String invoke, Map<String, String> parameters) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("service", service); params.put("subscription_id", subscriptionId); params.put("invoke", invoke); params.put("parameters", createParameter(parameters)); ServiceSubscriptionInvokeResponse apiResponse = (ServiceSubscriptionInvokeResponse) apiCall("service.subscription.invoke", parameters, params); return apiResponse.getInvokeInfo(); }
public ServiceResourceInfo serviceResourceUpdate(String service, String resourceId, Map<String, String> settings) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("service", service); params.put("resource_id", resourceId); params.put("settings", createParameter(settings)); ServiceResourceResponse apiResponse = (ServiceResourceResponse) apiCall("service.resource.update", settings, params); return apiResponse.getResource(); }
public ApplicationJarHashesResponse applicationJarHashes(String appId, Map<String, String> hashes) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("app_id", appId); params.put("hashes", createParameter(hashes)); String url = getApiUrl("application.jarHashes").toString(); params.put("action", "application.jarHashes"); // use the upload method (POST) to handle the potentially large "hashes" parameter payload String response = executeUpload(url, params, new HashMap<String, File>(), null); return (ApplicationJarHashesResponse) readResponse(response); }
public ApplicationSnapshotStatusResponse applicationSnapshotUpdate(String snapshotId, Map<String, String> parameters) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("snapshot_id", snapshotId); params.put("parameters", createParameter(parameters)); String url = getRequestURL("application.snapshot.update", params); String response = executeRequest(url); ApplicationSnapshotStatusResponse apiResponse = (ApplicationSnapshotStatusResponse)readResponse(response); return apiResponse; }
public ServerPoolInfo serverPoolCreate(String account, String poolName, Map<String, String> parameters) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("account", account); params.put("pool_name", poolName); params.put("parameters", createParameter(parameters)); String url = getRequestURL("server.pool.create", params); String response = executeRequest(url); ServerPoolInfo apiResponse = (ServerPoolInfo)readResponse(response); return apiResponse; }
public ApplicationInstanceInvokeResponse applicationInstanceInvoke(String instanceId, String invoke, Map<String, String>parameters) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("instance_id", instanceId); params.put("invoke",invoke); params.put("parameters", createParameter(parameters)); String url = getRequestURL("application.instance.invoke", params); String response = executeRequest(url); ApplicationInstanceInvokeResponse apiResponse = (ApplicationInstanceInvokeResponse)readResponse(response); return apiResponse; }
public ServerPoolInfo serverPoolCreate(String account, String poolName, Map<String, String> parameters) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("account", account); params.put("pool_name", poolName); params.put("parameters", createParameter(parameters)); String url = getRequestURL("server.pool.create", params); String response = executeRequest(url); ServerPoolInfo apiResponse = (ServerPoolInfo)readResponse(response); return apiResponse; }
public ApplicationJarHashesResponse applicationJarHashes(String appId, Map<String, String> hashes) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("app_id", appId); params.put("hashes", createParameter(hashes)); String url = getApiUrl("application.jarHashes").toString(); params.put("action", "application.jarHashes"); // use the upload method (POST) to handle the potentially large "hashes" parameter payload String response = executeUpload(url, params, new HashMap<String, File>(), null); return (ApplicationJarHashesResponse) readResponse(response); }
public ApplicationSnapshotStatusResponse applicationSnapshotUpdate(String snapshotId, Map<String, String> parameters) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("snapshot_id", snapshotId); params.put("parameters", createParameter(parameters)); String url = getRequestURL("application.snapshot.update", params); String response = executeRequest(url); ApplicationSnapshotStatusResponse apiResponse = (ApplicationSnapshotStatusResponse)readResponse(response); return apiResponse; }
public ApplicationStatusResponse applicationProxyUpdate(String appId, Map<String, String> parameters) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("app_id", appId); params.put("parameters", createParameter(parameters)); String url = getRequestURL("application.proxy.update", params); String response = executeRequest(url); ApplicationStatusResponse apiResponse = (ApplicationStatusResponse)readResponse(response); return apiResponse; }
public ApplicationCreateResponse applicationCreate(String appId, Map<String, String> parameters) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("app_id", appId); params.put("parameters", createParameter(parameters)); String url = getRequestURL("application.create", params); String response = executeRequest(url); ApplicationCreateResponse apiResponse = (ApplicationCreateResponse)readResponse(response); return apiResponse; }
public ServiceSubscriptionInfo serviceSubscriptionUpdate(String service, String plan, String subscriptionId, Map<String, String> settings) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("subscription_id", subscriptionId); params.put("service", service); if (plan != null) { params.put("plan", plan); } params.put("settings", createParameter(settings)); String url = getRequestURL("service.subscription.update", params); String response = executeRequest(url); return ((ServiceSubscriptionResponse) readResponse(response)).getSubscription(); }
public ApplicationStatusResponse applicationProxyUpdate(String appId, Map<String, String> parameters) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("app_id", appId); params.put("parameters", createParameter(parameters)); String url = getRequestURL("application.proxy.update", params); String response = executeRequest(url); ApplicationStatusResponse apiResponse = (ApplicationStatusResponse)readResponse(response); return apiResponse; }
public ApplicationCreateResponse applicationCreate(String appId, Map<String, String> parameters) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("app_id", appId); params.put("parameters", createParameter(parameters)); String url = getRequestURL("application.create", params); String response = executeRequest(url); ApplicationCreateResponse apiResponse = (ApplicationCreateResponse)readResponse(response); return apiResponse; }
public ServerInfo serverCreate(String poolId, Map<String, String> parameters) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("pool_id", poolId); params.put("parameters", createParameter(parameters)); String url = getRequestURL("server.create", params); String response = executeRequest(url); ServerInfo apiResponse = (ServerInfo)readResponse(response); return apiResponse; }
public ServerInfo serverCreate(String poolId, Map<String, String> parameters) throws Exception { Map<String, String> params = new HashMap<String, String>(); params.put("pool_id", poolId); params.put("parameters", createParameter(parameters)); String url = getRequestURL("server.create", params); String response = executeRequest(url); ServerInfo apiResponse = (ServerInfo)readResponse(response); return apiResponse; }