public class DataCenters extends CollectionDecorator<DataCenter,DataCenters,DataCenter>
DataCenters providing relation and functional services
to DataCenters
.
Constructor and Description |
---|
DataCenters(HttpProxyBroker proxy) |
Modifier and Type | Method and Description |
---|---|
DataCenter |
add(DataCenter datacenter)
Adds DataCenter object.
|
DataCenter |
add(DataCenter datacenter,
String expect,
String correlationId)
Adds DataCenter object.
|
DataCenter |
get(UUID id)
Fetches DataCenter object by id.
|
List<DataCenter> |
list()
Lists DataCenter objects.
|
List<DataCenter> |
list(String query,
Boolean caseSensitive,
Integer max)
Lists DataCenter objects.
|
get
public DataCenters(HttpProxyBroker proxy)
proxy
- HttpProxyBrokerpublic List<DataCenter> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<DataCenter,DataCenters,DataCenter>
DataCenter
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 DataCenter get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<DataCenter,DataCenters,DataCenter>
id
- entity idDataCenter
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<DataCenter> list(String query, Boolean caseSensitive, Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
query
- [search query]
caseSensitive
- [true|false]
max
- [max results]
DataCenter
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 DataCenter add(DataCenter datacenter) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
datacenter
- DataCenter
datacenter.name datacenter.storage_type datacenter.version.major datacenter.version.minor [datacenter.description] [datacenter.comment] [datacenter.storage_format]
DataCenter
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 DataCenter add(DataCenter datacenter, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
datacenter
- DataCenter
datacenter.name datacenter.storage_type datacenter.version.major datacenter.version.minor [datacenter.description] [datacenter.comment] [datacenter.storage_format]
expect
- [201-created]
correlationId
- [any string]
DataCenter
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