implement deleteCatalog in clients

This commit is contained in:
danikov 2012-03-06 15:34:31 +00:00
parent b671d043f2
commit 55ecda2e50
2 changed files with 19 additions and 0 deletions

View File

@ -21,6 +21,7 @@ package org.jclouds.vcloud.director.v1_5.features;
import java.net.URI; import java.net.URI;
import javax.ws.rs.Consumes; import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET; import javax.ws.rs.GET;
import javax.ws.rs.PUT; import javax.ws.rs.PUT;
import javax.ws.rs.Path; import javax.ws.rs.Path;
@ -67,6 +68,15 @@ public interface AdminCatalogAsyncClient {
ListenableFuture<AdminCatalog> updateCatalog(@EndpointParam URI catalogRef, ListenableFuture<AdminCatalog> updateCatalog(@EndpointParam URI catalogRef,
@BinderParam(BindToXMLPayload.class) AdminCatalog catalog); @BinderParam(BindToXMLPayload.class) AdminCatalog catalog);
/**
* @see AdminClient#deleteCatalog(URI)
*/
@DELETE
@Consumes
@JAXBResponseParser
@ExceptionParser(ThrowVCloudErrorOn4xx.class)
ListenableFuture<Void> deleteCatalog(@EndpointParam URI catalogRef);
/** /**
* @see AdminClient#getOwner(URI) * @see AdminClient#getOwner(URI)
*/ */

View File

@ -58,6 +58,15 @@ public interface AdminCatalogClient {
*/ */
AdminCatalog updateCatalog(URI catalogRef, AdminCatalog catalog); AdminCatalog updateCatalog(URI catalogRef, AdminCatalog catalog);
/**
* Deletes a catalog. The catalog could be deleted if it is either published or unpublished.
*
* <pre>
* DELETE /admin/catalog/{id}
* </pre>
*/
void deleteCatalog(URI catalogRef);
/** /**
* Retrieves the owner of a catalog. * Retrieves the owner of a catalog.
* *