public ConfigurationParametersResponse configurationParameters(String resourceId, String configType) throws Exception { assertNotNull(resourceId,"resourceId"); assertNotNull(configType,"configType"); Map<String, String> params = new HashMap<String, String>(); params.put("resource_id", resourceId); params.put("config_type", configType); String url = getRequestURL("configuration.parameters", params); String response = executeRequest(url); return (ConfigurationParametersResponse) readResponse(response); }
public ConfigurationParametersDeleteResponse configurationParametersDelete(String resourceId, String configType) throws Exception { assertNotNull(resourceId,"resourceId"); assertNotNull(configType,"configType"); Map<String, String> params = new HashMap<String, String>(); params.put("resource_id", resourceId); params.put("config_type", configType); String url = getRequestURL("configuration.parameters.delete", params); String response = executeRequest(url); return (ConfigurationParametersDeleteResponse) readResponse(response); }
public ConfigurationParametersResponse configurationParameters(String resourceId, String configType) throws Exception { assertNotNull(resourceId,"resourceId"); assertNotNull(configType,"configType"); Map<String, String> params = new HashMap<String, String>(); params.put("resource_id", resourceId); params.put("config_type", configType); String url = getRequestURL("configuration.parameters", params); String response = executeRequest(url); return (ConfigurationParametersResponse) readResponse(response); }
public ConfigurationParametersDeleteResponse configurationParametersDelete(String resourceId, String configType) throws Exception { assertNotNull(resourceId,"resourceId"); assertNotNull(configType,"configType"); Map<String, String> params = new HashMap<String, String>(); params.put("resource_id", resourceId); params.put("config_type", configType); String url = getRequestURL("configuration.parameters.delete", params); String response = executeRequest(url); return (ConfigurationParametersDeleteResponse) readResponse(response); }
public ConfigurationParametersUpdateResponse configurationParametersUpdate(String resourceId, String configType, File resourceFile) throws Exception { assertNotNull(resourceId,"resourceId"); assertNotNull(configType,"configType"); assertNotNull(resourceFile,"resourceFile"); Map<String, String> params = new HashMap<String, String>(); Map<String, File> fileParams = new HashMap<String, File>(); params.put("resource_id", resourceId); params.put("config_type", configType); fileParams.put("resources", resourceFile); String url = getApiUrl("configuration.parameters.update").toString(); params.put("action", "configuration.parameters.update"); // use the upload method (POST) to handle the potentially large resource list String response = executeUpload(url, params, fileParams, null); return (ConfigurationParametersUpdateResponse) readResponse(response); }
public ConfigurationParametersUpdateResponse configurationParametersUpdate(String resourceId, String configType, File resourceFile) throws Exception { assertNotNull(resourceId,"resourceId"); assertNotNull(configType,"configType"); assertNotNull(resourceFile,"resourceFile"); Map<String, String> params = new HashMap<String, String>(); Map<String, File> fileParams = new HashMap<String, File>(); params.put("resource_id", resourceId); params.put("config_type", configType); fileParams.put("resources", resourceFile); String url = getApiUrl("configuration.parameters.update").toString(); params.put("action", "configuration.parameters.update"); // use the upload method (POST) to handle the potentially large resource list String response = executeUpload(url, params, fileParams, null); return (ConfigurationParametersUpdateResponse) readResponse(response); }