public class InstanceTypes extends CollectionDecorator<InstanceType,InstanceTypes,InstanceType>
InstanceTypes providing relation and functional services
to InstanceTypes.
| Constructor and Description |
|---|
InstanceTypes(HttpProxyBroker proxy) |
| Modifier and Type | Method and Description |
|---|---|
InstanceType |
add(InstanceType instancetype)
Adds InstanceType object.
|
InstanceType |
add(InstanceType instancetype,
String expect)
Adds InstanceType object.
|
InstanceType |
add(InstanceType instancetype,
String expect,
String correlationId)
Adds InstanceType object.
|
InstanceType |
get(UUID id)
Fetches InstanceType object by id.
|
InstanceType |
getById(String id)
Fetches InstanceType object by id.
|
List<InstanceType> |
list()
Lists InstanceType objects.
|
List<InstanceType> |
list(Integer max)
Lists InstanceType objects.
|
getpublic InstanceTypes(HttpProxyBroker proxy)
proxy - HttpProxyBrokerpublic List<InstanceType> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<InstanceType,InstanceTypes,InstanceType>InstanceTypeorg.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 InstanceType get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<InstanceType,InstanceTypes,InstanceType>id - entity idInstanceTypeorg.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 InstanceType getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<InstanceType,InstanceTypes,InstanceType>id - entity idInstanceTypeorg.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<InstanceType> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max -
[max results]
InstanceTypeorg.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 InstanceType add(InstanceType instancetype) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
instancetype - InstanceType
instance_type.name
[instance_type.memory]
[instance_type.cpu.topology.cores]
[instance_type.high_availability.enabled]
[instance_type.origin]
[instance_type.high_availability.priority]
[instance_type.console.enabled]
[instance_type.description]
[instance_type.os.boot]
[instance_type.cpu.topology.sockets]
[instance_type.cpu_shares]
[instance_type.cpu.architecture]
[instance_type.display.type]
[instance_type.display.monitors]
[instance_typeay.single_qxl_pci]
[instance_type.display.smartcard_enabled]
[instance_type.usb.enabled]
[instance_type.usb.type]
[instance_type.migration_downtime]
[instance_type.virtio_scsi.enabled]
[instance_type.soundcard_enabled]
InstanceTypeorg.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 InstanceType add(InstanceType instancetype, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
instancetype - InstanceType
instance_type.name
[instance_type.memory]
[instance_type.cpu.topology.cores]
[instance_type.high_availability.enabled]
[instance_type.origin]
[instance_type.high_availability.priority]
[instance_type.console.enabled]
[instance_type.description]
[instance_type.os.boot]
[instance_type.cpu.topology.sockets]
[instance_type.cpu_shares]
[instance_type.cpu.architecture]
[instance_type.display.type]
[instance_type.display.monitors]
[instance_typeay.single_qxl_pci]
[instance_type.display.smartcard_enabled]
[instance_type.usb.enabled]
[instance_type.usb.type]
[instance_type.migration_downtime]
[instance_type.virtio_scsi.enabled]
[instance_type.soundcard_enabled]
expect -
[201-created]
InstanceTypeorg.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 InstanceType add(InstanceType instancetype, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
instancetype - InstanceType
instance_type.name
[instance_type.memory]
[instance_type.cpu.topology.cores]
[instance_type.high_availability.enabled]
[instance_type.origin]
[instance_type.high_availability.priority]
[instance_type.console.enabled]
[instance_type.description]
[instance_type.os.boot]
[instance_type.cpu.topology.sockets]
[instance_type.cpu_shares]
[instance_type.cpu.architecture]
[instance_type.display.type]
[instance_type.display.monitors]
[instance_typeay.single_qxl_pci]
[instance_type.display.smartcard_enabled]
[instance_type.usb.enabled]
[instance_type.usb.type]
[instance_type.migration_downtime]
[instance_type.virtio_scsi.enabled]
[instance_type.soundcard_enabled]
expect -
[201-created]
correlationId -
[any string]
InstanceTypeorg.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