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