public class DataCenterStorageDomainDisks extends CollectionDecorator<Disk,Disks,DataCenterStorageDomainDisk>
DataCenterStorageDomainDisks providing relation and functional services
to Disks
.
Constructor and Description |
---|
DataCenterStorageDomainDisks(HttpProxyBroker proxy,
DataCenterStorageDomain parent) |
Modifier and Type | Method and Description |
---|---|
DataCenterStorageDomainDisk |
add(Disk disk)
Adds Disk object.
|
DataCenterStorageDomainDisk |
add(Disk disk,
Boolean unregistered,
String expect,
String correlationId)
Adds Disk object.
|
DataCenterStorageDomainDisk |
get(UUID id)
Fetches DataCenterStorageDomainDisk object by id.
|
List<DataCenterStorageDomainDisk> |
list()
Lists DataCenterStorageDomainDisk objects.
|
List<DataCenterStorageDomainDisk> |
list(String query,
Boolean caseSensitive,
Integer max,
Boolean unregistered)
Lists DataCenterStorageDomainDisk objects.
|
get
public DataCenterStorageDomainDisks(HttpProxyBroker proxy, DataCenterStorageDomain parent)
proxy
- HttpProxyBrokerparent
- DataCenterStorageDomainpublic List<DataCenterStorageDomainDisk> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Disk,Disks,DataCenterStorageDomainDisk>
DataCenterStorageDomainDisk
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 DataCenterStorageDomainDisk get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Disk,Disks,DataCenterStorageDomainDisk>
id
- entity idDataCenterStorageDomainDisk
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<DataCenterStorageDomainDisk> list(String query, Boolean caseSensitive, Integer max, Boolean unregistered) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
query
- [query]
caseSensitive
- [true|false]
max
- [max results]
unregistered
- [true|false]
DataCenterStorageDomainDisk
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 DataCenterStorageDomainDisk add(Disk disk) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
disk
- Disk
Overload 1: add a new disk with the specified size to the storage domain in the data center, allocating space from the storage domain provisioned_size disk.interface disk.format [disk.alias] [disk.name] [disk.size] [disk.sparse] [disk.bootable] [disk.shareable] [disk.propagate_errors] [disk.wipe_after_delete] Overload 2: add a new lun disk to the storage domain in the data center disk.interface disk.format disk.lun_storage.type disk.lun_storage.logical_unit [disk.alias] [disk.sparse] [disk.bootable] [disk.shareable] [disk.propagate_errors] [disk.wipe_after_delete] [disk.sgio]
DataCenterStorageDomainDisk
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 DataCenterStorageDomainDisk add(Disk disk, Boolean unregistered, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
disk
- Disk
Overload 1: add a new disk with the specified size to the storage domain in the data center, allocating space from the storage domain provisioned_size disk.interface disk.format [disk.alias] [disk.name] [disk.size] [disk.sparse] [disk.bootable] [disk.shareable] [disk.propagate_errors] [disk.wipe_after_delete] Overload 2: add a new lun disk to the storage domain in the data center disk.interface disk.format disk.lun_storage.type disk.lun_storage.logical_unit [disk.alias] [disk.sparse] [disk.bootable] [disk.shareable] [disk.propagate_errors] [disk.wipe_after_delete] [disk.sgio]
expect
- [201-created]
correlationId
- [any string]
unregistered
- [true|false]
DataCenterStorageDomainDisk
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