public class NetworkLabels extends CollectionDecorator<Label,Labels,NetworkLabel>
NetworkLabels providing relation and functional services
to Labels
.
Constructor and Description |
---|
NetworkLabels(HttpProxyBroker proxy,
Network parent) |
Modifier and Type | Method and Description |
---|---|
NetworkLabel |
add(Label label)
Adds Label object.
|
NetworkLabel |
add(Label label,
String expect)
Adds Label object.
|
NetworkLabel |
add(Label label,
String expect,
String correlationId)
Adds Label object.
|
NetworkLabel |
get(UUID id)
Fetches NetworkLabel object by id.
|
NetworkLabel |
getById(String id)
Fetches NetworkLabel object by id.
|
List<NetworkLabel> |
list()
Lists NetworkLabel objects.
|
List<NetworkLabel> |
list(Integer max)
Lists NetworkLabel objects.
|
get
public NetworkLabels(HttpProxyBroker proxy, Network parent)
proxy
- HttpProxyBrokerparent
- Networkpublic List<NetworkLabel> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Label,Labels,NetworkLabel>
NetworkLabel
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 NetworkLabel get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Label,Labels,NetworkLabel>
id
- entity idNetworkLabel
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 NetworkLabel getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<Label,Labels,NetworkLabel>
id
- entity idNetworkLabel
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 NetworkLabel add(Label label) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
label
- Label
label.id
NetworkLabel
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 NetworkLabel add(Label label, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
label
- Label
label.id
expect
- [201-created]
NetworkLabel
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 NetworkLabel add(Label label, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
label
- Label
label.id
expect
- [201-created]
correlationId
- [any string]
NetworkLabel
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<NetworkLabel> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
NetworkLabel
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