public class VMNICs extends CollectionDecorator<NIC,Nics,VMNIC>
VMNICs providing relation and functional services
to Nics
.
Constructor and Description |
---|
VMNICs(HttpProxyBroker proxy,
VM parent) |
Modifier and Type | Method and Description |
---|---|
VMNIC |
add(NIC nic)
Adds NIC object.
|
VMNIC |
add(NIC nic,
String expect,
String correlationId)
Adds NIC object.
|
VMNIC |
get(UUID id)
Fetches VMNIC object by id.
|
List<VMNIC> |
list()
Lists VMNIC objects.
|
List<VMNIC> |
list(Integer max)
Lists VMNIC objects.
|
get
public VMNICs(HttpProxyBroker proxy, VM parent)
proxy
- HttpProxyBrokerparent
- VMpublic List<VMNIC> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<NIC,Nics,VMNIC>
VMNIC
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 VMNIC get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<NIC,Nics,VMNIC>
id
- entity idVMNIC
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<VMNIC> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
VMNIC
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 VMNIC add(NIC nic) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
nic
- NIC
Overload 1: add a new network interface to the given virtual machine with vnic profile id nic.name [nic.vnic_profile.id] [nic.linked] [nic.mac.address] [nic.interface] [nic.plugged] Overload 2: add a new network interface to the given virtual machine with port mirroring options nic.name [nic.network.id|name] [nic.linked] [nic.mac.address] [nic.interface] [nic.port_mirroring.networks.network] [nic.plugged]
VMNIC
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 VMNIC add(NIC nic, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
nic
- NIC
Overload 1: add a new network interface to the given virtual machine with vnic profile id nic.name [nic.vnic_profile.id] [nic.linked] [nic.mac.address] [nic.interface] [nic.plugged] Overload 2: add a new network interface to the given virtual machine with port mirroring options nic.name [nic.network.id|name] [nic.linked] [nic.mac.address] [nic.interface] [nic.port_mirroring.networks.network] [nic.plugged]
expect
- [201-created]
correlationId
- [any string]
VMNIC
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