public class TemplateDisks extends CollectionDecorator<Disk,Disks,TemplateDisk>
TemplateDisks providing relation and functional services
to Disks
.
Constructor and Description |
---|
TemplateDisks(HttpProxyBroker proxy,
Template parent) |
Modifier and Type | Method and Description |
---|---|
TemplateDisk |
get(UUID id)
Fetches TemplateDisk object by id.
|
List<TemplateDisk> |
list()
Lists TemplateDisk objects.
|
List<TemplateDisk> |
list(Integer max)
Lists TemplateDisk objects.
|
get
public TemplateDisks(HttpProxyBroker proxy, Template parent)
proxy
- HttpProxyBrokerparent
- Templatepublic List<TemplateDisk> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Disk,Disks,TemplateDisk>
TemplateDisk
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 TemplateDisk get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Disk,Disks,TemplateDisk>
id
- entity idTemplateDisk
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<TemplateDisk> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
TemplateDisk
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