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.
|
getpublic 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>VMTagorg.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 idVMTagorg.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 idVMTagorg.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]
VMTagorg.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
VMTagorg.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]
VMTagorg.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]
VMTagorg.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