public class MacPools extends CollectionDecorator<MacPool,MacPools,MacPool>
MacPools providing relation and functional services
to MacPools
.
Constructor and Description |
---|
MacPools(HttpProxyBroker proxy) |
Modifier and Type | Method and Description |
---|---|
MacPool |
add(MacPool macpool)
Adds MacPool object.
|
MacPool |
add(MacPool macpool,
String correlationId)
Adds MacPool object.
|
MacPool |
add(MacPool macpool,
String correlationId,
String expect)
Adds MacPool object.
|
MacPool |
get(UUID id)
Fetches MacPool object by id.
|
MacPool |
getById(String id)
Fetches MacPool object by id.
|
List<MacPool> |
list()
Lists MacPool objects.
|
List<MacPool> |
list(Integer max)
Lists MacPool objects.
|
get
public MacPools(HttpProxyBroker proxy)
proxy
- HttpProxyBrokerpublic List<MacPool> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<MacPool,MacPools,MacPool>
MacPool
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 MacPool get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<MacPool,MacPools,MacPool>
id
- entity idMacPool
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 MacPool getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<MacPool,MacPools,MacPool>
id
- entity idMacPool
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 MacPool add(MacPool macpool) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
macpool
- MacPool
macpool.name macpool.ranges.range [macpool.description] [macpool.allow_duplicates] [macpool.default_pool]
MacPool
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 MacPool add(MacPool macpool, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
macpool
- MacPool
macpool.name macpool.ranges.range [macpool.description] [macpool.allow_duplicates] [macpool.default_pool]
correlationId
- [any string]
MacPool
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 MacPool add(MacPool macpool, String correlationId, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
macpool
- MacPool
macpool.name macpool.ranges.range [macpool.description] [macpool.allow_duplicates] [macpool.default_pool]
correlationId
- [any string]
expect
- [201-created]
MacPool
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<MacPool> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
MacPool
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