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,
String correlationId)
Adds VmPool object.
|
VmPool |
get(UUID id)
Fetches VmPool object by id.
|
List<VmPool> |
list()
Lists VmPool objects.
|
List<VmPool> |
list(String query,
Boolean caseSensitive,
Integer max)
Lists VmPool objects.
|
get
public VmPools(HttpProxyBroker proxy)
proxy
- HttpProxyBrokerpublic List<VmPool> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<VmPool,VmPools,VmPool>
VmPool
org.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 idVmPool
org.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]
VmPool
org.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
org.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]
expect
- [201-created]
correlationId
- [any string]
VmPool
org.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