mirror of https://github.com/apache/jclouds.git
Issue 830: Add mediaList client query methods
This commit is contained in:
parent
d081f771b4
commit
07c5dabceb
|
@ -204,4 +204,18 @@ public interface QueryAsyncClient {
|
||||||
@JAXBResponseParser
|
@JAXBResponseParser
|
||||||
@ExceptionParser(ThrowVCloudErrorOn4xx.class)
|
@ExceptionParser(ThrowVCloudErrorOn4xx.class)
|
||||||
ListenableFuture<QueryResultRecords> vmsQuery(@QueryParam("filter") String filter);
|
ListenableFuture<QueryResultRecords> vmsQuery(@QueryParam("filter") String filter);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("/mediaList/query")
|
||||||
|
@Consumes
|
||||||
|
@JAXBResponseParser
|
||||||
|
@ExceptionParser(ThrowVCloudErrorOn4xx.class)
|
||||||
|
ListenableFuture<QueryResultRecords> mediaListQueryAll();
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("/mediaList/query")
|
||||||
|
@Consumes
|
||||||
|
@JAXBResponseParser
|
||||||
|
@ExceptionParser(ThrowVCloudErrorOn4xx.class)
|
||||||
|
ListenableFuture<QueryResultRecords> mediaListQuery(@QueryParam("filter") String filter);
|
||||||
}
|
}
|
||||||
|
|
|
@ -172,5 +172,19 @@ public interface QueryClient {
|
||||||
|
|
||||||
/** @see #queryAll() */
|
/** @see #queryAll() */
|
||||||
QueryResultRecords vmsQuery(String filter);
|
QueryResultRecords vmsQuery(String filter);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves a list of {@link Medias by using REST API general QueryHandler.
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* GET /mediaList/query
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* @see #queryAll(String)
|
||||||
|
*/
|
||||||
|
QueryResultRecords mediaListQueryAll();
|
||||||
|
|
||||||
|
/** @see #queryAll() */
|
||||||
|
QueryResultRecords mediaListQuery(String filter);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue