public class VMTags extends CollectionDecorator<Tag,Tags,VMTag>
VMTags providing relation and functional services
to Tags
.
Constructor and Description |
---|
VMTags(HttpProxyBroker proxy,
VM parent) |
Modifier and Type | Method and Description |
---|---|
VMTag |
add(Tag tag)
Adds Tag object.
|
VMTag |
add(Tag tag,
String expect)
Adds Tag object.
|
VMTag |
add(Tag tag,
String expect,
String correlationId)
Adds Tag object.
|
VMTag |
get(UUID id)
Fetches VMTag object by id.
|
VMTag |
getById(String id)
Fetches VMTag object by id.
|
List<VMTag> |
list()
Lists VMTag objects.
|
List<VMTag> |
list(Integer max)
Lists VMTag objects.
|
get
public VMTags(HttpProxyBroker proxy, VM parent)
proxy
- HttpProxyBrokerparent
- VMpublic List<VMTag> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Tag,Tags,VMTag>
VMTag
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 VMTag get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Tag,Tags,VMTag>
id
- entity idVMTag
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 VMTag getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<Tag,Tags,VMTag>
id
- entity idVMTag
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 VMTag add(Tag tag) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
tag
- Tag
tag.id|name
VMTag
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 VMTag add(Tag tag, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
tag
- Tag
tag.id|name
expect
- [201-created]
VMTag
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 VMTag add(Tag tag, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
tag
- Tag
tag.id|name
expect
- [201-created]
correlationId
- [any string]
VMTag
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<VMTag> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
VMTag
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