public class DiskProfiles extends CollectionDecorator<DiskProfile,DiskProfiles,DiskProfile>
DiskProfiles providing relation and functional services
to DiskProfiles
.
Constructor and Description |
---|
DiskProfiles(HttpProxyBroker proxy) |
Modifier and Type | Method and Description |
---|---|
DiskProfile |
add(DiskProfile diskprofile)
Adds DiskProfile object.
|
DiskProfile |
add(DiskProfile diskprofile,
String expect)
Adds DiskProfile object.
|
DiskProfile |
add(DiskProfile diskprofile,
String expect,
String correlationId)
Adds DiskProfile object.
|
DiskProfile |
get(UUID id)
Fetches DiskProfile object by id.
|
DiskProfile |
getById(String id)
Fetches DiskProfile object by id.
|
List<DiskProfile> |
list()
Lists DiskProfile objects.
|
List<DiskProfile> |
list(Integer max)
Lists DiskProfile objects.
|
get
public DiskProfiles(HttpProxyBroker proxy)
proxy
- HttpProxyBrokerpublic List<DiskProfile> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<DiskProfile,DiskProfiles,DiskProfile>
DiskProfile
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 DiskProfile get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<DiskProfile,DiskProfiles,DiskProfile>
id
- entity idDiskProfile
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 DiskProfile getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<DiskProfile,DiskProfiles,DiskProfile>
id
- entity idDiskProfile
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 DiskProfile add(DiskProfile diskprofile) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
diskprofile
- DiskProfile
diskprofile.storagedomain.id diskprofile.name [diskprofile.description] [diskprofile.qos.id]
DiskProfile
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 DiskProfile add(DiskProfile diskprofile, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
diskprofile
- DiskProfile
diskprofile.storagedomain.id diskprofile.name [diskprofile.description] [diskprofile.qos.id]
expect
- [201-created]
DiskProfile
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 DiskProfile add(DiskProfile diskprofile, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
diskprofile
- DiskProfile
diskprofile.storagedomain.id diskprofile.name [diskprofile.description] [diskprofile.qos.id]
expect
- [201-created]
correlationId
- [any string]
DiskProfile
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<DiskProfile> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
DiskProfile
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