public class Templates extends CollectionDecorator<Template,Templates,Template>
Templates providing relation and functional services
to Templates
.
Constructor and Description |
---|
Templates(HttpProxyBroker proxy) |
Modifier and Type | Method and Description |
---|---|
Template |
add(Template template)
Adds Template object.
|
Template |
add(Template template,
String expect,
String correlationId)
Adds Template object.
|
Template |
get(UUID id)
Fetches Template object by id.
|
List<Template> |
list()
Lists Template objects.
|
List<Template> |
list(String query,
Boolean caseSensitive,
Integer max)
Lists Template objects.
|
get
public Templates(HttpProxyBroker proxy)
proxy
- HttpProxyBrokerpublic List<Template> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Template,Templates,Template>
Template
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 Template get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Template,Templates,Template>
id
- entity idTemplate
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<Template> list(String query, Boolean caseSensitive, Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
query
- [search query]
caseSensitive
- [true|false]
max
- [max results]
Template
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 Template add(Template template) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
template
- Template
template.vm.id|name template.name [template.memory] [template.cpu.topology.cores] [template.high_availability.enabled] [template.os.cmdline] [template.origin] [template.high_availability.priority] [template.timezone] [template.domain.name] [template.type] [template.stateless] [template.delete_protected] [template.console.enabled] [template.placement_policy.affinity] [template.description] [template.comment] [template.custom_properties.custom_property] [template.os.type] [template.os.boot] [template.cpu.topology.sockets] [template.cpu_shares] [template.os.kernel] [template.display.type] [template.display.monitors] [vm.display.single_qxl_pci] [template.display.allow_override] [template.display.smartcard_enabled] [template.display.keyboard_layout] [template.os.initRd] [template.usb.enabled] [template.usb.type] [template.tunnel_migration] [template.vm.disks.disk] [template.permissions.clone] [template.cpu.cpu_tune.vcpu_pin]
Template
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 Template add(Template template, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
template
- Template
template.vm.id|name template.name [template.memory] [template.cpu.topology.cores] [template.high_availability.enabled] [template.os.cmdline] [template.origin] [template.high_availability.priority] [template.timezone] [template.domain.name] [template.type] [template.stateless] [template.delete_protected] [template.console.enabled] [template.placement_policy.affinity] [template.description] [template.comment] [template.custom_properties.custom_property] [template.os.type] [template.os.boot] [template.cpu.topology.sockets] [template.cpu_shares] [template.os.kernel] [template.display.type] [template.display.monitors] [vm.display.single_qxl_pci] [template.display.allow_override] [template.display.smartcard_enabled] [template.display.keyboard_layout] [template.os.initRd] [template.usb.enabled] [template.usb.type] [template.tunnel_migration] [template.vm.disks.disk] [template.permissions.clone] [template.cpu.cpu_tune.vcpu_pin]
expect
- [201-created]
correlationId
- [any string]
Template
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