public class VMGraphicsConsoles extends CollectionDecorator<GraphicsConsole,GraphicsConsoles,VMGraphicsConsole>
VMGraphicsConsoles providing relation and functional services
to GraphicsConsoles
.
Constructor and Description |
---|
VMGraphicsConsoles(HttpProxyBroker proxy,
VM parent) |
Modifier and Type | Method and Description |
---|---|
VMGraphicsConsole |
add(GraphicsConsole graphicsconsole)
Adds GraphicsConsole object.
|
VMGraphicsConsole |
add(GraphicsConsole graphicsconsole,
String correlationId)
Adds GraphicsConsole object.
|
VMGraphicsConsole |
add(GraphicsConsole graphicsconsole,
String correlationId,
String expect)
Adds GraphicsConsole object.
|
VMGraphicsConsole |
get(UUID id)
Fetches VMGraphicsConsole object by id.
|
VMGraphicsConsole |
getById(String id)
Fetches VMGraphicsConsole object by id.
|
List<VMGraphicsConsole> |
list()
Lists VMGraphicsConsole objects.
|
List<VMGraphicsConsole> |
list(Boolean current)
Lists VMGraphicsConsole objects.
|
List<VMGraphicsConsole> |
list(Boolean current,
Integer max)
Lists VMGraphicsConsole objects.
|
get
public VMGraphicsConsoles(HttpProxyBroker proxy, VM parent)
proxy
- HttpProxyBrokerparent
- VMpublic List<VMGraphicsConsole> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<GraphicsConsole,GraphicsConsoles,VMGraphicsConsole>
VMGraphicsConsole
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 VMGraphicsConsole get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<GraphicsConsole,GraphicsConsoles,VMGraphicsConsole>
id
- entity idVMGraphicsConsole
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 VMGraphicsConsole getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<GraphicsConsole,GraphicsConsoles,VMGraphicsConsole>
id
- entity idVMGraphicsConsole
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 VMGraphicsConsole add(GraphicsConsole graphicsconsole) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
graphicsconsole
- GraphicsConsole
graphics_console.protocol
VMGraphicsConsole
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 VMGraphicsConsole add(GraphicsConsole graphicsconsole, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
graphicsconsole
- GraphicsConsole
graphics_console.protocol
correlationId
- [any string]
VMGraphicsConsole
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 VMGraphicsConsole add(GraphicsConsole graphicsconsole, String correlationId, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
graphicsconsole
- GraphicsConsole
graphics_console.protocol
correlationId
- [any string]
expect
- [201-created]
VMGraphicsConsole
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<VMGraphicsConsole> list(Boolean current) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
current
- [true|false]
VMGraphicsConsole
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<VMGraphicsConsole> list(Boolean current, Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
current
- [true|false]
max
- [max results]
VMGraphicsConsole
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