public class DataCenterQuotas extends CollectionDecorator<Quota,Quotas,DataCenterQuota>
DataCenterQuotas providing relation and functional services
to Quotas
.
Constructor and Description |
---|
DataCenterQuotas(HttpProxyBroker proxy,
DataCenter parent) |
Modifier and Type | Method and Description |
---|---|
DataCenterQuota |
add(Quota quota)
Adds Quota object.
|
DataCenterQuota |
add(Quota quota,
String correlationId)
Adds Quota object.
|
DataCenterQuota |
add(Quota quota,
String correlationId,
String expect)
Adds Quota object.
|
DataCenterQuota |
get(UUID id)
Fetches DataCenterQuota object by id.
|
DataCenterQuota |
getById(String id)
Fetches DataCenterQuota object by id.
|
List<DataCenterQuota> |
list()
Lists DataCenterQuota objects.
|
List<DataCenterQuota> |
list(Integer max)
Lists DataCenterQuota objects.
|
get
public DataCenterQuotas(HttpProxyBroker proxy, DataCenter parent)
proxy
- HttpProxyBrokerparent
- DataCenterpublic List<DataCenterQuota> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Quota,Quotas,DataCenterQuota>
DataCenterQuota
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 DataCenterQuota get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Quota,Quotas,DataCenterQuota>
id
- entity idDataCenterQuota
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 DataCenterQuota getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<Quota,Quotas,DataCenterQuota>
id
- entity idDataCenterQuota
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 DataCenterQuota add(Quota quota) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
quota
- Quota
quota.name [quota.description] [quota.cluster_soft_limit_pct] [quota.cluster_hard_limit_pct] [quota.storage_soft_limit_pct] [quota.storage_hard_limit_pct]
DataCenterQuota
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 DataCenterQuota add(Quota quota, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
quota
- Quota
quota.name [quota.description] [quota.cluster_soft_limit_pct] [quota.cluster_hard_limit_pct] [quota.storage_soft_limit_pct] [quota.storage_hard_limit_pct]
correlationId
- [any string]
DataCenterQuota
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 DataCenterQuota add(Quota quota, String correlationId, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
quota
- Quota
quota.name [quota.description] [quota.cluster_soft_limit_pct] [quota.cluster_hard_limit_pct] [quota.storage_soft_limit_pct] [quota.storage_hard_limit_pct]
correlationId
- [any string]
expect
- [201-created]
DataCenterQuota
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<DataCenterQuota> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
DataCenterQuota
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