mirror of https://github.com/apache/jclouds.git
implement deleteCatalog in clients
This commit is contained in:
parent
b671d043f2
commit
55ecda2e50
|
@ -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)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue