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)
Adds DataCenter object.
|
DataCenter |
add(DataCenter datacenter,
String expect,
String correlationId)
Adds DataCenter object.
|
DataCenter |
get(UUID id)
Fetches DataCenter object by id.
|
DataCenter |
getById(String id)
Fetches DataCenter object by id.
|
List<DataCenter> |
list()
Lists DataCenter objects.
|
List<DataCenter> |
list(String query,
Boolean caseSensitive,
Integer max)
Lists DataCenter objects.
|
getpublic DataCenters(HttpProxyBroker proxy)
proxy - HttpProxyBrokerpublic List<DataCenter> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<DataCenter,DataCenters,DataCenter>DataCenterorg.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 idDataCenterorg.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 getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<DataCenter,DataCenters,DataCenter>id - entity idDataCenterorg.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]
DataCenterorg.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.local
datacenter.name
[datacenter.comment]
[datacenter.description]
[datacenter.storage_format]
[datacenter.storage_type]
[datacenter.version.major]
[datacenter.version.minor]
DataCenterorg.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) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
datacenter - DataCenter
datacenter.local
datacenter.name
[datacenter.comment]
[datacenter.description]
[datacenter.storage_format]
[datacenter.storage_type]
[datacenter.version.major]
[datacenter.version.minor]
expect -
[201-created]
DataCenterorg.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.local
datacenter.name
[datacenter.comment]
[datacenter.description]
[datacenter.storage_format]
[datacenter.storage_type]
[datacenter.version.major]
[datacenter.version.minor]
expect -
[201-created]
correlationId -
[any string]
DataCenterorg.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