public class VMCdRoms extends CollectionDecorator<CdRom,CdRoms,VMCdRom>
VMCdRoms providing relation and functional services
to CdRoms.
| Constructor and Description |
|---|
VMCdRoms(HttpProxyBroker proxy,
VM parent) |
| Modifier and Type | Method and Description |
|---|---|
VMCdRom |
add(CdRom cdrom)
Adds CdRom object.
|
VMCdRom |
add(CdRom cdrom,
String expect)
Adds CdRom object.
|
VMCdRom |
add(CdRom cdrom,
String expect,
String correlationId)
Adds CdRom object.
|
VMCdRom |
get(UUID id)
Fetches VMCdRom object by id.
|
VMCdRom |
getById(String id)
Fetches VMCdRom object by id.
|
List<VMCdRom> |
list()
Lists VMCdRom objects.
|
List<VMCdRom> |
list(Integer max,
Boolean current)
Lists VMCdRom objects.
|
getpublic VMCdRoms(HttpProxyBroker proxy, VM parent)
proxy - HttpProxyBrokerparent - VMpublic List<VMCdRom> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<CdRom,CdRoms,VMCdRom>VMCdRomorg.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 VMCdRom get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<CdRom,CdRoms,VMCdRom>id - entity idVMCdRomorg.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 VMCdRom getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<CdRom,CdRoms,VMCdRom>id - entity idVMCdRomorg.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<VMCdRom> list(Integer max, Boolean current) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max -
[max results]
current -
[true|false]
VMCdRomorg.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 VMCdRom add(CdRom cdrom) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
cdrom - CdRom
cdrom.file.id
VMCdRomorg.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 VMCdRom add(CdRom cdrom, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
cdrom - CdRom
cdrom.file.id
expect -
[201-created]
VMCdRomorg.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 VMCdRom add(CdRom cdrom, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
cdrom - CdRom
cdrom.file.id
expect -
[201-created]
correlationId -
[any string]
VMCdRomorg.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