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