public class DataCenterClusterNetworks extends CollectionDecorator<Network,Networks,DataCenterClusterNetwork>
DataCenterClusterNetworks providing relation and functional services
to Networks
.
Constructor and Description |
---|
DataCenterClusterNetworks(HttpProxyBroker proxy,
DataCenterCluster parent) |
Modifier and Type | Method and Description |
---|---|
DataCenterClusterNetwork |
add(Network network)
Adds Network object.
|
DataCenterClusterNetwork |
add(Network network,
String expect,
String correlationId)
Adds Network object.
|
DataCenterClusterNetwork |
get(UUID id)
Fetches DataCenterClusterNetwork object by id.
|
List<DataCenterClusterNetwork> |
list()
Lists DataCenterClusterNetwork objects.
|
List<DataCenterClusterNetwork> |
list(Integer max)
Lists DataCenterClusterNetwork objects.
|
get
public DataCenterClusterNetworks(HttpProxyBroker proxy, DataCenterCluster parent)
proxy
- HttpProxyBrokerparent
- DataCenterClusterpublic List<DataCenterClusterNetwork> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Network,Networks,DataCenterClusterNetwork>
DataCenterClusterNetwork
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 DataCenterClusterNetwork get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Network,Networks,DataCenterClusterNetwork>
id
- entity idDataCenterClusterNetwork
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<DataCenterClusterNetwork> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
DataCenterClusterNetwork
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 DataCenterClusterNetwork add(Network network) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
network
- Network
network.id|name [network.usages.usage]
DataCenterClusterNetwork
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 DataCenterClusterNetwork add(Network network, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
network
- Network
network.id|name [network.usages.usage]
expect
- [201-created]
correlationId
- [any string]
DataCenterClusterNetwork
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