public class Networks extends CollectionDecorator<Network,Networks,Network>
Networks providing relation and functional services
to Networks.
| Constructor and Description |
|---|
Networks(HttpProxyBroker proxy) |
| Modifier and Type | Method and Description |
|---|---|
Network |
add(Network network)
Adds Network object.
|
Network |
add(Network network,
String expect)
Adds Network object.
|
Network |
add(Network network,
String expect,
String correlationId)
Adds Network object.
|
Network |
get(UUID id)
Fetches Network object by id.
|
Network |
getById(String id)
Fetches Network object by id.
|
List<Network> |
list()
Lists Network objects.
|
List<Network> |
list(String query,
Boolean caseSensitive,
Integer max)
Lists Network objects.
|
getpublic Networks(HttpProxyBroker proxy)
proxy - HttpProxyBrokerpublic List<Network> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<Network,Networks,Network>Networkorg.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 Network get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<Network,Networks,Network>id - entity idNetworkorg.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 Network getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<Network,Networks,Network>id - entity idNetworkorg.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<Network> list(String query, Boolean caseSensitive, Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
query -
[search query]
caseSensitive -
[true|false]
max -
[max results]
Networkorg.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 Network add(Network network) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
network - Network
network.data_center.id|name
network.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]
Networkorg.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 Network add(Network network, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
network - Network
network.data_center.id|name
network.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]
Networkorg.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 Network add(Network network, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
network - Network
network.data_center.id|name
network.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]
Networkorg.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