Feature #1556: Add new elem to migrator, and xsd

This commit is contained in:
Carlos Martín committed 2013-01-08 15:17:00 +01:00
1 parent 8a2597cd90
commit 68efaa7e62
3 files changed
+42 -1

No files matched your search

@@ -175,7 +175,7 @@ public class VirtualMachine extends PoolElement{
* @param client XML-RPC Client.
* @param id The id of the target vm.
* @param new_template New template contents
* @return If successful the message contains the vm id.
* @return If an error occurs the error message contains the reason.
*/
public static OneResponse update(Client client, int id, String new_template)
{
@@ -558,6 +558,17 @@ public class VirtualMachine extends PoolElement{
return rename(client, id, name);
}
/**
* Replaces this VM's user template contents.
*
* @param new_template New template contents
* @return If an error occurs the error message contains the reason.
*/
public OneResponse update(String new_template)
{
return client.call(UPDATE, id, new_template);
}
// =================================
// Helpers
// =================================