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)
Lists VmPool objects.
|
List<VmPool> |
list(String query,
Boolean caseSensitive)
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 VmPool getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
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 VmPool add(VmPool vmpool) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
vmpool
- VmPool
vm_pool.cluster.id|name vm_pool.name vm_pool.template.id|name [vm_pool.comment] [vm_pool.description] [vm_pool.display.proxy] [vm_pool.max_user_vms] [vm_pool.size] [vm_pool.soundcard_enabled] [vm_pool.type] [vm_pool.use_latest_template_version] [vm_pool.prestarted_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) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
vmpool
- VmPool
vm_pool.cluster.id|name vm_pool.name vm_pool.template.id|name [vm_pool.comment] [vm_pool.description] [vm_pool.display.proxy] [vm_pool.max_user_vms] [vm_pool.size] [vm_pool.soundcard_enabled] [vm_pool.type] [vm_pool.use_latest_template_version] [vm_pool.prestarted_vms]
expect
- [201-created]
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
vm_pool.cluster.id|name vm_pool.name vm_pool.template.id|name [vm_pool.comment] [vm_pool.description] [vm_pool.display.proxy] [vm_pool.max_user_vms] [vm_pool.size] [vm_pool.soundcard_enabled] [vm_pool.type] [vm_pool.use_latest_template_version] [vm_pool.prestarted_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.public List<VmPool> list(String query) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
query
- [search query]
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 List<VmPool> list(String query, Boolean caseSensitive) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
query
- [search query]
caseSensitive
- [true|false]
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 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.Copyright ? 2010 Red Hat, Inc - released under the Apache License Version 2.0