public class NetworkVnicProfiles extends CollectionDecorator<VnicProfile,VnicProfiles,NetworkVnicProfile>
NetworkVnicProfiles providing relation and functional services
to VnicProfiles
.
Constructor and Description |
---|
NetworkVnicProfiles(HttpProxyBroker proxy,
Network parent) |
Modifier and Type | Method and Description |
---|---|
NetworkVnicProfile |
add(VnicProfile vnicprofile)
Adds VnicProfile object.
|
NetworkVnicProfile |
add(VnicProfile vnicprofile,
String expect,
String correlationId)
Adds VnicProfile object.
|
NetworkVnicProfile |
get(UUID id)
Fetches NetworkVnicProfile object by id.
|
List<NetworkVnicProfile> |
list()
Lists NetworkVnicProfile objects.
|
List<NetworkVnicProfile> |
list(Integer max)
Lists NetworkVnicProfile objects.
|
get
public NetworkVnicProfiles(HttpProxyBroker proxy, Network parent)
proxy
- HttpProxyBrokerparent
- Networkpublic List<NetworkVnicProfile> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<VnicProfile,VnicProfiles,NetworkVnicProfile>
NetworkVnicProfile
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 NetworkVnicProfile get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<VnicProfile,VnicProfiles,NetworkVnicProfile>
id
- entity idNetworkVnicProfile
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<NetworkVnicProfile> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
NetworkVnicProfile
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 NetworkVnicProfile add(VnicProfile vnicprofile) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
vnicprofile
- VnicProfile
vnicprofile.name [vnicprofile.description] [vnicprofile.port_mirroring] [vnicprofile.custom_properties.custom_property]
NetworkVnicProfile
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 NetworkVnicProfile add(VnicProfile vnicprofile, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
vnicprofile
- VnicProfile
vnicprofile.name [vnicprofile.description] [vnicprofile.port_mirroring] [vnicprofile.custom_properties.custom_property]
expect
- [201-created]
correlationId
- [any string]
NetworkVnicProfile
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