<BUG>return callApi(HttpMethod.POST, Arrays.asList("resources", resourceType, type, public_id),params, options);}</BUG><CONTEXT>String resourceType = ObjectUtils.asString(options.get("resource_type"), "image");String type = ObjectUtils.asString(options.get("type"), "upload");Map params = new HashMap<String, Object>();Util.processWriteParameters(options, params);params.put("moderation_status", options.get("moderation_status"));<extra_id_0>public ApiResponse deleteResources(Iterable<String> publicIds, Map options) throws Exception {</CONTEXT>
String type = ObjectUtils.asString(options.get("type"));List<String> uri = new ArrayList<String>();uri.add("resources");uri.add(resourceType);if (type != null)uri.add(type);ApiResponse response = callApi(HttpMethod.GET, uri, ObjectUtils.only(options, "next_cursor", "direction", "max_results", "prefix", "tags", "context", "moderations", "start_at"), options);addAccessModeToResponse(response,"public");return response;}public ApiResponse resourcesByTag(String tag, Map options) throws Exception {