public class DataCenterNetworkLabels extends CollectionDecorator<Label,Labels,DataCenterNetworkLabel>
DataCenterNetworkLabels providing relation and functional services
to Labels
.
Constructor and Description |
---|
DataCenterNetworkLabels(HttpProxyBroker proxy,
DataCenterNetwork parent) |
Modifier and Type | Method and Description |
---|---|
DataCenterNetworkLabel |
add(Label label)
Adds Label object.
|
DataCenterNetworkLabel |
get(UUID id)
Fetches DataCenterNetworkLabel object by id.
|
List<DataCenterNetworkLabel> |
list()
Lists DataCenterNetworkLabel objects.
|
get
public DataCenterNetworkLabels(HttpProxyBroker proxy, DataCenterNetwork parent)
proxy
- HttpProxyBrokerparent
- DataCenterNetworkpublic List<DataCenterNetworkLabel> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Label,Labels,DataCenterNetworkLabel>
DataCenterNetworkLabel
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 DataCenterNetworkLabel get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Label,Labels,DataCenterNetworkLabel>
id
- entity idDataCenterNetworkLabel
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 DataCenterNetworkLabel add(Label label) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
label
- Label
DataCenterNetworkLabel
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