public class VmPools extends CollectionDecorator<VmPool,VmPools,VmPool>
VmPools providing relation and functional services
to VmPools.
| Constructor and Description |
|---|
VmPools(HttpProxyBroker proxy) |
| Modifier and Type | Method and Description |
|---|---|
VmPool |
add(VmPool vmpool)
Adds VmPool object.
|
VmPool |
add(VmPool vmpool,
String expect)
Adds VmPool object.
|
VmPool |
add(VmPool vmpool,
String expect,
String correlationId)
Adds VmPool object.
|
VmPool |
get(UUID id)
Fetches VmPool object by id.
|
VmPool |
getById(String id)
Fetches VmPool object by id.
|
List<VmPool> |
list()
Lists VmPool objects.
|
List<VmPool> |
list(String query,
Boolean caseSensitive,
Integer max)
Lists VmPool objects.
|
getpublic VmPools(HttpProxyBroker proxy)
proxy - HttpProxyBrokerpublic List<VmPool> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<VmPool,VmPools,VmPool>VmPoolorg.apache.http.client.ClientProtocolException - Signals that HTTP/S protocol error has occurred.ServerException - Signals that an oVirt api error has occurred.IOException - Signals that an I/O exception of some sort has occurred.public VmPool get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<VmPool,VmPools,VmPool>id - entity idVmPoolorg.apache.http.client.ClientProtocolException - Signals that HTTP/S protocol error has occurred.ServerException - Signals that an oVirt api error has occurred.IOException - Signals that an I/O exception of some sort has occurred.public VmPool getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<VmPool,VmPools,VmPool>id - entity idVmPoolorg.apache.http.client.ClientProtocolException - Signals that HTTP/S protocol error has occurred.ServerException - Signals that an oVirt api error has occurred.IOException - Signals that an I/O exception of some sort has occurred.public List<VmPool> list(String query, Boolean caseSensitive, Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
query -
[search query]
caseSensitive -
[true|false]
max -
[max results]
VmPoolorg.apache.http.client.ClientProtocolException - Signals that HTTP/S protocol error has occurred.ServerException - Signals that an oVirt api error has occurred.IOException - Signals that an I/O exception of some sort has occurred.public VmPool add(VmPool vmpool) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
vmpool - VmPool
vmpool.cluster.id|name
vmpool.template.id|name
vmpool.name
[vmpool.comment]
[vmpool.size]
[vmpool.max_user_vms]
[vmpool.display.proxy]
[vmpool.description]
[vmpool.soundcard_enabled]
VmPoolorg.apache.http.client.ClientProtocolException - Signals that HTTP/S protocol error has occurred.ServerException - Signals that an oVirt api error has occurred.IOException - Signals that an I/O exception of some sort has occurred.public VmPool add(VmPool vmpool, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
vmpool - VmPool
vmpool.cluster.id|name
vmpool.template.id|name
vmpool.name
[vmpool.comment]
[vmpool.size]
[vmpool.max_user_vms]
[vmpool.display.proxy]
[vmpool.description]
[vmpool.soundcard_enabled]
expect -
[201-created]
VmPoolorg.apache.http.client.ClientProtocolException - Signals that HTTP/S protocol error has occurred.ServerException - Signals that an oVirt api error has occurred.IOException - Signals that an I/O exception of some sort has occurred.public VmPool add(VmPool vmpool, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
vmpool - VmPool
vmpool.cluster.id|name
vmpool.template.id|name
vmpool.name
[vmpool.comment]
[vmpool.size]
[vmpool.max_user_vms]
[vmpool.display.proxy]
[vmpool.description]
[vmpool.soundcard_enabled]
expect -
[201-created]
correlationId -
[any string]
VmPoolorg.apache.http.client.ClientProtocolException - Signals that HTTP/S protocol error has occurred.ServerException - Signals that an oVirt api error has occurred.IOException - Signals that an I/O exception of some sort has occurred.Copyright ? 2010 Red Hat, Inc - released under the Apache License Version 2.0