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,
String correlationId)
Adds CdRom object.
|
VMCdRom |
get(UUID id)
Fetches VMCdRom object by id.
|
List<VMCdRom> |
list()
Lists VMCdRom objects.
|
List<VMCdRom> |
list(Integer max)
Lists VMCdRom objects.
|
get
public 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>
VMCdRom
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 VMCdRom get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<CdRom,CdRoms,VMCdRom>
id
- entity idVMCdRom
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<VMCdRom> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
VMCdRom
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 VMCdRom add(CdRom cdrom) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
cdrom
- CdRom
cdrom.file.id
VMCdRom
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 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]
VMCdRom
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