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
|
||||
@ExceptionParser(ThrowVCloudErrorOn4xx.class)
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -173,4 +173,18 @@ public interface QueryClient {
|
|||
/** @see #queryAll() */
|
||||
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