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