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