public class ClusterAffinityGroupVMs extends CollectionDecorator<VM,VMs,ClusterAffinityGroupVM>
ClusterAffinityGroupVMs providing relation and functional services
to VMs.
| Constructor and Description |
|---|
ClusterAffinityGroupVMs(HttpProxyBroker proxy,
ClusterAffinityGroup parent) |
| Modifier and Type | Method and Description |
|---|---|
ClusterAffinityGroupVM |
add(VM vm)
Adds VM object.
|
ClusterAffinityGroupVM |
add(VM vm,
String expect)
Adds VM object.
|
ClusterAffinityGroupVM |
get(UUID id)
Fetches ClusterAffinityGroupVM object by id.
|
ClusterAffinityGroupVM |
getById(String id)
Fetches ClusterAffinityGroupVM object by id.
|
List<ClusterAffinityGroupVM> |
list()
Lists ClusterAffinityGroupVM objects.
|
List<ClusterAffinityGroupVM> |
list(Integer max)
Lists ClusterAffinityGroupVM objects.
|
getpublic ClusterAffinityGroupVMs(HttpProxyBroker proxy, ClusterAffinityGroup parent)
proxy - HttpProxyBrokerparent - ClusterAffinityGrouppublic List<ClusterAffinityGroupVM> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<VM,VMs,ClusterAffinityGroupVM>ClusterAffinityGroupVMorg.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 ClusterAffinityGroupVM get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<VM,VMs,ClusterAffinityGroupVM>id - entity idClusterAffinityGroupVMorg.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 ClusterAffinityGroupVM getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<VM,VMs,ClusterAffinityGroupVM>id - entity idClusterAffinityGroupVMorg.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<ClusterAffinityGroupVM> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max -
[max results]
ClusterAffinityGroupVMorg.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 ClusterAffinityGroupVM add(VM vm) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
vm - VM
vm.id|name
ClusterAffinityGroupVMorg.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 ClusterAffinityGroupVM add(VM vm, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
vm - VM
vm.id|name
expect -
[201-created]
ClusterAffinityGroupVMorg.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