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.
|
get
public InstanceTypes(HttpProxyBroker proxy)
proxy
- HttpProxyBrokerpublic List<InstanceType> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<InstanceType,InstanceTypes,InstanceType>
InstanceType
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 InstanceType get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<InstanceType,InstanceTypes,InstanceType>
id
- entity idInstanceType
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 InstanceType getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<InstanceType,InstanceTypes,InstanceType>
id
- entity idInstanceType
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 InstanceType add(InstanceType instancetype) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
instancetype
- InstanceType
instance_type.name [instance_type.memory] [instance_type.io.threads] [instance_type.memory_policy.guaranteed] [instance_type.memory_policy.ballooning] [instance_type.cpu.topology.cores] [instance_type.cpu.topology.threads] [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] [instance_type.custom_emulated_machine] [instance_type.custom_cpu_model]
InstanceType
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 InstanceType add(InstanceType instancetype, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
instancetype
- InstanceType
instance_type.name [instance_type.memory] [instance_type.io.threads] [instance_type.memory_policy.guaranteed] [instance_type.memory_policy.ballooning] [instance_type.cpu.topology.cores] [instance_type.cpu.topology.threads] [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] [instance_type.custom_emulated_machine] [instance_type.custom_cpu_model]
expect
- [201-created]
InstanceType
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 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.io.threads] [instance_type.memory_policy.guaranteed] [instance_type.memory_policy.ballooning] [instance_type.cpu.topology.cores] [instance_type.cpu.topology.threads] [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] [instance_type.custom_emulated_machine] [instance_type.custom_cpu_model]
expect
- [201-created]
correlationId
- [any string]
InstanceType
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<InstanceType> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
InstanceType
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