public class DataCenterNetworks extends CollectionDecorator<Network,Networks,DataCenterNetwork>
DataCenterNetworks providing relation and functional services
to Networks.
| Constructor and Description |
|---|
DataCenterNetworks(HttpProxyBroker proxy,
DataCenter parent) |
| Modifier and Type | Method and Description |
|---|---|
DataCenterNetwork |
add(Network network)
Adds Network object.
|
DataCenterNetwork |
add(Network network,
String expect)
Adds Network object.
|
DataCenterNetwork |
add(Network network,
String expect,
String correlationId)
Adds Network object.
|
DataCenterNetwork |
get(UUID id)
Fetches DataCenterNetwork object by id.
|
DataCenterNetwork |
getById(String id)
Fetches DataCenterNetwork object by id.
|
List<DataCenterNetwork> |
list()
Lists DataCenterNetwork objects.
|
List<DataCenterNetwork> |
list(Integer max)
Lists DataCenterNetwork objects.
|
getpublic DataCenterNetworks(HttpProxyBroker proxy, DataCenter parent)
proxy - HttpProxyBrokerparent - DataCenterpublic List<DataCenterNetwork> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<Network,Networks,DataCenterNetwork>DataCenterNetworkorg.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 DataCenterNetwork get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<Network,Networks,DataCenterNetwork>id - entity idDataCenterNetworkorg.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 DataCenterNetwork getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<Network,Networks,DataCenterNetwork>id - entity idDataCenterNetworkorg.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<DataCenterNetwork> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max -
[max results]
DataCenterNetworkorg.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 DataCenterNetwork add(Network network) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
network - Network
network.id|name
[network.description]
[network.comment]
[network.vlan.id]
[network.ip.address]
[network.ip.gateway]
[network.ip.netmask]
[network.stp]
[network.mtu]
[network.profile_required]
[network.usages.usage]
DataCenterNetworkorg.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 DataCenterNetwork add(Network network, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
network - Network
network.id|name
[network.description]
[network.comment]
[network.vlan.id]
[network.ip.address]
[network.ip.gateway]
[network.ip.netmask]
[network.stp]
[network.mtu]
[network.profile_required]
[network.usages.usage]
expect -
[201-created]
DataCenterNetworkorg.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 DataCenterNetwork add(Network network, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
network - Network
network.id|name
[network.description]
[network.comment]
[network.vlan.id]
[network.ip.address]
[network.ip.gateway]
[network.ip.netmask]
[network.stp]
[network.mtu]
[network.profile_required]
[network.usages.usage]
expect -
[201-created]
correlationId -
[any string]
DataCenterNetworkorg.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