Skip to content

Commit 03913e9

Browse files
committed
Rename deleteDerivedResourcesByTransformations to 'deleteDerivedByTransformation'
1 parent 7d394c1 commit 03913e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cloudinary-core/src/main/java/com/cloudinary/Api.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public ApiResponse deleteResources(Iterable<String> publicIds, Map options) thro
144144
return callApi(HttpMethod.DELETE, Arrays.asList("resources", resourceType, type), params, options);
145145
}
146146

147-
public ApiResponse deleteDerivedResourcesByTransformations(Iterable<String> publicIds, List<Transformation> transformations, Map options) throws Exception {
147+
public ApiResponse deleteDerivedByTransformation(Iterable<String> publicIds, List<Transformation> transformations, Map options) throws Exception {
148148
if (options == null) options = ObjectUtils.emptyMap();
149149
String resourceType = ObjectUtils.asString(options.get("resource_type"), "image");
150150
String type = ObjectUtils.asString(options.get("type"), "upload");

cloudinary-test-common/src/main/java/com/cloudinary/test/AbstractApiTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public void testDeleteDerivedByTransformation() throws Exception {
293293
assertNotNull(resource);
294294
List derived = ((List) resource.get("derived"));
295295
assertTrue(derived.size() == 2);
296-
api.deleteDerivedResourcesByTransformations(ObjectUtils.asArray(public_id), ObjectUtils.asArray(transformations), ObjectUtils.emptyMap());
296+
api.deleteDerivedByTransformation(ObjectUtils.asArray(public_id), ObjectUtils.asArray(transformations), ObjectUtils.emptyMap());
297297

298298
resource = api.resource(public_id, ObjectUtils.emptyMap());
299299
assertNotNull(resource);

0 commit comments

Comments
 (0)