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.
|
get
public 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>
DataCenterNetwork
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 DataCenterNetwork get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Network,Networks,DataCenterNetwork>
id
- entity idDataCenterNetwork
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 DataCenterNetwork getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<Network,Networks,DataCenterNetwork>
id
- entity idDataCenterNetwork
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 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]
DataCenterNetwork
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 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]
DataCenterNetwork
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 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]
DataCenterNetwork
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<DataCenterNetwork> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
DataCenterNetwork
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